[ltp] ACPI suspend and USB
Bob Alexander
linux-thinkpad@linux-thinkpad.org
Sat, 15 Jan 2005 17:56:54 +0100
Cameron McCormack wrote:
> Hi everyone.
>
> Since ACPI support has come a way since I last gave it a go, I thought
> I would try it again. Suspend seems to work well, except that USB
> stops working once resumed, which also causes bluetooth to stop working.
>
> Is there any thing I have to do to get it alive again after resuming?
> This is on a T41p.
>
>
I use this shen I suspend:
#!/bin/sh
# remove the usbhdi module when suspending
if lsmod | grep '^usbhid' >/dev/null ; then
/sbin/modprobe -r -s usbhid
fi
if lsmod | grep '^uhci_hcd' >/dev/null ; then
/sbin/modprobe -r -s uhci_hcd
fi
if lsmod | grep '^ehci_hcd' >/dev/null ; then
/sbin/modprobe -r -s ehci_hcd
fi
exit 0
and this makes the mouse come back alive when I resume:
bob@t40:~/configs$ cat ins_ext_mouse
#!/bin/sh
# remove the usbhdi module when suspending
if !(lsmod | grep '^ehci_hcd') >/dev/null ; then
/sbin/modprobe -s ehci_hcd
fi
if !(lsmod | grep '^uhci_hcd') >/dev/null ; then
/sbin/modprobe -s uhci_hcd
fi
if !(lsmod | grep '^usbhid') >/dev/null ; then
/sbin/modprobe -s usbhid
fi
exit 0
HTH,
Bob