Indicator stuck on mouse icon, along with "estimating..."
Bug #1234458 reported by
Marc Deslauriers
This bug affects 90 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Fix Released
|
Low
|
Charles Kerr | ||
indicator-power |
Fix Released
|
Low
|
Charles Kerr | ||
indicator-power (Ubuntu) |
Fix Released
|
Low
|
Charles Kerr |
Bug Description
indicator-power 12.10.6+
My power indicator is stuck on the mouse icon. When I click on it, it says "Mouse (estimating)".
Why is it stuck on "estimating"?
Why show the icon at all if I'm using a Logitech mouse with a battery?
<https:/
* the time remaining for it to empty or fully charge, if estimable, in H:MM format; otherwise
* 'estimating…' if the time remaining has been inestimable for less than 30 seconds; otherwise
* 'unknown' if the time remaining has been inestimable for between 30 seconds and one minute; otherwise
* the empty string."
Related branches
lp:~charlesk/indicator-power/lp-1234458
- PS Jenkins bot (community): Approve (continuous-integration)
- Lars Karlitski (community): Approve
-
Diff: 1086 lines (+524/-299)5 files modifiedsrc/device.c (+311/-195)
src/device.h (+21/-16)
src/service.c (+63/-46)
tests/Makefile.am (+1/-1)
tests/test-device.cc (+128/-41)
Changed in indicator-power (Ubuntu): | |
status: | New → Confirmed |
tags: | added: rls-t-incoming |
Changed in indicator-power: | |
assignee: | nobody → Charles Kerr (charlesk) |
Changed in indicator-power (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
Changed in hundredpapercuts: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in indicator-power: | |
status: | Triaged → In Progress |
Changed in indicator-power (Ubuntu): | |
status: | Triaged → In Progress |
Changed in hundredpapercuts: | |
status: | Triaged → In Progress |
assignee: | nobody → Charles Kerr (charlesk) |
Changed in indicator-power (Ubuntu): | |
assignee: | nobody → Charles Kerr (charlesk) |
Changed in indicator-power: | |
importance: | Undecided → Low |
To post a comment you must log in.
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).