battery icon unreliable at low battery levels

Reported by Ricky Chan on 2013-05-31
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
indicator-power
Undecided
Unassigned
indicator-power (Ubuntu)
Undecided
Unassigned

Bug Description

Battery icon does not reliably display correct values at low battery levels.

The icon works fine until you get below 30%. At 10-30% a small red icon should be displayed, and another icon should be displayed at <10%. Currently, the icon doesn't seem to change to anything smaller than the 40% icon.

I have sometimes seen the red 20% icon, but it's very unreliable, and typically switches back to the 40% icon moments after resuming the phone.

Sam Bull (dreamsorcerer) wrote :

Yes, they seem misleading to me. 99% looks like a 2/3 battery, 25% looks critical with nothing left. Android's battery indicator has good values.

Changed in touch-preview-images:
status: New → Confirmed
John Lea (johnlea) on 2013-08-12
Changed in ubuntu-ux:
assignee: nobody → Matthew Paul Thomas (mpt)
John Lea (johnlea) on 2013-08-12
affects: touch-preview-images → unity8
Lars Uebernickel (larsu) wrote :

There are two naming schemes for battery icons: "battery-{low,good,full}" and battery-{000,020,040,060,080,100}" (and corresponding "-charging" variants). Indicator-power gives precedence to the first scheme, but always includes both. Please consult the source [1] to find out which icons are used for which percentages.

[1] http://bazaar.launchpad.net/~indicator-applet-developers/indicator-power/trunk.13.10/view/head:/src/device.c#L286

Charles Kerr (charlesk) wrote :

This is related to bug #1215520, which discusses the specific case of the charging icon being >20% misleading in the power indicator. For example, Sam's in comment #1 seems to be getting bitten by that bug.

However, the fix for bug #1215520 is to revert back to the battery-{000,020,040,060,080,100} icons that Lars mentioned. This bug seems to be requesting a finer granularity than that, so I'm leaving this as a separate ticket apart from 1215520.

Sam Bull (dreamsorcerer) wrote :

This had nothing to do with the charging icon, they had peculiar values as I mentioned in the other comment at the time this bug was registered. I think the problem was the old 10/30/60 icons linked, where 99% charge would be the 60% icon, which is really inaccurate.

The current implementation works nicely, where 90-100% is a full bar, 70-90% is a 80% bar etc.

This is almost fixed, except that I'm finding the icon doesn't change reliably below the 40% image. I currently have 18% charge, and it still displays the 40% icon, when it should be displaying the red 20% icon.

Once this displays the low battery icons reliably, then this bug is fixed.

Matthew Paul Thomas (mpt) wrote :

I don't think this is a design bug. The spec says "If it is discharging, the icon interior should be filled from left to right approximately as much as the remaining charge". <https://wiki.ubuntu.com/Power#Icons> And that's what the linked code appears to do. So if there's a case where the icon doesn't match the percentage, that's a bug in either the indicator code or the icon theme, not the design.

Changed in ubuntu-ux:
assignee: Matthew Paul Thomas (mpt) → nobody
status: New → Incomplete
Sam Bull (dreamsorcerer) wrote :

Updated description to match current state of this bug, as tested on r10.

description: updated
summary: - battery icon and percentage
+ battery icon unreliable at low battery levels
Sam Bull (dreamsorcerer) wrote :

This is still an issue on r132.

affects: unity8 → indicator-power
affects: ubuntu-ux → indicator-power (Ubuntu)
Changed in indicator-power (Ubuntu):
status: Incomplete → Triaged
Changed in indicator-power:
status: Confirmed → Triaged
Charles Kerr (charlesk) wrote :

Confirmed, I'm seeing this on phablet too.

The problem is that the icon being generated when charging at ~18% looks for:
1. battery-low-charging-symbolic
2. gpm-battery-020-charging
3. battery-020-charging

if battery-low-charging-symbolic were moved to the end of the list, the more granular battery-XXX-charging icons would take precedence.

I agree with Sam, this ticket isn't fixed until this behavior gets fixed.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers