Thread (5 messages) 5 messages, 3 authors, 2019-09-13

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

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help