[ltp] T40, ACPI, and sleeping

Steffen Dreise linux-thinkpad@linux-thinkpad.org
Tue, 01 Feb 2005 17:06:03 +0100


Hi i have an t42P the option acpi_sleep=s3_bios is running correctly for
me. Bevore i got the same fusy things like eric.


$ cat /etc/acpi/actions/Fn-F4.sh 
#!/bin/sh
radeontool light off
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
logger "Fn+F4 Suspending to RAM"
sync
hwclock --systohc
#echo -n mem > /sys/power/state
echo -n 3 > /proc/acpi/sleep
hwclock --hctosys
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
logger "Resuming from Fn+F4 Suspending to RAM"
radeontool light on