First off I’m using gnome 3 and opensuse 12.2 on my laptop (not my desktop signature). I have Ubuntu, opensuse, windows 8 beta, and Kubuntu on it.
I wanted multi-hibernate my laptop so I switched my swap from my swap partition (/dev/sda5) to a file on /dev/sda6. I changed my /etc/fstab, I then changed my grub2 statement
to
resume=/dev/sda6 resume_offset=whatever running swap-offset myfile was
Then I noticed hibernate button doesn’t work
so I switched to the kernel method and wrote a script
#!/bin/bash
echo shutdown > /sys/power/disk
echo disk > /sys/power/state
Then I made a keyboard shortcut to F11
gnomesu my_hibernate_script
Works very nicely
but my screen won’t lock b4 it shutsdown
I’ve tried editing my script to include:
su <myname> -c gnome-screensaver-command --lock &
all combinations of such
to no avail
so my question is if its possible to lock it b4, whether there is some other place to signify this
and what do you think about my hibernate setup anyway. AFAIK the kernel method is the only way to hibernate to a swap file, if not can you point me in the right direction
(pm-utils etc). Would be nice if I could use the already made button under the menu for powering down/logout.
Thanks for any help