lock screen before hibernating [12.04]
- by Emanuel Ey
So when i hibernate my laptop the screen doesn't lock automatically.
To solve this if changed /etc/acpi/powerbtn.sh to contain:
su - myUsername -c "gnome-screensaver-command -l"
sudo pm-hibernate
exit 0
When running this file from a command line it works as intended (ie, lock the screen and then hibernate).
Unfortunately, when pressing the power…