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. Running this command in a loop seems CPU intensive, and there isn’t a very elegant way to escape it. Thankfully, one user, nxmehta, found a solution utilizing a simple Python script, and it works on everything from Karmic to Natty.
| How to Protect Your Flash Drive Data with TrueCrypt | 50+ Tools & Techniques to Remove Image Backgrounds in Photoshop, pt 2 | 50+ Tools & Techniques to Remove Image Backgrounds in Photoshop, pt 1 |


6:45 AM
Deep Singhal
Posted in:
0 comments:
Post a Comment