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

Enable awake does not work #27063

Closed
AdamKlob opened this issue Jun 27, 2023 · 7 comments
Closed

Enable awake does not work #27063

AdamKlob opened this issue Jun 27, 2023 · 7 comments
Assignees
Labels
Issue-Bug Something isn't working Product-Awake Issues regarding the PowerToys Awake utility Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@AdamKlob
Copy link

Microsoft PowerToys version

0.70.1

Installation method

GitHub

Running as admin

No

Area(s) with issue?

Awake

Steps to reproduce

Enabling Awake has no effect.

It seems it might be a regression, as it worked with the version I had installed previously (sorry, I do not know the version number) and stopped after the update.

This is on AC power with power plan set to never sleep/turn off the screen.

This is on corporate laptop, so there is a chance that corporate policies somehow changed and could be an issue. If this is preventing Awake from working it would be nice for Awake to state what the problem is (ie what policy is preventing it from working)

✔️ Expected Behavior

Awake keep my laptop awake :)

❌ Actual Behavior

Awake does not kee my laptop awake :(

Other Software

No response

@AdamKlob AdamKlob added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jun 27, 2023
@AdamKlob
Copy link
Author

It works only when running as admin.

@dend dend self-assigned this Jun 30, 2023
@dend
Copy link
Collaborator

dend commented Jun 30, 2023

@AdamKlob very well could be a corporate policy block, however the app doesn't really access any resources or configuration beyond setting its own state requesting that the computer maintain a specific power mode during execution.

When you run the app, also execute this from an elevated command prompt:

powercfg /requests

Does Awake show up there?

@dend dend added Product-Awake Issues regarding the PowerToys Awake utility and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jun 30, 2023
@bartwensley
Copy link

I'm having the same issue - even when running PowerToys as administrator. When it happens, event viewer shows a Kernel-Power event like this:
The system is entering Modern Standby Reason: Idle Timeout.
The output of "powercfg /requests" does show Awake:
[PROCESS] \Device\HarddiskVolume4\Program Files\PowerToys\PowerToys.Awake.exe

@bartwensley
Copy link

A new piece of data - it seems that if I enable "Keep screen on" in addition to "Keep awake indefinitely" then Awake keeps the compute awake. The computer no longer enters Modern Standby and I do not need to run PowerToys as administrator.

@BinaryVixen899
Copy link

Same issue. Powercfg also returns Awake as active.
Am running in Administrator and really do not want to try the workaround of always having my screen on. Have upgraded to the latest version (0.80.1) and we'll see if that improves things. Always worth updating to the latest first and seeing if the problem goes away.

Microsoft Windows [Version 10.0.22621.3296]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\System32>powercfg /requests
DISPLAY:
None.

SYSTEM:
[PROCESS] \Device\HarddiskVolume3\Program Files\PowerToys\PowerToys.Awake.exe

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.
Log Name:      System
Source:        Microsoft-Windows-Kernel-Power
Date:          4/23/2024 13:11:52
Event ID:      42
Task Category: (64)
Level:         Information
Keywords:      (1024),(4)
User:          N/A
Computer:      Kira
Description:
The system is entering sleep.

Sleep Reason: System Idle

@dend
Copy link
Collaborator

dend commented May 2, 2024

I am looking into this - thank you for the all the details, folks.

@dend
Copy link
Collaborator

dend commented Jul 25, 2024

Latest version of Awake (#32378) should introduce quite a few stability improvements, resolving this problem.

@dend dend added the Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. label Jul 25, 2024
@dend dend closed this as completed Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Product-Awake Issues regarding the PowerToys Awake utility Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
Status: Done
Development

No branches or pull requests

4 participants