Battstat flashes 'lightening' during charging. Annoying and against HIG.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-applets (Ubuntu) |
Fix Released
|
Low
|
Sebastien Bacher |
Bug Description
The GNOME Panel Battery Applet (battstat) uses the following states:
On battery: percentage battery left as icon
On AC +nobatt: AC Power cord icon
On AC + <100%: AC Power cord icon + <blink>
symbol ("charging")
On AC + 100%: AC Power cord icon
The third state alternates between two pixmaps approximately once-per-second
creating a 'flashing' effect.
I (personally) believe this is (a) annoying (b) distracting (c) wasteful.
Additionally, it is (d) Against the GNOME HIG (Human Interface Guidelines); viz:
http://
Icon, Animation, Guidelines
* Icons should not usually appear animated. They may change to indicate a
change of state, but should not do so when that change is occurs regularly
rapidly. A battery status indicator would usually change slowly, therefore an
icon is appropriate. [...]
* Do not rely on blinking or animation as a means of alerting the user to any
particular event.
A suitable minimal patch to 'fix' this in a hackish way is the following patch
before, which resets FLASH always for be FALSE. However, ideally an extra
flag/configuration option be provided, with the default set to OFF.
--- battstat/
+++ battstat/
@@ -504,9 +504,9 @@
if(batt_life > 100) batt_life = 100;
if(batt_life == 100) charging = FALSE;
if(!
- battery->flash = battery->flash ? FALSE : TRUE;
+ battery->flash = TRUE;
pixmap_index = (acline_status) ?
http://
Fired up 'top' and noticed the following:
____ _______ ____
6514 root 15 0 158m 13m 3784 S 14.6 5.5 11:18.44 11:18 Xorg
7907 paul 15 0 42192 13m 7196 S 16.0 5.5 1:45.47 1:45 gnome-terminal
7783 paul 15 0 18456 2760 1876 S 0.0 1.1 0:46.02 0:46 battstat-applet
7806 paul 15 0 98.5m 28m 14m S 0.0 11.9 0:41.67 0:41 firefox-bin
It's probably bad(tm) that battstat has used more cumulative CPU than mozilla! :-)