16 February 2011

// // Leave a Comment

Gnome3 power setting

There have been written a lot about the missing GUI option to set the default lid close action in Gnome3 and I am one of those users there have a laptop where suspend will going into doom (actually is not suspend there is the problem but resume :) ). This is not a a gnome3 issue but my issue, because I close the lid many time a day when the laptop is doing some work and I do something else.

The sad part is that Fedora will be one of the first distributions to use gnome3 as default and it will take the beating for choices made upstream.

What there not have been written a lot about, is how to change the lid default action, so here  it comes

Setting Laptop lid close action on ac:

gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_ac "<setting>"

<setting> ::= nothing|blank|suspend|hibernate|shutdown

Setting Laptop lid close action on battery:

gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_battery "<setting>"

<setting> ::= nothing|blank|suspend|hibernate|shutdown


In Fedora 15 alpha you have to use

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action "<setting>"


gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action "<setting>"


Here is a shell script to easy change the settings, just run an select from the gui. It was kindly contributed by Kevin DeKorte


Post a Comment