microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.46k stars 6.45k forks source link

Awake settings are ignored when PC is woken from sleep #32544

Open tomokiokumura opened 4 months ago

tomokiokumura commented 4 months ago

Microsoft PowerToys version

0.80.1

Installation method

WinGet

Running as admin

None

Area(s) with issue?

Awake

Steps to reproduce

  1. right-click on the awake tray icon
  2. select "無限に起動したままにする" (in English: "keep awake indefinitely" ?)
  3. select "sleep" from the shutdown menu
  4. turn on the pc from sleep

✔️ Expected Behavior

the "keep awake indefinitely" setting is applied and the pc remains runnnig even after a period of inactivity.

❌ Actual Behavior

  1. the pc gose to sleep after a set amount of time on the power plan.
  2. when right click on the awake tray icon, "keep awake indefinitely" has been selected.
  3. when re-select the checked "keep awake indefinitely" again, "keep awake indefinitely" will be applied.

Other Software

No response

github-actions[bot] commented 4 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

htcfreek commented 4 months ago

cc: @dend

simon300000 commented 4 months ago

I came here probably for the same reason.

If I manually put Windows to sleep, (while Awake is "keep awake indefinitely"); And wake Windows up again (by WOL or mouse movement); After some time of inactivity, Windows will sleep by itself (without changing the settings of Awake).

I often put windows to sleep with shutdown /h Windows System log says ...going to sleep, reason: System Idle

dend commented 4 months ago

Will have to test this - thanks for the feedback @simon300000 and @tomokiokumura.

nvsystems commented 2 months ago

Is there any chance this can be fixed? It's really easy to reproduce. The whole "awake" function is not very useful if it only works under certain conditions (no sleep since last PC restart).

dend commented 1 month ago

I am trying to understand the use-case here - you set Awake to a specific mode, then you force the machine to go to sleep, and then when you resume it, the expectation is that Awake will also resume where it was before the forced sleep?

DGulshan commented 1 month ago

Facing the same issue. I don't want my system to go to sleep during the day, so I turn on "Keep awake indefinitely" and at night I manually hibernate my system.

Next morning when I turn the system back on, the Awake setting is still set to "Keep awake indefinitely" but it's ignored, and my PC goes to sleep after some time of inactivity, as if the Awake setting is set to "Off".

Ideally, I would like it to persist the next day after manual hibernation period. But if that's not possible, then Awake setting should show "Off" instead of still showing "Keep awake indefinitely", which is misleading.

My current workaround is setting it to "Off" manually and then again switching to "Keep awake indefinitely" every morning.

simon300000 commented 1 month ago

I expect Awake to alter system power settings when it is running

dend commented 1 month ago

I'll have to test to try and repro this.