Submitted by Lupine on Sat, 01/09/2010 - 22:43
Below I will describe some specific Gnome Power Management settings I like to alter/change from a default Ubuntu/Gnome install. These are a personal selection that I usually change for every new install I do, so it's good to have these handy. This might get added onto in the future, so I'll consider this a living document.
Disable Lock on Resume from Suspend
Whenever I resume my suspended Ubuntu laptop, it always prompts me for a password. To disable that, I run the following commands:
gconftool-2 --type boolean -s /apps/gnome-power-manager/lock/suspend false
gconftool-2 --type boolean -s /apps/gnome-power-manager/lock/hibernate false
gconftool-2 --type boolean -s /apps/gnome-power-manager/lock/gnome_keyring_hibernate false
GNOME Power Manager scripts
This is how I auto restart some services upon suspend/resume. I'll use the g15daemon as an example:
sudo vi /etc/pm/sleep.d/10_g15daemon
#!/bin/sh
case "$1" in
suspend)
service g15daemon stop
;;
resume)
service g15daemon start
;;
esac
sudo chmod +x /etc/pm/sleep.d/10_g15daemon