One click monitor power-down for Linux
If you’re running a Linux-powered laptop and you want to switch off the screen, without waiting for the laptop to go into sleep mode, then this is a great tip from Tombuntu.
To switch the your monitor off use the command: sleep 1 && xset dpms force off.
The sleep 1 (wait for one second) is needed only when you are typing the command in a terminal. This is because the command is executed as soon as the enter key is pressed, when it lifts up X turns the monitor back on.
To turn this into a Linux desktop shortcut, right-click on your desktop and select “create new launcher”.
The “command” setting must be set to “xset dpms force off” (without the sleep 1).
Via LifeHacker.
Follow @alastairotter on Twitter.
Comments
3 Responses to “One click monitor power-down for Linux”
Comments are closed
December 21st, 2007 @ 2:55 pm
Cool. This is quite useful, as I often like to leave the monitor on when I walk away but I’m “never quite sure” that it’s going to go into suspend mode. Thanks!
December 21st, 2007 @ 2:57 pm
True, a very cool tip. My Ubuntu is a random generator. one of a kind when it comes to sleeping. Sometimes it dims the monitor, sometimes it turns it off, sometimes it sleeps, it’s all in gods hands.
maybe they could debug this?
December 24th, 2007 @ 5:30 am
I found it better to place the suspend statement into a script file. It is helpful to set a 4 second delay to prevent mouse movement from canceling out the suspend.
#!/bin/bash
# suspend monitor power after 4 seconds
sleep 4
xset dpms force suspend