SUSE Conversations

Manually Invoke Standby for Laptop

By: mlfarrell

February 15, 2006 12:00 am





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.


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


Once you get the hang using the xset command, you can implement it in more advanced graphical scripts like the following example program:

xmessage -center -timeout 5 -buttons "" Standby in 5 Seconds... Keep mouse still &
sleep 5
xset dpms force standby

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Categories: Uncategorized

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (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.