Re: [PATCH] HID: logitech-hidpp: add support for Unified Battery (1004) feature

From
Bastien Nocera <hadess@hadess.net>
Date
2021-01-06 09:46:30
Also in
lkml
Reply to
unknown sender, 2021-01-04
On Mon, 2021-01-04 at 18:29 +0000, lains@archlinux.org wrote:
From: Filipe Laíns <redacted>

This new feature present in new devices replaces the old Battery
Level
Status (0x1000) feature. It keeps essentially the same information
for
levels (reporting critical, low, good and full) but makes these
levels
optional, the device exports a capability setting which describes
which
levels it supports. In addition to this, there is an optional
state_of_charge paramenter that exports the battery percentage.

This patch adds support for this new feature. There were some
implementation choices, as described below and in the code.

If the device supports the state_of_charge parameter, we will just
export the battery percentage and not the levels, which the device
might
still support.
I'm guessing that means no changes needed on the upower side?

Cheers
Thread (9 messages) 9 messages, 3 authors, last reply 2021-01-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help