[ltp] loading lt_hotswap on boot kills ibm_acpi: Thinkpad T30

kaens linux-thinkpad@linux-thinkpad.org
Wed, 16 Aug 2006 21:40:50 -0400


I got it to work by making a one-line script that loads the module,
and running update-rc.d scriptname defaults (which sends it to
runlevels 2, 3, 4, 5, 6) and it worked fine. I'll test your solution
as well - since my script needs to be setuid to work.

On 8/16/06, Peter Fr=FChberger <peter.fruehberger@gmail.com> wrote:
> 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=3D1.
> >
> >  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-Swappa=
ble)
> > [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' fou=
nd
> > (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=3D1
> install lt_hotswap /sbin/modprobe ibm_acpi; /sbin/modprobe --ignore-insta=
ll
> 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
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> Fingerprint: 4606 DA19 EC2E 9A0B 0157  C81B DA07 CF63 1A99 5A9B
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>