commit | 5a2b190cddb9aa69b9037f5b1fd1c2cc8a1d68b9 | [log] [tgz] |
---|---|---|
author | Peter Hutterer <peter.hutterer@who-t.net> | Wed Jun 29 19:28:01 2016 +1000 |
committer | Jiri Kosina <jkosina@suse.cz> | Thu Jul 07 11:25:50 2016 +0200 |
tree | b032a0cfcfc1a2de9460213dfbf4612296ce9d33 | |
parent | 595d9e34eedc4b8d0631260ce93bbeb08e5b3bd7 [diff] |
HID: logitech-hidpp: add battery support for HID++ 2.0 devices If the 0x1000 Unified Battery Level Status feature exists, expose the battery level. The main drawback is that while a device is plugged in its battery level is 0. To avoid exposing that as 0% charge we make up a number based on the charging status. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>