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
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