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

(Visited 1 times, 1 visits today)

Category: Uncategorized
This entry was posted Wednesday, 15 February, 2006 at 12:00 am
You can follow any responses to this entry via RSS.

Leave a Reply

Your email address will not be published. Required fields are marked *

No comments yet