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.

Is there a way to turn off display in Windows 7 without using additional software?

Powershell script works fine, but leaves command-line window after turning on the display.

share|improve this question
2  
You have an existing ps1 script? They don't usually leave the window open after running. Perhaps there's something in the script that needs to be changed to let the window close? –  Ƭᴇcʜιᴇ007 Aug 10 '11 at 13:16
1  
How about using the blank screen saver plus setting your power settings to turn off the monitor after some period of non-use? –  uSlackr Aug 10 '11 at 13:47
3  
also if you may paste the ps script here - it will be useful for us visitors –  Ujjwal Singh Oct 10 '12 at 19:27

3 Answers 3

On a laptop you can use the keyboard shortcut combination of Fn+F7 (F7 might differ depending on the laptop model) and for a desktop you can always use the power button.

Do you need any other specifications such as wake up on mouse movement or something else?

You can always create a shortcut and assign a keyboard shortcut to a black screensaver, use this path:

%systemroot%\system32\scrnsave.scr /s

This will not turn off you screen but make it completely black

share|improve this answer
    
I have desktop and as far as I know it is not possible to set power button to turn off display. Wake up on mouse movement or keyboard key is fine. Black screensaver leaves glow, which is visible at night. –  unicoio Aug 10 '11 at 12:21
3  
@unicoio If it's to turn off the screen for the whole night why don't you use the power button on the screen itself? –  Greg Aug 10 '11 at 13:04
    
I arrived at this question over three whole steps, literal strides. Your screensaver answer was exactly what I needed. My LCD TV treats solid complete black as off. –  Motes Mar 26 at 2:57
    
+1 for launching scrnsave.scr. This doesn't kick in the actual power save, so I can attach it to a hotkey and turn the laptop monitor off while lid remains open. –  LMSingh Aug 4 at 1:49

You can use this WinAPI call: SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2) where: WM_SYSCOMMAND = 0x0112 & SC_MONITORPOWER = 0xF170

but this requires an additional SendMessage executable that you can fire through a script, Command-Line/Run or a Shortcut(.lnk), with these parameters.

share|improve this answer
2  
I used this with AutoHotKey! Kudos to greasypc.blogspot.ro/2008/03/… for the sleep idea. :) Took me a while to figure that one out. –  Mihai Alexandru Bîrsan Apr 2 '13 at 22:34
1  

A couple more options:

  • Turn Off LCD - just place the executable on your desktop
  • NirCmd - you'll need to copy nircmd.exe to your Windows system directory, or add its location to the PATH environment variable. Then just run nircmd monitor off from the command line. More information at the link.
share|improve this answer

protected by slhck Mar 31 '13 at 16:48

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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