[ltp] Problem with sleep

Uzytkownik linux-thinkpad@linux-thinkpad.org
Wed, 13 Sep 2006 19:18:12 +0000 (UTC)


I have problems with sleep on R51e. I try this scrip from thinkwiki.
After run screen is black and sleep led is on.
I can't return to normal mode (even if X is switched off). What's wrong?

$ cat /etc/acpi/actions/sleep.sh 
#!/bin/sh

MODULES="psmouse ohci_hcd ehci_hcd"

for mod in $MODULES; do rmmod $mod; done

echo "$1" | grep "button/lid" && grep -q open /proc/acpi/button/lid/LID/state &&
exit 0

sync
/sbin/hwclock --systohc

FGCONSOLE=`fgconsole`
chvt 1
/usr/sbin/radeontool light off

sleep 5 && echo -n "mem" > /sys/power/state

/sbin/hwclock --adjust
/sbin/hwclock --hctosys

for mod in $MODULES; do modprobe $mod; done

radeontool light on
chvt $FGCONSOLE