I have an interesting task I'm attempting to accomplish. Basically I want to record when a person has physically turned off their monitor. Any ideas? Does the video card know if the monitor has been turned off? How could I potentially capture this info?
I'm not sure this will do the job. After reading over the documentation it doesn't seem that it captures if the user pushed the power button on the monitor. When the user pushes the power button to shut off the monitor, I want to record it in a log. Is there any other way to accomplish this?
Might just be me but I don't think it's possible. No scancode is sent from the monitor so it can't be caught as an event at all therefor the event will never be sent (it's seperate from the PC after all). In a laptop, the screen is usually a lot more integrated and can be accessed through certain ways therefor you can change things like brightness, hue, and even turn it on and off. On a regular PC, you can't tell the monitor to shutoff since it's completely seperate and gives no access to the monitor natively. Although I can't say if you can tell if the monitor is off from your PC. I would imagine so but I may be wrong.
I might be wrong but I did a research paper about a year and half ago on this.
@computerequip: What about a device driver or something more low level? There has to be some way to capture that info. The monitors hardware knows the button has been pushed and is sending signals to shut it off. Is there really no way at all to tap into that info?