Bug 52101 - Battery Monitor reports inaccurate percentage remaining
Summary: Battery Monitor reports inaccurate percentage remaining
Status: CLOSED INVALID
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Battery (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Lan Tianyu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-29 01:53 UTC by Benjamin Daines
Modified: 2013-03-25 06:32 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.5, 3.6
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.