Suspend on Thinkpad and Arch Linux
Figure I should make some notes on what I've done to get Arch running on my Thinkpad. I've made so many changes without any notes. Oops.
This is what I did to get my laptop to suspend when closing the lid. Found the instructions at http://wiki.archlinux.org/index.php/Lenovo_Thinkpad_X300#Suspend_.2F_Hibernate
# pacman -S uswsusp
Test suspending:
# /usr/sbin/s2ram -f
Then install acpid
# pacman -S acpid
Add it to /etc/rc.conf DAEMONS section before hal.
# nano /etc/acpi/handler.sh
Note: In above link it says to edit default.sh. That file doesn't exist. It's now handler.sh
Change the 'button/lid' section like this:
button/lid)
#echo "LID switched!">/dev/tty5
;;
to
button/lid)
/usr/sbin/s2ram -f
echo "LID switched!">/dev/tty5
;;