Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to turn off the display in Windows (7), preferably without using additional software?

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

share|improve this question
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
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
also if you may paste the ps script here - it will be useful for us visitors – Ujjwal Singh Oct 10 '12 at 19:27

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
@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 '14 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 '14 at 1:49

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
+1 for nircmd. Imho tools set from Nir Sofer and Russinovich should be installed on any advanced user's PC. – Smit Johnth Apr 20 '15 at 20:11

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
I used this with AutoHotKey! Kudos to… for the sleep idea. :) Took me a while to figure that one out. – Mihai Alexandru Bîrsan Apr 2 '13 at 22:34
Works great with AutoHotKey in Windows 10. Perfect. – oldmankit Oct 12 '15 at 9:13

protected by slhck Mar 31 '13 at 16:48

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, 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.