[ltp] ACPI suspend to RAM on T21

Stewart C. Russell linux-thinkpad@linux-thinkpad.org
Mon, 20 Jun 2005 08:28:30 -0400


System: T21, Intel Pro/100 ethernet (so ACPI should work), no hibernate
partition, kernel 2.6.11, ibm-acpi 0.11, Gentoo

My system refuses to sleep when I close the case; it stays powered on.

I have /etc/acpi/events/lid:

event=button/lid
action=/etc/acpi/actions/sleep.sh %e

and /etc/acpi/actions/sleep.sh:

#!/bin/sh
# if launched through a lid event and lid is open, do nothing
echo "$1" | grep "button/lid" && grep -q open
/proc/acpi/button/lid/LID/state && exit 0
sync
# go to sleep
echo -n "mem" > /sys/power/state

Am I missing something?

thanks,
 Stewart