Setup suspend-on-lid-close/Fn+F4 outside of KDE/Gnome?
- by maxschlepzig
On current Ubuntu (10.04) suspend-on-lid/Fn+F4 only works if some powermanagement-applet of KDE/gnome is running.
But what about suspend-to-lid if you are working on the console or using a non-bloated window-manager?
What is the current mechanism to configure suspend-on-lid system wide?
What of hald/udev/acpid/foo-kit/random-thing is the right place to hook this feature in?
What is the up-to-date command to suspend from the command line/script?
echo -n mem > /sys/power/state
pm-suspend
pmi
or something else?
Btw, if it matters, I want to configure it on some Thinkpads.