Answered by:
Screen On/Off

Question
-
I'm currently dabbling into digital signage and I'm having troubles with a monitor turning off on me. My question is this : is there a way in C# code that I can tell if a monitor is currently on or off? I'm writing an alert system for me since I cannot correct the monitor's issue at this time.
I've tried looking into system.manager, system.environment, and systeminformation... but was unable to find anything which was able to tell me the monitor's current state.
Specs:
Monitor : Samsung TV
PC: Windows XP PRO 32-bitTuesday, January 12, 2010 10:27 PM
Answers
-
I don't think you can tell if a monitor is on or off in Windows.You can, however, attempt to turn it on. You can do so with SendMessage, check out the MonitorPower class here: http://systempeppers.codeplex.comBut this will not work if they have the monitor unplugged, or sometimes if they physically push the power button.I suggest you include a message box saying "Can you see this?" to the user, and after so many seconds, assume their monitor is off.This is how the XP video settings handle it, check it out. Change your resolution to 640x480 or something.
- Marked as answer by Chao Kuo Monday, January 18, 2010 10:18 AM
Tuesday, January 12, 2010 10:49 PM -
See http://www.codeproject.com/KB/system/display_states.aspx
With best regards, Yasser Zamani- Marked as answer by Chao Kuo Monday, January 18, 2010 10:18 AM
Wednesday, January 13, 2010 10:51 AM -
All replies
-
I don't think you can tell if a monitor is on or off in Windows.You can, however, attempt to turn it on. You can do so with SendMessage, check out the MonitorPower class here: http://systempeppers.codeplex.comBut this will not work if they have the monitor unplugged, or sometimes if they physically push the power button.I suggest you include a message box saying "Can you see this?" to the user, and after so many seconds, assume their monitor is off.This is how the XP video settings handle it, check it out. Change your resolution to 640x480 or something.
- Marked as answer by Chao Kuo Monday, January 18, 2010 10:18 AM
Tuesday, January 12, 2010 10:49 PM -
See http://www.codeproject.com/KB/system/display_states.aspx
With best regards, Yasser Zamani- Marked as answer by Chao Kuo Monday, January 18, 2010 10:18 AM
Wednesday, January 13, 2010 10:51 AM -