Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 down vote accepted

Open dconf-editor from dash and navigate to power setting

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

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

 
discard

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.