Preventing/Disabling Automatic Shutdown/Hibernate on Critical Battery Level in Ubuntu

In Ubuntu 11.10, the critical battery level behaviour can be controlled view the Settings -> Power. But it has 2 options only - shutdown & hibernate. Either of these options will immediately shutdown/hibernate Ubuntu on critical battery level.

To gain more control over this  -
  1. Install dconf editor. This is available on Ubuntu software centre as well
  2. Open the dconf editor (terminal > type dconf-editor)
  3. Navigate to org > gnome > settings-daemon > plugins > power
  4. Set the critical-battery-action option as required.
Settings the critical-battery-action to interactive will display a popup asking you what to do as shown below with a automatic-shutdown-timer of 60 seconds -

Edit: This option works for Ubuntu 12.04 (Precise Pangolin) and Ubuntu 12.10 (Quantal Quetzal) as well.

No comments:

Post a Comment