Ubuntu 6586 Published by

Howtogeek posted a tutorial about turning off your monitor with a hotkey in Ubuntu



The traditional way of turning your monitor off via a hotkey has been broken for a few versions now. A pretty simple Python script can bring that functionality back reliably and efficiently.

The old way of turning off you monitor was through the xset command:
xset dpms force off

There are a few variations on that, but since Ubuntu Karmic (9.10), it?s been broken. Some of the system calls apparently don?t get along well with this command, causing the screen to wake up after about a minute. After being annoyed at this for quite some time, I found a few solutions on the Ubuntu Forums.
  How To Turn Off Your Monitor With a Hotkey in Ubuntu