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.

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

1 Answer 1

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

 
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.