Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

How do I set the policy about what action should be taken if the computer is inactive for some time. This can be easily done from GUI, via Power Manager.

I am trying to do this from command line. I need to essentially set the action to "Suspend", and "when inactive for" time to 10 minutes.

Any thoughts?

share|improve this question

That's a dconf value. It can be easly set via gsettings. Type this command in a terminal:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 600

600 is the value in seconds. If you set it to 0 it is the equivalent to never suspend.

share|improve this answer

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.