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

When I ask kde to suspend to ram on my laptop, it does not resume properly. However, I installed uswsusp and sudo s2ram -f -a 3 works. Is there a way to tell kde that it is supposed to run this command line when closing the lid instead of having to use the console each time?

share|improve this question

You should be able to edit (or create if it doesn't exist) the file /etc/pm/config.d/module and add the following content:

SLEEP_MODULE=uswsusp

As well as the file /etc/pm/config.d/defaults with the following content:

S2RAM_OPTS="-f"

All suspend functions should now work using s2ram.

Reference

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.