[ltp] Hot swapping ultrabay battery?

Marc MERLIN linux-thinkpad@linux-thinkpad.org
Mon, 21 Jan 2008 14:29:42 -0800


Howdy,

I have 2.6.22.15 with hotswap working between a hard drive and a cd-rom.

I just bought an ultrabay battery, hot swapped it in.
The system sees it because I can see the charging icon, but linux doesn't
see it:
gandalf:~# cat /proc/acpi/ibm/bay
status:         unoccupied
gandalf:~# acpi
     Battery 1: charged, 100%
gandalf:~# ls -d /proc/acpi/battery/BAT*
/proc/acpi/battery/BAT0

All I get in the ACPI logs is:
[Mon Jan 21 13:46:02 2008] received event "ibm/bay MSTR 00000003 00000000"
[Mon Jan 21 13:46:02 2008] notifying client 3992[107:114]
[Mon Jan 21 13:46:02 2008] notifying client 4237[0:0]
[Mon Jan 21 13:46:02 2008] notifying client 5280[0:0]
[Mon Jan 21 13:46:02 2008] executing action "/etc/acpi/ultrabay_eject.sh"
[Mon Jan 21 13:46:02 2008] BEGIN HANDLER MESSAGES
[Mon Jan 21 13:46:06 2008] END HANDLER MESSAGES
[Mon Jan 21 13:46:06 2008] action exited with status 0
[Mon Jan 21 13:46:06 2008] completed event "ibm/bay MSTR 00000003 00000000"

I'm pretty sure that if I reboot my laptop, I'll see the 2nd battery in
acpi, but is there a way to havfe it register without rebooting?

Thanks,
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/