Icon colour changes at inappropriate times (too early; red, yellow, green)

Bug #74231 reported by Gerv
30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-power
Fix Released
Medium
gnome-power-manager (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

I have an IBM X40 with an extended 8-cell battery. The total battery life is between 5 and 6 hours. I run Edgy.

GPM changes the colour of the systray icon from green to yellow when I hit 49% remaining - i.e., using today as an example, when I have 2 hours and 31 minutes of battery life left. This is more than most laptops have at 100% charge. It changes the icon from yellow to red when I have about an hour of battery life remaining. This is also unnecessarily scare-inducing.

This is clearly ridiculous. The colour should be based on the time remaining, not on the percentage remaining. I suggest:

> 45 minutes: green
45 - 15 minutes: yellow
< 15 minutes: red

This may, of course, require the icons to be dynamically generated or coloured, rather than using a fixed icon set where colour is inextricably linked to the "fullness" of the battery. But it would make the indicator a heck of a lot more useful.

Another alternative would be to have an icon mode (either the default, or an option) where the percentage left was overlaid on the icon itself. Then I could ignore the colours and read the real situation.

Additionally, if you imagine the "fullness" of the icon as a series of rows of pixels, then a particular row of pixels gets "un-coloured" as soon as that row is reached, rather than half way through the range of percentages it represents. In other words, when I go to 49.99%, the indicator shows one row of pixels less than half full. This is a more minor point, but still irritating.

These two factors together lead the icon to imply that I have less percentage battery, and less actual battery time remaining than I have. The result is that every time I want a sensible estimate, I have to mouse over the icon and read the tooltip - defeating the point of having an icon.

One last thing while I'm here: it took me weeks to work out that the "AC charging" version of the icon had an overlaid electrical plug. I really couldn't work out what it was. Take a tip from the mobile phone industry and overlay a lightning bolt in the centre of the battery. That's a fairly standard convention now.

Gerv

Revision history for this message
Gerv (gerv) wrote :

> It changes the icon from yellow to red when I have about an hour of
> battery life remaining.

Actually, that's wrong. It's about an hour and a half. 30%, perhaps?

Gerv

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducable with the live environment of the Desktop CD of the development release - Gutsy Gibbon. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at [WWW] http://www.ubuntu.com/testing/ . Thanks again and we appreciate your help.

Changed in gnome-power-manager:
assignee: nobody → pvillavi
status: New → Incomplete
Revision history for this message
Gerv (gerv) wrote :

Pedro: to test it with the Desktop CD, I would need to download 650MB and burn the CD. This bug is really easy to reproduce - if you haven't made any changes to how the power manager calculates its colours, then the problem will still be present. Do I really need to use a live CD to show this, or can you spend a minute to check it yourself?

Thanks,

Gerv

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Works fine here that's why i asked you to reproduce the problem.

Changed in gnome-power-manager:
assignee: pvillavi → nobody
status: Incomplete → New
Revision history for this message
Gerv (gerv) wrote :

Pedro: when you say "works fine here", can you tell me how your battery life indicator decides to change from green to red to yellow? If it does it at a certain _percentage_, then you've reproduced the bug. (If your battery life is shorter than mine, it might do it at the right times for you. That doesn't mean the bug doesn't exist.) If it does it when a certain amount of _time_ is left, then the bug is fixed.

Which does it do for you?

Gerv

Revision history for this message
Gerv (gerv) wrote :

I'm now running Gutsy and this is still a problem, albeit not so much because my battery is now older and so lasts less long.

However, I still maintain that the code is using the wrong principle to decide when to change colour. It should use "minutes remaining" and not "percentage remaining". Do I need to go and find the relevant code file where this is implemented before anyone will address this question?

Gerv

Revision history for this message
Chris Jones (cmsj) wrote :

I suspect the icon should use a combination of the time and percentage remaining, but for a long-lasting battery it does definitely give the impression that it's dropping left. I currently have 50 minutes remaining, but the indication in the icon is a tiny sliver of red about the same height as the bottom edge of the battery.picture

Changed in gnome-power-manager:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Thomas Sibley (thomas-sibley) wrote :

This also annoys the heck out of me. I'm on a Thinkpad T60 with the extended battery pack. The icon is pretty much useless until I mouse over it.

Revision history for this message
Thomas Sibley (thomas-sibley) wrote :

I'm running Hardy, for reference. This seems to be a very longstanding bug.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

this needs to be send upstream to bugzilla.gnome.org

Revision history for this message
Pedro Villavicencio (pedro) wrote :

looks like bug http://bugzilla.gnome.org/show_bug.cgi?id=345954 ; linking the report.

Changed in gnome-power-manager (Ubuntu):
status: Confirmed → Triaged
Changed in gnome-power:
status: Unknown → Confirmed
Changed in gnome-power:
importance: Unknown → Medium
Changed in gnome-power:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.