Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: MonitorWake non functional after update to Windows 11 24H2 #182

Open
EPiSKiNG opened this issue Oct 12, 2024 · 5 comments
Open

Bug: MonitorWake non functional after update to Windows 11 24H2 #182

EPiSKiNG opened this issue Oct 12, 2024 · 5 comments
Labels
bug Something isn't working triage More information is required / ongoing investigation

Comments

@EPiSKiNG
Copy link

I have a surface pro 7 without a keyboard attached to it and not connected to any external monitor. When I trigger the monitorwake command, I see the cursor arrow move up, so I know the command is arriving to the device. However, when the screen is off (and I still have network because I can ping), the up arrow does not wake the monitor.

I assume this must be some change in Windows 24H2, as it was working properly prior to my in-place upgrade to 24H2.

Thoughts?

@EPiSKiNG EPiSKiNG added the bug Something isn't working label Oct 12, 2024
@amadeo-alex
Copy link
Collaborator

Unfortunately yes. What you're facing is most likely called "modern sleep" aka "s0ix" sleep. Bane of my sanity for a long time.
Allow me to post a screenshot of explanation I did on discord:
2zD59p

The only strange thing is that it happened to you after and upgrade.
Did you have the keyboard attached before? Asking since some USB devices can keep the device alive and prevent "modern sleep".

@EPiSKiNG
Copy link
Author

No, the keyboard was not attached before or after the upgrade... Looks like I may have to figure out a way to disable modern sleep or disable the lock screen and do a sleep command to turn it off and a wake on wlan to turn it back on...?

Fiddlesticks! Lol

@amadeo-alex amadeo-alex added the triage More information is required / ongoing investigation label Oct 19, 2024
@amadeo-alex
Copy link
Collaborator

@EPiSKiNG if you'd like, please try this test version https://github.com/amadeo-alex/HASS.Agent/releases/tag/2.1.1-beta2-monitorsleep

Installation and configuration instructions are in the release - please note, following those will prevent your device from sleeping :D

@AJolly
Copy link

AJolly commented Nov 7, 2024

btw, I deal with this sorta thing by first triggering WOL then monwake. Also I have it set to not use the up key, but rather keycode 251

@EPiSKiNG
Copy link
Author

Got it set up, verified with powercfg /requests that it is functional.

Triggered the command via MQTT, and the screens went dark. Touched the screen and it came back on. Waited about 5 minutes then triggered it again, and the screen didn't go dark... Perhaps because I have video playing on the screen? Closed the browser (home assistant dashboard with frigate card), and re-ran the command then it did indeed turn the screen off. I think there is some settings in the power configuration that disables sleep/monitors going off when media is playing?

For me this is all about power consumption. I'm using a Surface Pro 7. When on the HA dashboard with frigate card running, I'm pulling around 18w. After triggering "monitorsleeppowerplan" (after closing the browser, the consumption drops to 7.5w, which is great, however, sending the device to "Hibernate" drops the consumption down to less than 1w... That in combination with WoWLAN seems like the better option for me at this time.

Thank you for the development and I look forward to your future releases!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage More information is required / ongoing investigation
Projects
None yet
Development

No branches or pull requests

3 participants