7

OK, I know there are quite a few posts on this topic. However, none of them provide the solution to my issue: I don't want just to turn off my monitor(s), I wish my code to turn off a specific monitor. The URL the most people refer to, http://fci-h.blogspot.com/2007/03/turn-off-your-monitor-via-code-c.html, doesn't help here, as it turns off all the displays.

So, I have my laptop screen and an additional external monitor. While I'm watching movies, I switch the display to the external monitor and my laptop screen goes black, however, it's still on and glowing in the dark. I wish to turn it off. Could anyone help please?

EDIT: Is there any way to acomplish this, meaning it needn't have to be written in .Net. Basically, I just need an .exe file that's able to turn the particular monitor off and on alternately.

Boris
  • 9,986
  • 34
  • 110
  • 147
  • 2
    @omfgroflmao - I don't know about yours, but my laptop's on/off button turns off the CPU when it turns off the screen, so it's not too useful. – Gabe Apr 05 '10 at 01:05
  • What version of Windows are you using? – Gabe Apr 05 '10 at 05:20
  • not c#, but maybe this can help you if you're willing to search for more material in c++: http://www.codeproject.com/kb/system/display_states.aspx – zxcvbnm Apr 05 '10 at 06:24
  • Not *quite* a dupe, but cross-reference: http://stackoverflow.com/questions/713498/turn-on-off-monitor – Marc Gravell Apr 05 '10 at 08:07
  • @gabe: I'm using Windows 7 64-bit. – Boris Apr 05 '10 at 15:38
  • @omfgroflmao: Hahahahaha, nice one. However, my laptop lacks that functionality. – Boris Apr 05 '10 at 15:39
  • @zxcvbnm and @Marc Gravell: Thanks for the links, however, they don't really solve the main issue - turning off *particular* monitor. – Boris Apr 05 '10 at 15:39

1 Answers1

5

It looks like there's no good way of turning off a specific monitor, but it is possible to set your laptop's backlight to minimum brightness. Depending on which version of Windows you have, there are different ways to do it:

Community
  • 1
  • 1
Gabe
  • 84,912
  • 12
  • 139
  • 238
  • Thank you for your answer. If no solution turns up, it appears that I'd have to satisfy myself with lowering the brightness. – Boris Apr 05 '10 at 15:43