Powering down the display in XP with a command

21

3

Is there a command to power down the display in Windows XP? That is, a command that causes the video card to stop sending a signal to the monitor until input is received, much as power management does after a time.

Ignacio Vazquez-Abrams

Posted 2010-04-05T16:26:56.887

Reputation: 100 516

Answers

17

Not as far as I know but you can use utilities like Monitor Off to power down the monitor.

Nathaniel

Posted 2010-04-05T16:26:56.887

Reputation: 3 966

Excellent. This worked spectacularly. – Ignacio Vazquez-Abrams – 2010-04-05T17:02:39.470

6

The technique behind this is explained at codeproject here: http://www.codeproject.com/KB/system/display_states.aspx

– Jeroen Wiert Pluimers – 2010-04-13T17:21:23.633

20

There is also a utility called NirCmd, which supports not only this but more commands (like changing system volume, manipulating services etc - documented in the page linked). Usage is via the command line:

nircmd monitor off

And sometimes I've seen Windows "listening" to your last keystroke (the Return that confirms the command) after the command is "issued" and waking back up. A solution that has worked for me in most cases is:

nircmd cmdwait 1000 monitor off

Disclaimer: although this may be the third or fourth time I mention it here, I have no association to the NirCmd's team: just a happy user.

Rafael Almeida

Posted 2010-04-05T16:26:56.887

Reputation: 589

1Unfortunately it doesn't look like nircmd can be used to turn off a single monitor (in a multi monitor setup) – Sridhar Ratnakumar – 2014-05-04T02:17:58.097

1

Turn off display by shortcut

Why this script is good?

Display will sleep again in 3 sec
Even if mouse by accident was moved or any program waked display up.

How-to:

  1. Download Gist as ZIP
  2. Unpack & run
  3. Link Display Sleep! will should be created.

Github-Gist / setup_display_timeout.cmd


How it works:
  1. Set idle timeout to 3 seconds (via Powercfg)
  2. Wait for any key press
  3. Set idle timeout to 1 hour

Part of code:

powercfg /SETDCVALUEINDEX %current_scheme_token% SUB_VIDEO VIDEOIDLE %seconds%
powercfg /SETACVALUEINDEX %current_scheme_token% SUB_VIDEO VIDEOIDLE %seconds%
powercfg /S %current_scheme_token%

befzz

Posted 2010-04-05T16:26:56.887

Reputation: 331