I am not sure if this belongs on serverfault or superuser.
I would like to override SetThreadExecutionState(ES_DISPLAY_REQUIRED) to be a no-op. How is this accomplished?
Is there some registry setting that can be altered instead of API hooking?
Blocking ES_DISPLAY_REQUIRED will prevent apps from keeping the monitor powered on. I have an application (likely the antivirus) that is preventing some monitors from entering power-save and I think this function is the culprit.
Before you get too far down that road, have you confirmed that it is the antivirus? If you’re on Windows Vista or Windows 7, use POWERCFG.EXE /REQUESTS (as administrator) to check.
Also, this thread, which links to this document, says to use POWERCFG.EXE /REQUESTSOVERRIDE to veto SetThreadExecutionState.