Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1657967

Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp

From Bastien Nocera <hadess@hadess.net>
Newsgroups linux.kernel
Subject Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp
Date 2017-06-05 19:20 +0200
Message-ID <tP3PA-5Lk-15@gated-at.bofh.it> (permalink)
References (3 earlier) <tNPbY-6hW-17@gated-at.bofh.it> <tNVAK-2ht-5@gated-at.bofh.it> <tOVfk-kl-17@gated-at.bofh.it> <tOZVE-3jm-29@gated-at.bofh.it> <tP1E6-4e8-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 2017-06-05 at 07:53 -0700, Dave Hansen wrote:
> On 06/05/2017 06:09 AM, Bastien Nocera wrote:
> > > I agree with Dave. If there is no solution found in time for
> > > -rc5, 
> > > reverting to previous state would be the proper way to go.
> > 
> > I don't see how it's possible to retroactively fix user-space.
> 
> It's not possible to retroactively change userspace.  That why the
> kernel tries so hard not to break it in the first place.  Although
> this
> is in "minor annoyance" territory for me at the moment, this patch
> causes a clear, user-visible issue with new kernels.
> 
> The right way to do this is to have the kernel export the data in a
> way
> that does not confuse old userspace.  Perhaps we should separate out
> "power supplies that run the system" from "power supplies in a
> perihperal".

There's already such a property for it, "scope". I think that you don't
realise that it's this version of UPower you're using (one major API
version behind the current one) is buggy when it comes to handling
kernel-created "power_supply".

It's just that UPower used to do this itself, in user-space, and that
it gets thoroughly confused when it accesses both the battery from
user-space and kernel-space.

> And, no, a config option isn't the right thing either.

Because...? It's the best way to avoid exposing the feature for ancient
user-spaces. The battery information will be gathered from user-space.
It doesn't regress either.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Dave Hansen <dave.hansen@intel.com> - 2017-06-01 20:10 +0200
  Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Bastien Nocera <hadess@hadess.net> - 2017-06-01 21:40 +0200
    Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-06-02 09:30 +0200
      Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Bastien Nocera <hadess@hadess.net> - 2017-06-02 15:00 +0200
        Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-06-02 15:50 +0200
      Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Dave Hansen <dave.hansen@intel.com> - 2017-06-02 16:20 +0200
        Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Jiri Kosina <jikos@kernel.org> - 2017-06-05 10:10 +0200
          Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Bastien Nocera <hadess@hadess.net> - 2017-06-05 15:10 +0200
            Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Dave Hansen <dave.hansen@intel.com> - 2017-06-05 17:00 +0200
              Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Bastien Nocera <hadess@hadess.net> - 2017-06-05 19:20 +0200
          Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-06-06 09:30 +0200
            Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp Bastien Nocera <hadess@hadess.net> - 2017-06-06 09:50 +0200

csiph-web