Can I sleep one of the displays on a multi-monitor setup?

51

13

I want to be able to 'put the display to sleep' on one of my two monitors when it isn't needed, so it doesn't distract me or use unnecessary power.

Ideally, the display would be asleep, but the OS would remain in dual-monitor mode, so I could still have a variety of windows open in the sleeping monitor's display space, which would mean I wouldn't have to keep switching between single- and dual-monitor modes.

That said, I'd also consider a solution that made it easy to toggle between single- and dual-monitor modes without navigating several system menus.

Stew

Posted 2011-04-08T21:45:45.817

Reputation: 990

This used to work for me perfectly with a result of a completely black screen. Now when I use it, it makes an all black screen but a pi symbol shows up near the middle and if you click on it, it is a way to switch from all white to all black. I just wish it would go away as I want just an all black screen with no "pi" symbol on it. Any idea what that might be and how to get rid of it? I am speaking of the VB6 program, .htm file. – None – 2015-04-29T01:59:58.447

2:( 2017 - none of the 8 answers here is answering the question -> make one of the monitors sleep but keeping it connected for OS. – icl7126 – 2017-02-09T15:27:04.787

2When you say 'not manually' you mean 'without physically powering off the monitor'? – Shinrai – 2011-04-08T21:48:44.273

So you want it to do it automatically? Like actually shut the monitor off or just stop displaying to it so it goes to sleep? Also there needs to be some kind of condition for this to happen it won't just magically turn off when you think your ready for one to shut down. Could you please provide some more details? – Supercereal – 2011-04-08T21:49:38.920

1

Using Nircmd (http://www.nirsoft.net/utils/nircmd.html) you can turn off a monitor via command line (but I do not tested with a desktop, only with a laptop). But I don't know how to change monitors with a command line or to choose only one to turn off. I also think if you only switch from 2-monitors to 1-monitor (like hitting fn+f4 from a laptop) the screen with no signal will enter in a standby mode after some time ("almost" turned off).

– kokbira – 2011-04-08T23:37:05.797

Wizmo (http://www.grc.com/wizmo/wizmo.htm) also has a way to turn off all monitors...

– kokbira – 2011-04-08T23:42:05.823

@Shinrai--yes, without physically powering it off. I want to "put the display to sleep," so that it doesn't distract me or consume power when I don't need it. – Stew – 2011-06-15T12:52:09.487

@kokbira--I'll take a look and see if your links do what I'm looking for. please add your responses as answers so they can be voted on--thanks! – Stew – 2011-06-15T12:53:24.163

Answers

43

Press Windows + P - you will be prompted to choose your display mode from single, extend, etc and so can be used to disable your secondary monitor.

I see you wanted to keep your open windows; this still keeps them open, but it does bring them all to one display if you enable single monitor mode. However at least this approach will let you shut down the second glowing distraction when it is not in use.

Cosmin.Net

Posted 2011-04-08T21:45:45.817

Reputation: 454

4Why is this answer accepted? It does not answer the question (switch off monitor, but keep windows on their positions). P.S. I think it depends on the used monitor. My Asus PB328Q can be switched off through the menu buttons and windows still show them as active monitors. – mgutt – 2016-12-06T23:00:07.583

It not only works, it works via LogMeIn remote! Awesome. – Stephen R – 2017-07-21T14:24:18.423

I recently switched jobs and no longer have two monitors, so I can't test this. If someone else confirms that this works, I'll choose it as the answer, since it requires no additional software. – Stew – 2011-10-14T15:50:00.573

Pressing windows+p on my Lenovo does nothing. In the case of this laptop FN-f7 does that. Not sure the windows+p is standard. – Stephanie Page – 2011-11-14T15:27:24.427

2i can confirm that this indeed works as said in the answer here. win + p and then you can choose between computer only, duplicate, extend and projector only modes. – b0x0rz – 2011-12-24T09:04:43.773

7

This post is a bit old but I ran into a similar issue. I can turn on my PC/media player/lights remotely but my 27" computer display throws a distracting glow across the room. In order to maximize my laziness I created a simple Java app to blacken the display (which I can launch remotely using other tools).

Below is the java code that I have tested on Windows 7. It takes a single argument 0 to max display-1. For example: java -jar Dimmer.jar 1 will blacken my second monitor, no arguments will assume display 0

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JWindow;
import javax.swing.UIManager;

public class Dimmer extends JWindow
{
   private static final long serialVersionUID = 3493635987367217622L;

   private final int _screen;

   public Dimmer ()
   {
      this(0);
   }

   public Dimmer (int screen)
   {
      super();
      _screen = screen;

      {
         final JButton button = new JButton("click to exit");
         button.setForeground(Color.gray);
         button.setOpaque(false);
         button.setContentAreaFilled(false);
         button.setBorder(BorderFactory.createEmptyBorder());
         button.addActionListener(new ActionListener()
         {
            @Override
            public void actionPerformed(ActionEvent arg0)
            {
               System.exit(0);
            }
         });
         add(button, BorderLayout.CENTER);
      }
      setAlwaysOnTop(true);
   }

   public void begin()
   {
      GraphicsDevice gda[] = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
      GraphicsDevice gd = gda[_screen];
      getContentPane().setBackground(Color.black);

      for (GraphicsDevice gdTmp : gda)
      {
         System.out.print( (gd == gdTmp) ? "->" : "  ");
         System.out.println( 
                "Screen(" + gdTmp.getDefaultConfiguration().getDevice().getIDstring() +")"
                +" "+ gdTmp.getDefaultConfiguration().getBounds() );
      }

      Rectangle bounds = gd.getDefaultConfiguration().getBounds();
      setLocation(bounds.getLocation());
      setSize(bounds.getSize());

      validate();
      setVisible(true);
   }

   /**
    * @param args
    * @throws Exception 
    */
   public static void main(String[] args) throws Exception
   {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      Dimmer dimmer = new Dimmer(args.length == 1 ? Integer.valueOf(args[0]) : 0);
      dimmer.begin();
   }

}

supaflav

Posted 2011-04-08T21:45:45.817

Reputation: 71

"Sleep" is in quotes, it's not the windows sleep mode. This little app fulfills the goal "do not distract" so it's a valid answer. And it does not rearrange your open windows, as the most popular answer does ;) – denispyr – 2014-08-13T14:38:51.797

supaflav would you mind sharing the jar file? I have no clue what to do with the raw code :) – Zalmy – 2015-01-13T17:00:02.243

1

@Zalmy: Install JDK, make sure the path variable is set. Save the above to a textfile called Dimmer.java, in your command prompt execute javac Dimmer.java, jar -cf Dimmer.jar Dimmer.class Dimmer$1.class, and use it with java -cp Dimmer.jar Dimmer

– Patrick – 2016-01-18T15:14:55.883

5but it does not put it to sleep! – HackToHell – 2013-01-12T11:05:05.793

7

Another option is the Nirsoft Multi Monitor tool: http://www.nirsoft.net/utils/multi_monitor_tool.html

You could create two batch files - one to disable display X, the other to enable. For example:

MultiMonitorTool.exe /disable 5

and

MultiMonitorTool.exe /enable 5

To find the display numbers open up MultiMonitorTool.exe, right click on the display, and visit properties.

Paul Filmer

Posted 2011-04-08T21:45:45.817

Reputation: 171

A drawback to this solution (like the windows-p option) is that all windows get dumped back on the main display. However, there is also a /switchoffon command that will actually power cycle the display, which leaves everything intact, albeit with a slight warmup for the monitor to come back on later. (I've tried the fullscreen black overlay program route too, but that still consumes full power and can look bad on a screen with lots of edge-bleed.) – Nathan Williams – 2019-12-05T15:19:04.770

2

I was looking to do the same exact thing. I have a 42" HDTV as my primary monitor and just set up my 24" Samsung as my secondary monitor off to my left side but when I watch a movie or play a game it can be distracting to have it sitting there glowing.

Just found the solution, Ultramon. You can get it here http://www.realtimesoft.com/ultramon/

There are other software apps that work similarly but I haven't tried those. With Ultramon the solution is simple, you can rightclick on the Ultramon icon in your taskbar to see a predefined list of actions. One of those actions is "Disable Secondary". You can either just select it from there or map a key combo to it (which is what I did) and now you have the ability to just turn off your secondary monitor with a click, or combo key press. This effectively allows you to switch from dual display mode to single and back again immediately. My second monitor just blacks out into power saving mode when I use my key combo and restores when I activate dual display with the same key combo when I am ready to use it again.

Works perfectly.

Pete

Posted 2011-04-08T21:45:45.817

Reputation: 37

2$40 is steep for something that can be done natively with a Windows shortcut. – laurent – 2016-03-23T16:37:03.603

1UltraMon rocks. :) – Ƭᴇcʜιᴇ007 – 2011-07-16T15:30:44.547

10This does exactly what Win-P does. Perhaps Win-P is more intuitive and faster than right-clicking Ultramon and selecting "Disable Secondary". It doesn't do what the original asker asked for, which is to just turn off one monitor but not disable it and not move windows around (while keeping the other one turned on). I'm also looking for the same thing and I'm disappointed Ultramon is not the answer. My search continues. – ADTC – 2012-08-01T03:34:02.157

1

If you just want to blank your primary display, without disabling or "sleeping" it you can use this VB6 program that simply loads a black background HTML file in full screen without any boarders:

http://jpelectron.com/download/viewit-rev3.zip

Copy all the files to: C:\Program Files (x86)\viewIT\ then run viewit.exe

There is also the option to make the entire screen white (like a "flashlight" app)

I created this because I needed a way to blank my tablet's screen (primary display) while I had a YouTube or other video playing full-screen elsewhere (secondary display)

If you don't like that this loads on the primary display only, I would suggest you open fillblack.htm in a browser, put that browser on the display you want, then press F11 to enable full-screen/kiosk mode - this also accomplishes it.

notAduck

Posted 2011-04-08T21:45:45.817

Reputation: 11

0

This will be the 100% matching solution. I'm using 3 screens ( in the order 1,2,3 - left to right). I can place 4 icons(for different profiles) on my main screen using this app. By clicking each, followings will happen. 1. only monitors #2, #3 will keep on 2. only monitors #1, #2 will keep on 3. only monitor #2 will keep on 4. all monitors will keep on

The tool is ultramon just download, install and experience it.

Malith

Posted 2011-04-08T21:45:45.817

Reputation: 121

0

Its easy with DisplayFusion. You can set profiles for one monitor and another for several monitors, and also setup combo keys to activate them with or without prompt confirm dialog. Win + P works well too.

Pedro Gelli

Posted 2011-04-08T21:45:45.817

Reputation: 103

@Moses it's probably this. (link to software)

– Noctis – 2015-11-17T02:27:14.287

What's DisplayFusion? Is it hardware or software, and where do I get it? – Moses – 2013-11-15T16:27:25.590

-1

I've mucked with this for years and simplest answer for me was to use a dark background and use WINDOWS KEY + M this just minimizes all but the active window. Most of the other options turn of the window and when you want the monitor again, you have to move all the windows back.

Milez

Posted 2011-04-08T21:45:45.817

Reputation: 1

-3

Download a copy of nircmd to your C drive and then create this batch file:

C:\nircmd.exe cmdwait 1000 monitor off

It will sleep your monitors but not lock Windows.

user260716

Posted 2011-04-08T21:45:45.817

Reputation: 1

1Cool, but this will sleep all displays, not the particular one. – Neurotransmitter – 2017-02-12T14:14:18.487