0.preface
1.openSUSE power management intro
To be added.
2.setup suspend to RAM and test
Unfortunately, my Toshiba laptop is not in the s2ram whitelist.
First find out proper options that work for you.
In my case, "sudo s2ram -f" works fine. You can find some test options combinations in http://en.opensuse.org/S2ram.
Second modify opsensuse options.The default is s2ram, no other options are set in openSUSE.
sudo vi /etc/pm/config.d/s2ram
add follow lines:
S2RAM_OPTS="-f"
3.setup suspend to RAM with KPowersave
When you close laptops's lid, the default action is to lock your screen not to suspend to RAM.
You can change it by follow steps.
Reference:
openSUSE Pm-utils: http://en.opensuse.org/Pm-utils
s2ram: http://en.opensuse.org/S2ram
KPowersave: http://en.opensuse.org/Projects_KPowersave