-   Linux - Newbie (
-   -   Fedora : hibernate on battery low (

jonaskellens 07-23-2011 05:27 AM

Fedora : hibernate on battery low

where do I define that my laptop should go hibernate or suspend when my battery has a certain percentage ?

Where do I define this percentage ?

I see no such options under Power Management Preferences.

kbp 07-23-2011 11:41 AM

A lot of the settings in Gnome 3 are accessible from the command line using 'gsettings', the command you want is probably 'gsettings set org.gnome.power-manager percentage-critical <percentage>'. Here's a quick tutorial to get you started with gsettings:


gsettings list-schemas | grep <search_term>
gsettings list-keys <schema>
gsettings get <schema> <key>
gsettings set <schema> <key>

Have fun exploring ... also, if you stuff up and Gnome won't start you'll need to prefix your commands with 'dbus-launch '.

jonaskellens 07-23-2011 02:13 PM


[root@jonas Jonas]# gsettings
Command not found.

kbp 07-24-2011 03:13 AM


yum provides "*/gsettings"
yum -y install glib2

jonaskellens 07-26-2011 08:56 AM


[root@jonas Jonas]# yum provides "*/gsettings"
Loaded plugins: presto, refresh-packagekit
No Matches found
[root@jonas Jonas]# yum install glib2
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package glib2-2.22.5-1.fc12.i686 already installed and latest version
Nothing to do

All times are GMT -5. The time now is 08:09 AM.