Comment 3 for bug 1234458

Revision history for this message
Ohad Lutzky (lutzky) wrote :

After a little research, here's what I think is going on: The power level information from Logitech mice (using HID++) has very low resolution, as can be seen in hidpp-device.c from the "upower" package: Power level will always be reported as one of [5, 20, 55, 90]. Power drain rate (in watts) is not reported, so I assume the power indicator is trying to figure out how long the battery will last just by taking the differential of the power level. Since this never changes (until it drops by a whole level), the estimate is always infinity.

The solution should be to modify the estimation algorithm so that if it fails to estimate within 1 minute or so, it just reports the power rate (55% in your case).