-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Awake not working #12326
Comments
For the tray, this is tracked in #12145. Can you clarify what the "usual sleep time" is? How did you select the 2 hour limit for Awake? |
Sorry if it wasn't clear. I've selected keep computer awake for the next 2hrs from the power toys main window app, under awake section. By usual sleep time (in my case after 20 idle minutes the computer goes to suspend mode) I meant the sleep time is specified in the windows settings in power management. |
I can't reproduce this on my machine - can you share your logs, please? What is the version of PowerToys that you are using? |
As stated in the first message, version is 0.41.4. |
Hi @eirinn1975 , Right-click on the PowerToys icon in the tray menu and select Report Bug Thank you! |
PowerToysReport_2021-07-15-14-30-10.zip |
Looking at the logs, I don't see the timed keep-awake ever kicking in. Specifically, the last line in the app log is:
This echoes what's in the Awake settings (see
Which tells me that somehow the setting did not take effect. @eirinn1975 - can you try switching modes (from indefinite back to timed), and see if the issue persists? |
I'll make some tests today. Is the awake feature based on some service? |
After a few tests: I set up suspension and screen off to 1 minute. turned on the awake function for both screen and indefinite time on awake. screen worked, and suspension avoided. I then turned off the keep screen awake function, it worked (screen went black). Then I disabled awake, and the computer stayed on. Seems now I'm in the opposite situation... Here is the log after these tests. |
I am having the same issue on my machine running Win11 |
Having the same issue win 10 |
@weoinvm can you please provide some context as to what you are trying to do, what behavior you are seeing, and what system configuration do you have? |
I'm facing the same issue. I thought they've fixed it on the latest releases, but perhaps it's working the same way as before. I'll provide logs soon, but I'll have to clear things first and generate a fresh one. However, I believe this issue is related to system lock/hibernate settings/effects, not after a new startup. I hibernate my machine a lot, and attempted to run it while I watched some stuff on Telegram Desktop, but the screen turns off even the setting of 1/2 hours is turned on. What do you guys need besides the activity/dump logs? Anything else I could help you with to figure this out? |
@dend Any update? Since it's labeled prio-1 and 0.49 is around the corner... |
No major update yet as I haven't been able to pinpoint the issue. We might get it out post-0.49 as I am in the process of drafting up the spec for the next Awake version. |
I have the same problem. Awake does not keep the computer awake. Does not appear to make any difference what I set it to. Computer goes to sleep after the usual amount of time. (I realise this isn't a particularly helpful report - let me know if you want logs or anything - I'm just adding it here to indicate that I'm another person finding that this tool doesn't do what it's designed to do) |
Same behavior with my Surface Book 2... |
Just to put in my two penny's worth. I am having the same issue with Windows 11 (all updates as of 12 Dec 2021) and Awake 0.51.1. After some work I think the issue only happens after the PC awakes from a sleep state. It works fine after a cold start. I hope this helps find the issue. |
I have same issue here on one computer. Maybe it's related to Modern Standby (S0 power state), because it works without issue on other computers that don't support modern standby... |
Interesting - thank you for the observation and detailed report @abenneke. I am currently investigating if there is a way to do this. |
An interesting tidbit in the official docs:
Wonder if this has anything to do with observed behavior. It also seems like I need to expand logging to see when the behavior occurs before this can be addressed, and for that I need to get the |
Does not work for me as well. If I set "Keep screen on" to true, then the display still goes dark after predefined time. The logs constantly state:
So it seems that it acutally never enables the keep-awake state? Anything I can do to help debug the issue? |
@Morgy93 are you setting a specific mode of operation other than passive after setting the display on? Are you doing this through the tray or the PowerToys settings? Also - what OS version do you have? |
OS: Windows 11 Home 21H2 22000.556 I used the tray icon and only enabled "Keep screen on". Edit: It seems to work if I also change the power plan accordingly - is this intended or a bug? If intended, the UX should be improved. |
@morgy - "Keep Screen On" should only work when you have the active mode selected (either timed or indefinite) and not passive. I'll think through this a bit more from the UX perspective - maybe the option should not be available to keep the display on unless you've selected a compatible mode. |
Yes, that would be great! Shall I open another issue for it? |
@Morgy93 yes please - a new issue would be great here. |
Glad I found this. So looks like this PowerToy isn't working at all. I tried to keep my Surface Book 3 awake to test something while I was away, but my test failed and apparently because Awake didn't keep the machine awake. The Event log shows that my Surface Book entered connected standby mode regardless. I think this tool doesn't work with modern standby.
|
So apparently setting "Put the computer to sleep" to "Never" in the regular power options doesn't work, either. It still goes to connected standby. Now I'm wondering if it has something to do with Dynamic lock, which I've configured. According to the System log, it goes to connected standby as soon as I walk away with my phone. |
It seems to have worked for me, too. Thank you! |
This seems to have been addressed. That said, @marcelgood @schnodo - I am tagging this item for myself to address in documentation as well, since it's a good way to get tripped up if you don't actually have the GPO set up. Thank you for the feedback! |
The ticket's closed but...what about those of us with Home editions of Windows. Any tips? |
@padevel if the app is not working for you, please open a new issue with repro steps along with system details 👍 |
@dend I don't see anything at https://learn.microsoft.com/en-us/windows/powertoys/awake about the group policy setting - is it still expected that we need to do this in order for Awake to work properly? |
For anyone else having this issue with Windows 11 Home Edition. If I go to the Control Panel -> Changed Advanced Power Settings, I can see that I have Sleep set to Never. |
Yep; same for me! Changed hibernate settings and finally stayed awake. Thanks for posting @looeee ! |
Hibernate setting disabled for AC (battery was set to 400000min or so), standby setting disabled for AC, gpedit allow apps to keep awake system in AC enabled, rebooted... EDIT 2024-03-29: It works somehow, just not as I thought it would, e.g. sound continues to be playing, but event log says modern standby nonetheless |
Microsoft PowerToys version
0.41.4
Running as admin
Area(s) with issue?
Awake
Steps to reproduce
Awake doesn't work out of the box for me. I selected stay awake for two hours, and after the usual "sleep" time the computer went off.
Secondarily, I can't change the setting from the tray area icon, it just reflects what is set in the app itself.
✔️ Expected Behavior
should keep the computer alive
❌ Actual Behavior
computer goes to sleep mode regardless of the setting.
Other Software
No response
The text was updated successfully, but these errors were encountered: