windows 7 - Detect monitor off on Win7 -
win7-based kiosk, clerk-accessible switch powers off monitor, task detect , either orderly shutdown or shutdown/reboot or nothing @ all, based on other factors. if had input on physical design i'd things differently, ... have work with. i've found few different methods supposed detect monitor powered off, none of them have worked. i'd prefer sent event rather polling once/second.
- screen.allscreens.length continues return 1 when monitor powered off.
- systemevents.displaysettingschanged not invoked.
- systemevents.powermodechanged not invoked.
- registerpowersettingnotification guid_session_display_status not result in messages (but later found lead me think guid_session_display_status isn't supported until windows 8 - correct?).
- registerpowersettingnotification guid_monitor_power_on gives me 1 message when start not give wm_powerbroadcast message when monitor powered off (nor when monitor powered on). had high hopes because ms doc says "the display turned on or off, either by user or system's screen-blanking function." within "mobile pc" section , desktop version of os, maybe doesn't apply us?
any other ideas detecting monitor has been switched off? or common gotchas make it's not working may affecting tests?
do have figure out how speak vesa ddc (from c#)? guess i'd have figure out how send valid command - response @ means monitor on, no response means off.
Comments
Post a Comment