Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My laptop battery has essentially expired - runs my laptop for about 10 min. I would like my system to suspend if power is lost. Can anyone help?

I am running Ubuntu 12.04.

share|improve this question
up vote 0 down vote accepted

Open dconf-editor from dash and navigate to power setting


change sleep-inactive-battery-timeout to some desired number of seconds
change sleep-inactive-battery-type to "suspend"
and make sure that use-time-for-policy is ticked

enter image description here

share|improve this answer
The time method did not work on a few tries. So I tried the battery percentage one (setting percentage-action to 98). It worked a few times, but failed when I was away. Perhaps because the screensaver had popped up. – Abdullah Khalid Oct 12 '12 at 17:48
To turn off the screensaver In dconf navigate to org>gnome>desktop>screensaver idle-activation-enabled untick the value and save it. – devav2 Oct 12 '12 at 18:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.