Re: [PATCH v5] hid-logitech-hidpp: read battery voltage from newer devices

From
Bastien Nocera <hadess@hadess.net>
Date
2019-09-02 09:23:46
Also in
lkml
Reply to
Pedro Vanzella, 2019-08-31
On Sat, 2019-08-31 at 13:56 -0400, Pedro Vanzella wrote:
Newer Logitech mice report their battery voltage through feature
0x1001
instead of the battery levels through feature 0x1000.

When the device is brought up and we try to query the battery, figure
out if it supports the old or the new feature. If it supports the new
feature, record the feature index and read the battery voltage and
its status.
FWIW, it wasn't clear to me that there were 3 bytes, and the last one
would contain the battery status. I was under the impression reading
this that the only thing the mouse would send back would be the
voltage, so this might need a slight rewording.

Did you test this with upower? Did it work as you expected?

Cheers
Thread (5 messages) 5 messages, 3 authors, last reply 2019-09-13
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