27 Jun 2012 amits   » (Journeyer)

Changing GNOME Default Action for Low Battery

The GNOME default of ‘hibernate’ or suspend-to-disk on very low battery power isn’t optimal for many laptops — hibernate is known to be broken on several hardware setups, it frequently results in file system corruption, and just causes pain.  That, combined with the weird behaviour of the GNOME power manager to put the system in hibernate, even when the battery isn’t low, annoyed me enough to go hunting for a way to change the default.

The GUI doesn’t expose a ‘sleep’ setting; it just offers hibernate and shutdown, so here’s a tip to just put the system to sleep state (suspend to RAM), which is a much well-behaved default for me.

Install dconf-editor, and go to


and modify the


to suspend.

For the curious, the weird behaviour of the GNOME power manager I mentioned above is noted in these bug reports:

Bug 673220 – ‘Critical capacity’ warning on laptop with multiple batteries broken
Bug 673221 – Shutdown action on battery low doesn’t save session
Bug 673222 – More prominent warning, at least 5-10% before battery goes critically low
Bug 673223 – System enters shutdown/hibernate even when power connected but battery low

Syndicated 2012-06-27 05:47:53 (Updated 2013-05-22 10:33:28) from Think. Debate. Innovate. - Amit Shah's blog

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!