Re: [PATCH] HID: input: fix battery level reporting on BT mice

From: Jiri Kosina
Date: Wed Apr 04 2018 - 04:33:26 EST


On Tue, 3 Apr 2018, Martin van Es wrote:

> Hi Dimitry,
>
> I reapplied the 3 commits I had to revert earlier and applied your patch. Have
> correct battery level reading on my BT mouse back!
>
> /sys/class/power_supply/hid-00:1f:20:fd:cb:be-battery# grep "" *
> capacity:53
> grep: device: Is a directory
> model_name:Bluetooth Mouse M336/M337/M535
> online:1
> grep: power: Is a directory
> grep: powers: Is a directory
> present:1
> scope:Device
> status:Discharging
> grep: subsystem: Is a directory
> type:Battery
> uevent:POWER_SUPPLY_NAME=hid-00:1f:20:fd:cb:be-battery
> uevent:POWER_SUPPLY_PRESENT=1
> uevent:POWER_SUPPLY_ONLINE=1
> uevent:POWER_SUPPLY_CAPACITY=53
> uevent:POWER_SUPPLY_MODEL_NAME=Bluetooth Mouse M336/M337/M535
> uevent:POWER_SUPPLY_STATUS=Discharging
> uevent:POWER_SUPPLY_SCOPE=Device
>
> rdesc file is attached
>
> Thx for the effort!

Can I add your Tested-by: while applying the commit?

Thanks,

--
Jiri Kosina
SUSE Labs