simple command to turn off monitor or display
xset dpms force offPress Alt+F2 and type the above command. It will switch off your monitor. Its very handy for saving power :P.
Whatever the reason is I hope you will find this useful.
And one last thing, spread the words, save power.
How to add the command to a shortcut, like Fn+F5 in my Samsung NC10
ReplyDeleteThis is very useful command to save battery power.
Thanks
hi anonymous you can easily do it from keyboard shortcuts from system preferences.
ReplyDeleteI've tryed this method but i dont know why it doesn't want to run
ReplyDeletei've created a simple launcher with the command and i've put it in desktop, it's ok, but i really like to do it with a keyboard shortcut, are there any tricks to do it?
(I'm using Ubuntu 9.04)
Hi,
ReplyDeleteI didn't understand your question properly. I am also on 9.04. Do as follows, make a file and put
#!/bin/bash
xset dpms force off
add executable permission to the file
Go to system preferences keyboard shortcut and add the file to it with your preferred keyboard shortcut.
Mine works perfectly in this way.
Sorry for my bad english...
ReplyDeleteI think that the problem is the #!/bin/bash
now i've resolved thanks so much
nothing hapen
ReplyDeleteHi Anonymouse,
ReplyDeleteCan you tell me the steps you did.
can u tell the steps?
ReplyDeleteHello Amit, what do you mean? Just type
ReplyDeletexset dpms force off
Where type?
ReplyDeleteIn run or on Command Prompt I've tried both this but not working and also explain how to make keyboard shortcut of it.
ReplyDeleteAmit, http://techspalace.blogspot.com/2008/09/simple-command-to-turn-off-monitor-or.html#comment-5698473158766539743
ReplyDeleteI've Windows XP please tell on behlf of it.
ReplyDeleteAmit, I was suspecting that. This tip is for Ubuntu Linux. I'm sure you can buy pretty cheap software for Windows XP. Please search some other place.
ReplyDeleteThanx 4 answering my queries. NP
ReplyDeleteI use "sleep 3 && xset dpms force off" with the excellent
ReplyDeletegesture recognition app Easystroke. Start my audiobook and then perform the recorded gesture and presto.......
Code:
ReplyDelete#!/bin/bash
sleep 1;xset dpms force off
"sleep 1" will prevent make the command work better
Thanks TechsPalace