Ubuntu Gnome Power Management Notes

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


case "$1" in
        service g15daemon stop
        service g15daemon start

sudo chmod +x /etc/pm/sleep.d/10_g15daemon