Bug 52101

Summary: Battery Monitor reports inaccurate percentage remaining
Product: ACPI Reporter: Benjamin Daines (benjamindaines)
Component: Power-BatteryAssignee: Lan Tianyu (tianyu.lan)
Status: CLOSED INVALID    
Severity: normal CC: benjamindaines, lenb, rui.zhang
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.5, 3.6 Subsystem:
Regression: No Bisected commit-id:

Description Benjamin Daines 2012-12-29 01:53:53 UTC
Currently, I'm running Ubuntu 12.10 on a MacBook Pro 8,2 with kernel version 3.5.0-21-generic, but this bug also happens with the same kernel and OS on a MacBook Pro 2,1.  Furthermore, it also happens with Fedora 17 with Kernel 3.6.x.  Also doesn't matter what DE I'm using.  I can confirm the behavior with KDE and Gnome Shell.

Expected Behavior: battery meter should report accurate charge 

Actual Behavior: battery meter drops to low, inaccurate percentage remaining at seemingly random times.  Time remaining calculation remains correct. upower reports incorrect stats.  acpitool reports correct percent.  acpi reports no battery found.
Comment 1 Benjamin Daines 2012-12-29 01:54:25 UTC
Have also seen bug reports on Ubuntu's tracker that appear to be the same issue, but affect non-apple hardware.
Comment 2 Benjamin Daines 2012-12-29 02:00:42 UTC
Suspend & Resume cycle will sometimes temporarily alleviate the issue.
Comment 3 Lan Tianyu 2013-02-04 15:11:10 UTC
Your problem  is "upower reports incorrect stats, acpitool reports correct percent.  acpi reports no battery found." ?

Most these user-space tools' information are from "grep . /proc/acpi/battery/*/*" or
"grep . /sys/class/power_supply/*/*".

You can check these directly. And their values call come from bios. ACPI battery driver just exposes them.
Comment 4 Lan Tianyu 2013-02-18 14:04:39 UTC
ping...
Comment 5 Lan Tianyu 2013-03-21 13:20:43 UTC
Since no response more than one month, close the bug.