Useful hints how to configure IBM/Lenovo T60 laptop for Debian GNU/Linux use:
/etc/default/acpi-support
ENABLE_LAPTOP_MODE=true
/etc/rc.local
echo disable > /proc/acpi/ibm/bluetooth
/etc/modules
acpi-cpufreq cpufreq_ondemand
/etc/rc.local
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Enable suspend to ram (I'm using stock Debian kernel and uswsusp and tpb)
apt-get install uswsusp tpb
Configure sudo for s2ram using:
/etc/sudoers
dpavlin ALL=NOPASSWD:/usr/sbin/s2ram, /usr/sbin/s2disk
Now configure tpb to suspend to ram on keypress:
/etc/tpbrc
THINKPAD /usr/bin/sudo s2ram
If you are not using Xsession, you might want to add something like following in .xinitrc
tpb -d
You will also want to add yourself to kmem group:
/etc/group
kmem:x:15:dpavlin