Re: [PATCH v3 00/19] Report power supply from hid-logitech-hidpp

From: Dave Hansen
Date: Thu Jun 01 2017 - 14:06:28 EST


On 03/27/2017 07:59 AM, Benjamin Tissoires wrote:
> this is finally a rework of the series that provides kernel power_supply
> for hidpp devices.
>
> This will allow upower to not handle those devices anymore and to have more
> immediate reportng of the device to the system.

FWIW, I'm on Ubuntu 14.04, and upower *is* reporting my mouse battery as
if it were a laptop battery. It's mostly garbage, and always reports
0%, which makes upower always tell me my laptop is 2/3 charged (I have 2
real batteries).

Is this expected?

> $ upower --dump
> Device: /org/freedesktop/UPower/devices/battery_hidpp_battery_0
> native-path: hidpp_battery_0
> vendor: Logitech
> model: Performance MX
> serial: 101a-92-ca-86-1e
> power supply: no
> updated: Thu 01 Jun 2017 11:04:02 AM PDT (22 seconds ago)
> has history: yes
> has statistics: yes
> battery
> present: yes
> rechargeable: yes
> state: discharging
> energy: 0 Wh
> energy-empty: 0 Wh
> energy-full: 0 Wh
> energy-full-design: 0 Wh
> energy-rate: 0 W
> percentage: 0%
> capacity: 100%
> History (charge):
> 1496340177 0.000 unknown
> History (rate):
> 1496340177 0.000 unknown

$ upower --version
UPower client version 0.9.23
UPower daemon version 0.9.23