After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 315259 - battstat applet shows 204% charge
battstat applet shows 204% charge
Status: RESOLVED NOTGNOME
Product: gnome-applets
Classification: Other
Component: battery
git master
Other Linux
: Immediate normal
: 2.12
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-09-04 23:17 UTC by Brandon Hale
Modified: 2005-09-06 02:05 UTC
See Also:
GNOME target: 2.12.x
GNOME version: ---


Attachments
204 -> 100 (1.18 KB, patch)
2005-09-04 23:35 UTC, Allison Karlitskaya (desrt)
rejected Details | Review

Description Brandon Hale 2005-09-04 23:17:13 UTC
battstat applet shows 204% charge when battery is fully charged due to
voltage/capacity reported by ACPI being higher than engineered.

AC on, shows 204%

design voltage:          11100 mV
present voltage:         12511 mV
remaining capacity:      53000 mWh

AC off, discharging a moment later

last full capacity:      26000 mWh
remaining capacity:      25390 mWh
Comment 1 Allison Karlitskaya (desrt) 2005-09-04 23:35:00 UTC
Created attachment 51801 [details] [review]
204 -> 100
Comment 2 Allison Karlitskaya (desrt) 2005-09-04 23:37:34 UTC
To clarify on the bug report a little:

When the battery is in the process of charging it goes like:

  97 ... 98 ... 99 ... 100 ... 204.

The problem only occurs when the battery is fully charged and then spikes up to
be way over capacity.

The attached patch fixes this problem by clamping the 'remaining capacity' value
to never exceed the 'last full capacity'.  As a result, when the charge spikes
up to 204% the user interface will only ever show 100%.

In all other cases this patch shouldn't change anything else.
Comment 3 Brandon Hale 2005-09-05 01:12:26 UTC
Patch WFM.
Comment 4 Allison Karlitskaya (desrt) 2005-09-05 22:42:43 UTC
Also being tracked here, care of an independent reporter:

http://bugzilla.ubuntu.com/show_bug.cgi?id=14246

(HAL fix attached to ubuntu bug).
Comment 5 Allison Karlitskaya (desrt) 2005-09-06 02:05:28 UTC
Since this is a bug best fixed in HAL, I'm gonna close it.