Comment 12 for bug 626025

Revision history for this message
Henryk Plötz (henryk-ploetzli) wrote :

Apparently a fix for this had been committed to the linux kernel in January (based on the Fedora fix mentioned in comment 10: https://bugzilla.redhat.com/show_bug.cgi?id=656738 ) but was then removed a couple days later by Linus because it freezed his EeePC. A new fix has been added a few days ago: http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.38.y.git;a=commitdiff;h=36d08a041f93f2c5370f95f9611c9065bb79e4fb and is already included in vanilla 2.6.38.5. There even is an Ubuntu bug #775809 to upgrade the kernel to 2.6.38.5, so when that is through it should fix this bug.

I've compiled that kernel myself (based on the current Ubuntu natty kernel sources) and tried it on my Thinkpad T510 and so far the battery capacity display stayed sane over a couple of suspend/resume cycles, while previously it would go wahoonie-shaped after just one resume-on-battery.

This fix introduces a new issue though, which is hopefully mostly cosmetic: Both the menu that pops up when clicking on the battery indicator and the notification overlay, but not gnome-power-statistics, show two batteries (with same "time left") after the first suspend/resume cycle when the bug would normally occur.