I've been looking for a way to put my Primary Monitor <21" Acer LCD Monitor> to sleep while watching movies or what have you on my secondary monitor <27" Samsung LED Smart TV>. I have scoured around and can find nothing that will allow me to put my main to sleep without actually hitting the power button.
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
public class Dimmer extends JWindow
private static final long serialVersionUID = 3493635987367217622L;
private final int _screen;
public Dimmer ()
public Dimmer (int screen)
_screen = screen;
final JButton button = new JButton("click to exit");