PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

[PowerToys Awake] Not restarting after explorer crash

Open seanmamasde opened this issue 1 year ago • 4 comments

Microsoft PowerToys version

0.84.0

Installation method

PowerToys auto-update

Running as admin

No

Area(s) with issue?

Awake

Steps to reproduce

After explorer crashed, the icon does not reappear in the taskbar and the awake functionality is not turned on, while it's set to on in the PowerToys settings.

✔️ Expected Behavior

Should reopen Awake and keep computer awake.

❌ Actual Behavior

not reopening and not keeping computer awake.

Other Software

None

seanmamasde avatar Sep 08 '24 14:09 seanmamasde

We've found some similar issues:

  • #21351 , similarity score: 82%
  • #34275 , similarity score: 81%

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 Sep 08 '24 14:09 similar-issues-ai[bot]

#21351 is closed, but the problem remains. #34275 is similar, however I have problems after explorer crashed and restarted, not after waking up from sleep. Also the taskbar icon in my case disappeared.

seanmamasde avatar Sep 08 '24 14:09 seanmamasde

@seanmamasde can you tell me more about how explorer crashed? Was it on boot, during some other app operation, or while you were changing specific PowerToys settings?

dend avatar Sep 08 '24 18:09 dend

No explorer crashing isn't because of PowerToys, it's me doing some other things and find it become unresponsive so I force it to quit using taskmgr and restarted using run explorer.exe. That said the Awake should still re-hook(?) onto the explorer process? I don't know how it worked under the hood, I just observed that it's no longer effective or even turned on after explorer restart. Hope this helps.

seanmamasde avatar Sep 09 '24 03:09 seanmamasde

Do you see Awake in Task Manager, and if so, if you run powercfg /requests after, do you see PowerToys.Awake.exe in the list (you can share the output here)?

dend avatar Dec 05 '24 01:12 dend

Yes it appears in the task manager, and it also shows up in the command output:

 powercfg /requests
DISPLAY:
[PROCESS] \Device\HarddiskVolume3\Program Files\PowerToys\PowerToys.Awake.exe

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

AWAYMODE:
None.

EXECUTION:
None.

PERFBOOST:
None.

ACTIVELOCKSCREEN:
None.

Recently I also found out that when my explorer.exe crashed and restarted itself or I simply restarted it manually, the awake doesn't appear in the system tray automatically, but when I go into the Powertoys settings and toggle the awake thing a few times (it wouldn't reappear on the first try, usually takes 3 toggles), it would start to show up where it should be.

seanmamasde avatar Dec 05 '24 07:12 seanmamasde

So it sounds like Awake disappears from the tray during explorer.exe crashes but does still run in the background. I wonder if this could be addressed by the fixes I am adding for #35250, but maybe I need to test this more with an explorer.exe restart.

dend avatar Dec 06 '24 17:12 dend

I can reliably reproduce this - the tray icon disappears after restarting explorer.exe. Investigating the root cause.

dend avatar Dec 06 '24 17:12 dend

Tracked in #36049 - this should be fixed in the newest release.

dend avatar Dec 06 '24 19:12 dend

This should be resolved with the latest release.

dend avatar Dec 16 '24 20:12 dend