0

I've installed the latest version of ElementaryOS (as of a few days ago) and am looking for a way to prevent it from falling asleep or suspending. In System Settings->Power I've set "Suspend when inactive for:" to Never. Anything else I need to set?

0

did you set "Plugged In" OR "On Battery" ? they are different.

  • I don't see anything about plugged in or battery. Note this is on a desktop computer, so perhaps the OS is aware of that and knows there's no battery? – Mike Christensen Oct 30 '18 at 14:31
0

Figured this out. The settings in System Settings->Power don't seem to make any difference, at least on my particular BIOS or motherboard or whatever. However, this command will fix the problem and prevent the machine from ever sleeping:

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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