[ltp] loading lt_hotswap on boot kills ibm_acpi: Thinkpad T30
Peter Frühberger
linux-thinkpad@linux-thinkpad.org
Wed, 16 Aug 2006 15:25:09 +0200
Am Mittwoch, 16. August 2006 01:07 schrieb kaens:
> Alright, so I have a Thinkpad T30 running Ubuntu Dapper without much
> of a problem. I did notice, however, that the system would freeze if I
> hotswapped an optical drive for a battery in the Ultra-bay slot.
>
> There is a module called lt_hotswap that monitors the slot, and sends
> the eject command to ibm_acpi (I do believe) if the release lever is
> pulled. It works perfectly fine if I load it when my system is already
> booted.
>
> I'd really like to have this loaded at boot time though - so I added
> lt_hotswap to /etc/modules, and the one configuration option it has to
> /etc/modules.d/options as options lt_hotswap auto_eject=1.
>
> That should load the module on boot, right? And it does.
>
> dmesg | grep hotswap produces
> [17179849.068000] Laptop ultrabay hotswap driver version 0.3.6
> [17179849.068000] lt_hotswap: '\_SB.PCI0.LPC.EC.BAT1' found (Hot-Swappable)
> [17179849.068000] lt_hotswap: '\_SB.PCI0.IDE0.SCND.MSTR' found
> (Hot-Swappable) [17179849.068000] lt_hotswap:
> '\_SB.PCI0.PCI1.DOCK.IDE1.PRIM.MSTR' found (Non-Swappable)
> [17179849.068000] lt_hotswap: '\_SB.PCI0.LPC.FDC.FDD0' found
> (Hot-Swappable) [17179849.068000] lt_hotswap: '\_SB.PCI0.PCI1.DOCK' found
> (Hot-Swappable)
>
> However, when it boots, /proc/acpi/ibm is entirely missing. The /dev/
> files didn't get made, and dmesg | grep ibm produces:
>
>
> ibm_acpi: IBM ThinkPad ACPI Extras v0.12a
> ibm_acpi: http://ibm-acpi.sf.net/
> ibm_acpi: dock device not present
> ibm_acpi: acpi_install_notify_handler(bay) failed: 7
>
> I found out that lt_hotswap needs to be loaded after all other ACPI
> modules are loaded, and I suspect that this is the problem. Any
> confirmation on that? I've also read that udev does not load modules
> in any specific order - so is there any way around this other than
> adding something to xinitrc or bashrc (or wherever would be
> appropriate) or running a script on login? That seems like an ugly
> solution to me, but I'll do it if I need to - It does work seamlessly
> if it's loaded after boot.
>
> Sigh.
>
> Any feedback would be appreciated.
Hi!
I fixed it following (it just works *G*):
in /etc/modprobe.d/
I created a new file called lt_hotswap
with:
option lt_hotswap auto_eject=1
install lt_hotswap /sbin/modprobe ibm_acpi; /sbin/modprobe --ignore-install
lt_hotswap
just give it a try
LG
Petet
--
"The Death of One is a tragedy, the Death of Millions is just a statistic" -
M.M.
Key-ID: 0x1A995A9B
keyserver: pgp.mit.edu
==============================================================
Fingerprint: 4606 DA19 EC2E 9A0B 0157 C81B DA07 CF63 1A99 5A9B