LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-23-2011, 04:27 AM   #1
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 617

Rep: Reputation: 33
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.
 
Old 07-23-2011, 10:41 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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 '.
 
Old 07-23-2011, 01:13 PM   #3
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 617

Original Poster
Rep: Reputation: 33
Code:
[root@jonas Jonas]# gsettings
Command not found.
 
Old 07-24-2011, 02:13 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Code:
yum provides "*/gsettings"
yum -y install glib2
 
Old 07-26-2011, 07:56 AM   #5
jonaskellens
Member
 
Registered: Jul 2008
Location: Ghent, Belgium
Distribution: Fedora, CentOS
Posts: 617

Original Poster
Rep: Reputation: 33
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 14(x86_64) shows battery critically low when not anujdeshpande Linux - Laptop and Netbook 4 05-13-2011 12:15 PM
hibernate, suspend, is it safe to unplug mains power when battery in? lugoteehalt Linux - Laptop and Netbook 8 03-08-2007 07:58 AM
laptop battery and hibernate paulr1984 Linux - Hardware 7 11-15-2004 05:32 AM
low battery life d4nr Linux - General 2 08-05-2004 04:49 AM
Low battery logout in Fedora fcp101 Linux - Software 0 07-23-2004 07:36 AM


All times are GMT -5. The time now is 07:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration