Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Since my monitor takes an awful lot of time to turn back on after being physically turned off, I'm looking for a command or a simple utility to turn off my screen with a shortcut. Setting a black screensaver is not satisfactory; I want the screen to "hibernate" (the same effect I would get by turning off the computer while leaving the screen physically on).

The same question for Windows: How can I make my screen blank by a shortcut?

share|improve this question
    
Press STRG a than k and than y –  Daniel Jan 4 '12 at 21:25

3 Answers 3

Try using

xset dpms force off

to force the screen to turn off.

share|improve this answer
    
That's really great. For the OP though, when a key is pressed, it turns the screen back on. I'm not sure if that's desirable. –  FakeRainBrigand Jan 4 '12 at 21:18
2  
Sometimes works better if you do sleep 1 ; xset dpms force off otherwise remnants of the last keyboard activity (I guess) sometimes turns the screen back on immediately. –  Mat Jan 4 '12 at 21:19

I made a file called /home/me/bin/blank and made it executable chmod +x blank with the following in it:

#!/bin/bash
sleep 1; xset dpms force off

Then I set a shortcut in Gnome3 application "keyboard" (gnome-control-center keyboard) to run that script when I push CTRL+ALT+Q.

Man I love linux.

share|improve this answer
up vote 0 down vote accepted

slock locks the screen gracefully.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.