Suspending when closing the laptop lid in SUSE 10.2
From openSUSE
[edit]
This HOWTO assumes that you already have suspend working, but just want it to be activated on closing the laptop lid.
In openSUSE 10.2 power management moved from powersave to pm-utils. This means that you can no longer use /etc/powersave/events to make your laptop suspend when you close its lid.
However, the same functionality can be achieved by using kpowersave:
- Edit ~/.kde/share/config/kpowersaverc with your favourite text editor (create it if it doesn't already exist).
- Add the line ActionOnLidClose=SUSPEND2RAM or ActionOnLidClose=SUSPEND2DISK in the [General] section
So, if you wanted to suspend to RAM, the following two lines would appear in the file:
[General] ActionOnLidClose=SUSPEND2RAM
You will need to restart kpowersave for your change to take effect.

