Keep awake indefinetly not work
Microsoft PowerToys version
0.83.0
Installation method
Microsoft Store
Running as admin
Yes
Area(s) with issue?
Awake
Steps to reproduce
I set awake for indefinite. Laptop goes to sleep.
✔️ Expected Behavior
Laptop stays awake idefinitely
❌ Actual Behavior
Laptop goes to sleep
Other Software
Bug Report
PowerToysReport_2024-08-29-15-03-39.zip
No response
We've found some similar issues:
- #32005 , similarity score: 89%
- #31947 , similarity score: 89%
- #27575 , similarity score: 89%
- #25771 , similarity score: 88%
- #34275 , similarity score: 88%
- #31765 , similarity score: 86%
- #32544 , similarity score: 84%
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
Can you please provide more details - is the laptop on a specific power mode that is custom? Run powercfg /requests when Awake is running and share what the output is (use Admin prompt).
Here’s the output of powercfg /requests:
C:\Windows\System32>powercfg /requests
DISPLAY:
[PROCESS] \Device\HarddiskVolume3\Users\artur\AppData\Local\PowerToys\PowerToys.Awake.exe
SYSTEM:
[PROCESS] \Device\HarddiskVolume3\Users\artur\AppData\Local\PowerToys\PowerToys.Awake.exe
[SERVICE] \Device\HarddiskVolume3\Windows\System32\svchost.exe (Schedule)
Windows will execute '\HP\HP Print Scan Doctor\Printer Health Monitor' scheduled task that requested waking the computer.
AWAYMODE:
None.
EXECUTION:
None.
PERFBOOST:
None.
ACTIVELOCKSCREEN:
None.
Like others had posted. I turned on “Keep screen on” and it seems to make it stay awake:
But that’s still a bug since it should be able to “Keep awake indefinitely” without “Keep screen on”, right?
Notice this part:
SYSTEM:
[PROCESS] \Device\HarddiskVolume3\Users\artur\AppData\Local\PowerToys\PowerToys.Awake.exe
This means that Awake has requested a system hold. Can you run the same command without the screen on option and see what the output is?
Here’s the run with Screen On turned off:
DISPLAY:
None.
SYSTEM:
[PROCESS] \Device\HarddiskVolume3\Users\artur\AppData\Local\PowerToys\PowerToys.Awake.exe
[SERVICE] \Device\HarddiskVolume3\Windows\System32\svchost.exe (Schedule)
Windows will execute '\HP\HP Print Scan Doctor\Printer Health Monitor' scheduled task that requested waking the computer.
AWAYMODE:
None.
EXECUTION:
None.
PERFBOOST:
[DRIVER] Legacy Kernel Caller
Power Manager
ACTIVELOCKSCREEN:
None.
That said, even with Keep Screen On, it’s still going to sleep sometimes, so not necessarily the fix I thought – still doesn’t work.
I suspect that something else entirely is interfering with the Awake behavior - it has successfully requested the SYSTEM hold, but if your laptop ignores that, chances are there is something else at play. To verify this behavior through another (albeit a bit unorthodox method) - find a video that you can play in VLC Player for ~5-10 minutes. Play it. Run powercfg /requests with VLC player active (make sure Awake is not active). Share the output here.
Here’s the output with VLC running and Awake off:
DISPLAY:
[PROCESS] \Device\HarddiskVolume3\Program Files\VideoLAN\VLC\vlc.exe
SYSTEM:
[DRIVER] Realtek High Definition Audio (INTELAUDIO\FUNC_01&VEN_10EC&DEV_0294&SUBSYS_104316A3&REV_1000\5&211ffee4&0&0001)
An audio stream is currently in use.
[PROCESS] \Device\HarddiskVolume3\Program Files\VideoLAN\VLC\vlc.exe
AWAYMODE:
None.
EXECUTION:
None.
PERFBOOST:
None.
ACTIVELOCKSCREEN:
None.
@Obelix25860 and does the laptop go to sleep with VLC running?
No the laptop stayed on. I left a video looping on VLC, with Awake turned off, overnight and the laptop remained on. Here’s the powercfg /requests output:
C:\Windows\System32>powercfg /requests
DISPLAY:
[PROCESS] \Device\HarddiskVolume3\Program Files\VideoLAN\VLC\vlc.exe
SYSTEM:
[DRIVER] Realtek High Definition Audio (INTELAUDIO\FUNC_01&VEN_10EC&DEV_0294&SUBSYS_104316A3&REV_1000\5&211ffee4&0&0001)
An audio stream is currently in use.
[PROCESS] \Device\HarddiskVolume3\Program Files\VideoLAN\VLC\vlc.exe
AWAYMODE:
None.
EXECUTION:
None.
PERFBOOST:
None.
ACTIVELOCKSCREEN:
None.
I just realized my new Windows 11 Machine with Awake indefinitely is going to sleep also.
Let's consolidate the discussion in #32005 - seems like the same problem