[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1486561733.7723.2.camel@hadess.net>
Date: Wed, 08 Feb 2017 14:48:53 +0100
From: Bastien Nocera <hadess@...ess.net>
To: Benjamin Tissoires <benjamin.tissoires@...hat.com>,
Jiri Kosina <jikos@...nel.org>,
Peter Hutterer <peter.hutterer@...-t.net>,
Nestor Lopez Casado <nlopezcasad@...itech.com>,
Olivier Gay <ogay@...itech.com>,
Simon Wood <simon@...gewell.org>
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 04/15] HID: logitech-hidpp: battery: remove overloads
and provide ONLINE
On Thu, 2017-02-02 at 15:12 +0100, Benjamin Tissoires wrote:
> When ONLINE isn't set, upower should ignore the battery capacity, so
> there
> is no need to overload it with some random values.
In usage, the capacity value will drop to "0":
-(/sys/class/power_supply/hidpp_battery_1)-> cat capacity
0
-(/sys/class/power_supply/hidpp_battery_1)-> cat online
1
And GNOME will popup a warning about the device.
Powered by blists - more mailing lists