Kernel Bug Tracker – Bug 25612
kernel panic when removing battery
Last modified: 2010-12-29 22:58:31 UTC
hi, this is my first kernel.org bug report so please forgive me if its not perfect.
when i remove one of the 2 batteries in my laptop the system crashes with a lot of error info. i remember the last line being about "unable to handle pageing request" i would love to give you the hole errormsg but i dont know how to access it. i have to restart my pc in order to continue working.
this does not depend on the ac adapter being plugged in or not.
i believe this was working on one of the earlier release candidates. it definetly works with the 2.6.36...
hope this helps you.
thx and happy holidays
panasonic toughbook cf-30k (mk3); 4gb ram; 2 batteries; ssd; 8gb swap; gobi modem
opensuse 11.3; kde; head kernel 2.6.37-rc6.25.1; smeegol packages installed
please revert this patch,
Author: Zhang Rui <email@example.com>
Date: Wed Dec 8 10:40:49 2010 +0800
ACPI battery: update status upon sysfs query
Sometimes the Battery driver doesn't get notifications when it's
plugged/unplugged. And this results in the incorrect Battery
status reported by the power supply sysfs I/F.
Update Battery status first when querying from sysfs.
Tested_by: Seblu <firstname.lastname@example.org>
Signed-off-by: Zhang Rui <email@example.com>
Signed-off-by: Len Brown <firstname.lastname@example.org>
If you don't know how to revert it, please just download 2.6.37-rc7 kernel, remove line 189 and 190 of drivers/acpi/battery.c, which are
rebuild your kernel and see if the problem still exists.
Please re-open it if reverting the patch doesn't help.
yay it works again. i can remove any battery without the system crashing.
funny: the behaviour described above happens now on my laptop. sometimes the system shows 2 batteries when only one is present. kde shows an empty loading percentage. not zero but empty meaning ""
thx for the help
that was really great.
i will make sure to report any kernel related bug in the future.
(In reply to comment #2)
> yay it works again. i can remove any battery without the system crashing.
> funny: the behaviour described above happens now on my laptop. sometimes the
> system shows 2 batteries when only one is present.
Yes, we noticed this issue, but as the patch above causes regression.
I'm about to rewrite the battery driver, maybe sometime in the next quarter. :)
> i will make sure to report any kernel related bug in the future.
good to know. :)
please feel free to file new bug reports here if you think it's kernel related.
Fixed by http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cde44d1740bcb3dcfecbf792a71826431e61686e .