LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Fedora : hibernate on battery low (http://www.linuxquestions.org/questions/linux-newbie-8/fedora-hibernate-on-battery-low-893301/)

jonaskellens 07-23-2011 04:27 AM

Fedora : hibernate on battery low
 
Hello,

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 10: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:

Code:

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 01:13 PM

Code:

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


kbp 07-24-2011 02:13 AM

Code:

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


jonaskellens 07-26-2011 07:56 AM

Code:

[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:19 AM.