PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Keep awake indefinetly not work

Open Obelix25860 opened this issue 1 year ago • 9 comments

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

Obelix25860 avatar Aug 29 '24 19:08 Obelix25860

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.

similar-issues-ai[bot] avatar Aug 29 '24 19:08 similar-issues-ai[bot]

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).

dend avatar Sep 02 '24 23:09 dend

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?

Obelix25860 avatar Sep 03 '24 17:09 Obelix25860

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?

dend avatar Sep 03 '24 18:09 dend

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.

Obelix25860 avatar Sep 04 '24 17:09 Obelix25860

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.

dend avatar Sep 04 '24 21:09 dend

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 avatar Sep 04 '24 21:09 Obelix25860

@Obelix25860 and does the laptop go to sleep with VLC running?

dend avatar Sep 08 '24 18:09 dend

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.

Obelix25860 avatar Sep 10 '24 14:09 Obelix25860

I just realized my new Windows 11 Machine with Awake indefinitely is going to sleep also.

asjones987 avatar Sep 17 '24 13:09 asjones987

Let's consolidate the discussion in #32005 - seems like the same problem

dend avatar Sep 25 '24 18:09 dend