Red Hat Bugzilla – Bug 231970
removing secondary battery confuses estimates
Last modified: 2013-03-05 22:49:37 EST
Description of problem:
g-p-m knows i've got two batteries on my laptop - left-click on the panel icon
shows the details of both. but it's not dealing with the removal of the
removing the secondary battery makes g-p-m just think the battery has just
instantly drained 70% of its power. left-click on the panel icon still lists
the secondary as present.
rebooting refreshes the list of batteries.
adding the secondary battery (after booting without it) causes similar confusion
- the second battery isn't in the list when i left-click the panel icon.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. left-click panel icon
2. add or remove secondary battery
3. left-click panel icon
battery list not updated
battery list updated
this is on a toshiba portege P2000 (several years old)
(it's g-p-m 2.17.92)
lshal -m doesn't produce output when i plug in the secondary battery after
booting with only the primary installed. does that mean this is a HAL problem?
with the secondary plugged in after booting without it:
lshal -l -u acpi_BAT2
says it's not present but
says it is.
since removing the secondary after booting with both causes g-p-m to say there's
29% remaining, doesn't that imply that g-p-m is getting some information from
HAL and some from /proc/acpi? i would have thought it should be all HAL?
All from HAL. This is probably the same as your other bug where we are not
getting an ACPI event when the battery is removed. If you do "lshal -m" and then
remove the battery you should get an event right away, if not, a HAL bug.
right, i don't get the event at all. so that's a HAL bug.
ah, got it. it's changing the percentage because removing external battery
(after booting with both) causes acpi_BAT2:battery.charge_level.percentage to be
removed in HAL.
as you say, all from HAL. i've changed the component. thanks again. :-)
all fixed in hal-0.5.9-0.git20070326.fc7
:-) thank you very much.