http://forums.gentoo.org/viewtopic-t-302844-highlight-dev+thinkpad.html
#! /bin/sh -- echo "Going to suspend this Computer now!" /etc/init.d/kdm stop /etc/init.d/xfree86-common stop /etc/init.d/alsasound stop sleep 2; modprobe -r nvidia sleep 2; echo -n 4 >/proc/acpi/sleep echo "Resuming this Computer now!" sleep 2; modprobe nvidia /etc/init.d/xfree86-common start /etc/init.d/kdm start /etc/init.d/alsasound start
/usr/bin/xscreensaver-command -display :0.* -lock /sbin/modprobe -r ipw2100 /sbin/modprobe -r hid /sbin/modprobe -r ehci-hcd /sbin/modprobe -r uhci-hcd /sbin/laptop_mode stop echo disk > /sys/power/state sleep 1 /sbin/modprobe hid /sbin/modprobe ipw2100 sleep 2 /etc/init.d/net.eth1 restart /etc/init.d/ntp-client restart
Linux/Suspend2disk/Code (last modified 2008-11-04 06:59:56)