PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Enable awake does not work

Open AdamKlob opened this issue 2 years ago • 6 comments

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 avatar Jun 27 '23 09:06 AdamKlob

It works only when running as admin.

AdamKlob avatar Jun 27 '23 11:06 AdamKlob

@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 avatar Jun 30 '23 19:06 dend

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 avatar Aug 22 '23 18:08 bartwensley

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.

bartwensley avatar Aug 24 '23 13:08 bartwensley

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

BinaryVixen899 avatar Apr 23 '24 21:04 BinaryVixen899

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

dend avatar May 02 '24 16:05 dend

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

dend avatar Jul 25 '24 21:07 dend