Monitor Power Off
// March 14th, 2010 // No Comments » // how to, linux
Q: What do you do if you go away from your computer for a while and want to turn off the screen to prolong its life time, save energy and reduce your carbon footprint ?
A: Use a software that can turn off your your monitor with just a mouse click.
Windows
On Windows NirCmd can be used. Just create a shorcut with the following target:
"C:\Program Files\nircmd\nircmd.exe" cmdwait 1000 monitor off
Linux
Create a script with the following commands.
#! /bin/sh if [ ! -z $1 ] ; then if [ -z "$(echo $1 | awk '/^[0-9]+$/')" ] ; then echo Usage: poweroff_monitor [SECONDS] echo Example: poweroff_monitor 10 echo If SECONDS is set, it waits SECONDS seconds before it suspends the monitor. exit fi sleep $1 fi xset dpms force standby
The script can be used either as a shortcut from your favorite graphical interface or straight from the command line.



