When I'm running a task in Elementary that takes a prolonged time, I'd like to switch off the display until an event like the mouse moving or keystroke "wakes" it back up again.

On MacOS and Windows I can do this using a system call but Elementary Linux, no luck so far...

I've tried xset dpms force off but the screen "wakes" back up after a short time.

Suggestions or solutions would be appreciated.


1 Answer 1


Try it like this:xset -display :0.0 dpms force off

  • additionally you can turn it off by removing the display output from like ' xrandr : xrandr --output dp-1 --off' but you'll have to run an "on" command afterwards as it won't turn on automatically
    – Mudito
    Jan 6, 2020 at 18:46
  • Your participation is much appreciatedđź‘Ť Let me inform you that we love informative answers with step by step guide. Please try to post detailed information so that it is simple enough for someone with zero technical knowledge to easily understand. Have a nice day!
    – Hasan
    Jan 6, 2020 at 19:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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