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

Awake not keeping PC awake #32005

Open
SD777x opened this issue Mar 20, 2024 · 32 comments
Open

Awake not keeping PC awake #32005

SD777x opened this issue Mar 20, 2024 · 32 comments
Assignees
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Awake Issues regarding the PowerToys Awake utility

Comments

@SD777x
Copy link

SD777x commented Mar 20, 2024

Microsoft PowerToys version

0.79.0

Installation method

Microsoft Store

Running as admin

Yes

Area(s) with issue?

Awake

Steps to reproduce

Awake is set to keep awake indefinitely but PC goes to sleep after about 1 day. Sleep settings in Windows are to never sleep on power and power is plugged in, and hibernate is disabled.

✔️ Expected Behavior

For PC to stay awake indefinitely

❌ Actual Behavior

PC goes to sleep after about 1 day.

Other Software

No response

@SD777x SD777x added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 20, 2024
@davidegiacometti davidegiacometti added the Product-Awake Issues regarding the PowerToys Awake utility label Mar 21, 2024
@TheJoeFin
Copy link
Collaborator

/bugreport

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Mar 24, 2024
@SD777x
Copy link
Author

SD777x commented Mar 24, 2024

That's odd I did include a bug report, reposting it here.
PowerToysReport_2024-03-20-11-44-31.zip

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Mar 24, 2024
@dend dend self-assigned this Apr 10, 2024
@KirkH420
Copy link

I can't really speak on whether or not it keeps my gaming laptop awake, because I don't let it sleep when plugged in, but I will say that Awake's "Keep screen on" has absolutely no affect on my LG 48GQ900-B (via DisplayPort). With Awake enabled, the display will fall asleep in 5 mins if you go AFK.

The auto-dimming and sleep anti-features are some of the biggest complaints about this display actually. There are NO SETTINGS to adjust it built into the display, which is pretty gay. Any sort of workaround for this would be great.

@SD777x
Copy link
Author

SD777x commented Apr 24, 2024

I can't really speak on whether or not it keeps my gaming laptop awake, because I don't let it sleep when plugged in, but I will say that Awake's "Keep screen on" has absolutely no affect on my LG 48GQ900-B (via DisplayPort). With Awake enabled, the display will fall asleep in 5 mins if you go AFK.

The auto-dimming and sleep anti-features are some of the biggest complaints about this display actually. There are NO SETTINGS to adjust it built into the display, which is pretty gay. Any sort of workaround for this would be great.

Yeah this Awake feature doesn't work AT ALL on my laptop, it still goes to sleep. Seems like it's broken.

@dend
Copy link
Collaborator

dend commented May 2, 2024

@KirkH420 @SD777x - please add your logs to the issue, so that I can take a look and see what might be happening.

@SD777x
Copy link
Author

SD777x commented May 2, 2024

@KirkH420 @SD777x - please add your logs to the issue, so that I can take a look and see what might be happening.

I added my log already if you scroll up.

@Tman1314
Copy link

I'm having this issue after 0.81.0. It was working just fine until 0.81.0 for me, but now my pc goes to sleep after whatever time I have my pc set to auto-sleep.

@SD777x
Copy link
Author

SD777x commented Jun 12, 2024

Almost 3 months later and no one has even looked at my log files? Is there any progress on this, it continues to be an issue and I really need something I can rely on. Alternatively does anyone have another app suggestion which actually works to keep the PC awake?

PS: Please don't tell me to upload the log files, they are right there a few posts above.

@JmarcZ
Copy link

JmarcZ commented Jun 27, 2024

I have similar issue.
For a while now, My Laptop goes to sleep at night when it is set to never go to Sleep. When in that state I cannot wake it up. I have to do a hard reboot to restart which was the main reason I did not want it to go to Sleep.
Installed Awake in Hope to solve the issue but no dice. Issue started about a year ago. Installed Awake/Power toy 2 days ago.
Laptop Zenbook 15 circa 2019:
Device name Zen15JM
Processor Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz 1.99 GHz
Installed RAM 16.0 GB (15.8 GB usable)
Device ID 835F24F0-2B71-4DB5-89C1-CC799C6DEEB6
Product ID 00330-52164-82333-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch Touch support with 5 touch points

Edition Windows 11 Pro
Version 23H2
Installed on ‎11/‎19/‎2022
OS build 22631.3672
Experience Windows Feature Experience Pack 1000.22700.1009.0

@dend
Copy link
Collaborator

dend commented Jul 25, 2024

@JmarcZ @Tman1314 @SD777x when Awake is set to keep awake indefinitely, can you please post the output of powercfg /requests (needs an elevated prompt)?

@dend dend added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels Jul 25, 2024
@JmarcZ
Copy link

JmarcZ commented Jul 25, 2024 via email

@TheJoeFin
Copy link
Collaborator

@JmarcZ attachments do not get posted when replying via email. You'll have to login to GitHub.com and upload the attachments.

@JmarcZ
Copy link

JmarcZ commented Jul 25, 2024

Here is the report:
image

And Here is the view of the event lg:
image

@dend
Copy link
Collaborator

dend commented Jul 25, 2024

Thanks @JmarcZ - and the output of powercfg /requests is while PowerToys Awake is running with indefinite keep-awake set? Because the output points to the fact that the PowerToys.Awake.exe process did not issue any requests for power mode setup.

@SD777x
Copy link
Author

SD777x commented Jul 26, 2024

@JmarcZ @Tman1314 @SD777x when Awake is set to keep awake indefinitely, can you please post the output of powercfg /requests (needs an elevated prompt)?

I honestly gave up on this useless (no offense intended) app after months of waiting for a response, it simply doesn't work across the 3 PCs I've tested it on and I have an important workflow where I can't sit around for months on end waiting for a solution (or simply to get a dev response). For others who need a solid solution I found that keeping an old PS4 controller physically connected to USB keeps the PC from going to sleep!

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jul 26, 2024
@tedstriker2
Copy link

Same problem here. I'm attaching the bug report zip.
PowerToysReport_2024-08-01-07-37-00.zip

Also, here's the output of "powercfg /requests":

image

I'm on Microsoft Windows 11 Education. I have sleep entirely disabled in the power plan under settings and the power plan under the old Control Panel. I've made changes to Group Policy Sleep settings suggested in another bug thread to "allow applications to prevent automatic sleep". Nothing works, the computer will not stay awake. When I come to work, I'm greeted by a logjam of scheduled tasks suddenly trying to run at the same time - I need them to run at their scheduled times, and the "Wake the computer" settings in Windows 11 are just as cursed as everything else related to sleep. I even tried to disable Modern Standby in the computer BIOS, and it still goes into Modern Standby relentlessly. I'm tearing my hair out here.

The only thing that seems to work is playing music - that'll keep going while the computer is locked.

@TheJoeFin
Copy link
Collaborator

@tedstriker2 can you provide the make and model of the device you are using?

@tedstriker2
Copy link

@tedstriker2 can you provide the make and model of the device you are using?

Sure, it's an HP EliteBook 650 15.6 inch G10 Notebook PC

@JmarcZ
Copy link

JmarcZ commented Aug 4, 2024

image

System Model ZenBook UX534FT_UX534FT. Attached is the System Info file
System info 2024-08-04.txt

@dend
Copy link
Collaborator

dend commented Aug 5, 2024

@JmarcZ @tedstriker2 have you updated to the latest PowerToys to see if the issue is resolved with the new Awake?

@tedstriker2
Copy link

tedstriker2 commented Aug 6, 2024

@JmarcZ @tedstriker2 have you updated to the latest PowerToys to see if the issue is resolved with the new Awake?

@dend Yes, I have PowerToys 0.83.0. Since my last post I applied a registry patch to disable Modern Standby, and that fixed my issues with Windows Task Scheduler. However, it seems that Awake is still not keeping my computer awake (aside from running tasks). Here's the Event Log from when I started work this morning:

image

Details (Friendly View):

  • System

    • Provider

    [ Name] Microsoft-Windows-Kernel-Power
    [ Guid] {331c3b3a-2005-44c2-ac5e-77220c37d6b4}

    EventID 566

    Version 0

    Level 4

    Task 268

    Opcode 0

    Keywords 0x8000000000000604

    • TimeCreated

    [ SystemTime] 2024-08-06T12:32:25.9032643Z

    EventRecordID 41852

    Correlation

    • Execution

    [ ProcessID] 4
    [ ThreadID] 13368

    Channel System

    Computer

    • Security

    [ UserID] S-1-5-18

  • EventData

    BootId 28
    Reason 32
    PreviousSessionId 22
    PreviousSessionType 1
    PreviousSessionDurationInUs 53120369125
    PreviousEnergyCapacityAtStart 41085
    PreviousFullEnergyCapacityAtStart 51114
    PreviousEnergyCapacityAtEnd 41224
    PreviousFullEnergyCapacityAtEnd 51021
    NextSessionId 24
    NextSessionType 0
    PowerStateAc true
    MonitorReason 32

@JmarcZ
Copy link

JmarcZ commented Aug 6, 2024

Hi,
Was up to 0.82.1. Just downloaded 0.83.0. Will report back.

@dend
Copy link
Collaborator

dend commented Aug 7, 2024

@tedstriker2 from the powercfg /requests output that you are showing, Awake is correctly grabbing a hold on the system to keep it awake, but seems like something else is interfering. Is this a laptop or a desktop? What power plan do you have enabled for it?

@tedstriker2
Copy link

@tedstriker2 from the powercfg /requests output that you are showing, Awake is correctly grabbing a hold on the system to keep it awake, but seems like something else is interfering. Is this a laptop or a desktop? What power plan do you have enabled for it?

@dend It's a laptop - like I said before, a "HP EliteBook 650 15.6 inch G10 Notebook PC". I have a custom power plan with sleep disabled whether it's plugged in or charging. I disabled sleep through the control panel and the newer "Settings" interface. If you look at my earlier posts in this thread, I've tried disabling sleep six ways from Sunday. Playing music keeps the computer awake - nothing else works. Maybe I could play a mp3 on a loop with the volume turned down instead of using the Awake PowerToy.

@dend
Copy link
Collaborator

dend commented Aug 8, 2024

@tedstriker2 from the powercfg /requests output that you are showing, Awake is correctly grabbing a hold on the system to keep it awake, but seems like something else is interfering. Is this a laptop or a desktop? What power plan do you have enabled for it?

@dend It's a laptop - like I said before, a "HP EliteBook 650 15.6 inch G10 Notebook PC". I have a custom power plan with sleep disabled whether it's plugged in or charging. I disabled sleep through the control panel and the newer "Settings" interface. If you look at my earlier posts in this thread, I've tried disabling sleep six ways from Sunday. Playing music keeps the computer awake - nothing else works. Maybe I could play a mp3 on a loop with the volume turned down instead of using the Awake PowerToy.

As you can see from the powercfg documentation, the /requests argument should identify everything that "prevent the computer from automatically powering off the display or entering a low-power sleep mode." In your screenshot, Awake correctly issues a SYSTEM hold, which should prevent your system from going to sleep.

Something else is interfering with the request and putting the machine to sleep anyway. Could be something specific to laptops, but I haven't seen that repro-d on my machine. I will have to investigate that further in future releases.

@armpogart
Copy link

Not working for me on 1 laptop (both on battery and plugged in) and working on another (older laptop) with PowerToys 0.83.0.
Laptop's full model that is not working on is Asus Zenbook Pro 16X OLED UX7602BZ-DS99T .
powercfg output when Awake is on and not working (going to sleep, locking screen).

PS C:\> powercfg /requests
DISPLAY:
None.

SYSTEM:
[PROCESS] \Device\HarddiskVolume4\Scoop\apps\powertoys\0.83.0\PowerToys.Awake.exe

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

Power Options (default Balanced mode):
image

The only thing I think this new laptop has that can probably interfere with Awake is Microsoft Hello with IR camera and Presence Sensing (it detects when I go away and locks the screen and unlocks automatically when I come back to it). The settings look like the following:
image

I haven't tried to disable that and test Awake, but it may give you idea why Awake doesn't work in my case.

@EDIflyer
Copy link

Experiencing this issue with v.0.84.1 - it worked OK for me previously (I can't remember quite which version).

Set to always stay awake, infinity icon showing on taskbar icon. However still goes to sleep.

Bug report attached.

powercfg /requests output:

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

C:\Users\user>powercfg /requests
DISPLAY:
None.

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

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

PowerToysReport_2024-09-13-00-36-25.zip

@dend
Copy link
Collaborator

dend commented Sep 15, 2024

@EDIflyer seems like Awake correctly grabs a hold of the system. Are you running this on a laptop or desktop?

@EDIflyer
Copy link

Hi @dend this is on a desktop. I have tried disabling and re-enabling it and for now it seems to be behaving more as expected - not sure if a setting perhaps didn't transfer over when there was one of the recent upgrades to PowerToys?

@camilaValentin
Copy link

Hi, I have the same issue, after last update the Awake function stopped working

@khmyznikov
Copy link

Same for me

@dend
Copy link
Collaborator

dend commented Nov 19, 2024

Please include your logs and output of powercfg /requests when you have Awake running. If powercfg /requests correctly reports Awake grabbing a hold of the system power settings but the computer still goes to sleep (or any other power mode), it's very likely that there is another application or policy that is interfering with it.

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 Needs-Team-Response An issue author responded so the team needs to follow up Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-Awake Issues regarding the PowerToys Awake utility
Projects
Status: No status
Development

No branches or pull requests