Article
PROBLEM:
I'm on a plane flight using my linux laptop and I need to conserver battery power by manually turning off the lcd screen when I'm not looking at it.
SOLUTION:
On a dpms-enabled X-server setup, this this is quite easy to do.
Just open up a terminal of your choice (xterm, konsole, gnome-terminal) and type the following command:
$ xset dpms force off
Similarly, if you are using a CRT monitor and you want to manually invoke a monitor standby, you can use this command:
$ xset dpms force off
EXAMPLE:
Once you get the hang using the xset command, you can implement it in more advanced graphical scripts like the following example program:
!/bin/bash xmessage -center -timeout 5 -buttons "" Standby in 5 Seconds... Keep mouse still & sleep 5 xset dpms force standby
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 2307 reads


0