[Ilugc] Laptop battery critical power.

  • From: gurukumara@xxxxxxxxx (Kumara Guru)
  • Date: Tue, 8 Nov 2011 18:44:29 +0530

On Tue, Nov 8, 2011 at 5:13 PM, Roshan George <roshan at arjie.com> wrote:

On Tue, 2011-11-08 at 09:14 +0530, sag kavin wrote:
Where is the configuration file which specifies the critical
battery limit?

Like many other things in Gnome, the information is stored in gconf. Use
`gconf-editor` and look under `/apps/gnome-power-manager/thresholds`.
You might also consider looking at the `use_time_for_policy` key in
`/apps/gnome-power-manager/thresholds` if you decide to use percentage
instead of time to judge when to do things.


Ubuntu 11.10 (which the OP is using) is using Gnome 3 -- gnome apps
have migrated from gconf to Gsettings (with dconf backend). The dconf
backend is binary, so you won't be able to directly change it from a
text editor.  If you have dconf-editor installed, navigate to

 org -> gnome -> settings-daemon -> plugins -> power

in the left pane and you can edit the power configuration in the right
pane. Alternatively, you can also use gsettings from the command line.

gsettings   list-recursively   org.gnome.settings-daemon.plugins.power

will list all the keys and their values under this schema. If you want
to change a value of a key, say percentage-critical :

gsettings   set   org.gnome.settings-daemon.plugins.power
percentage-critical  10

You will find description of the keys here:
http://git.gnome.org/browse/gnome-settings-daemon/tree/data/org.gnome.settings-daemon.plugins.power.gschema.xml.in.in

Note: You should also set use-time-for-policy key to false if you use
percentage.




Regards,
Kumaraguru

Other related posts: