Jump to content
Sign in to follow this  
rudy999

turning monitor on laptop puts application to sleep also

Recommended Posts

I have an app that calls

 PostMessage(Handle, WM_SYSCOMMAND, SC_MONITORPOWER, c_MONITOR_OFF);

 

Then with a timer turned the

Monitor back on. c_MONITOR_ON

 

On my laptop - (DELL , Win 11) - this turns off the monitor, but also the power button turns off,

and with a little trouble shooting 0 it appears as if the timer does not fire after the Postmessage for the

turn off of the monitor.

 

- keyboard click or mouse move restores power to monitor and then the timer event fires/

A) This did not happen on a Lenovo laptop with Windows 10.

B) This does not seem to happen (more testing needed) on a Dell tower pc with Win 11.

 

I looked at all the power - energy settings on the laptop and turned 'off' as much as possible.

I thought it was Win 11 but it could be the laptop..

 

Any comments or advice or further places to look is appreciated.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×