microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
108.5k stars 6.4k forks source link

Microsoft PowerToys v0.71.0 awake icon not showing up in Systemtray in Windows 11 x64 Professional 23H2 Beta Inside Build 22631.205 #27590

Closed Almighty188 closed 1 month ago

Almighty188 commented 1 year ago

Microsoft PowerToys version

0.71.0

Installation method

GitHub

Running as admin

Yes

Area(s) with issue?

Awake

Steps to reproduce

In Windows 11 x64 Professional 23H2 Beta Inside Build 22631.2050, in earlier Windows 11 builds, the Awake icon always shows up in the Systemtray with PowerToys icon but now does not unless I opened Power Toys settings, goto Awake and change from On to Off and back to On again where it says Enable Awake.

✔️ Expected Behavior

Awake Icon would show in Systemtray

❌ Actual Behavior

Awake Icon not showing in Systemtray

Other Software

Windows 11 x64 Professional 23H2 Beta Inside Build 22631.2050

nguyen-dows commented 5 months ago

@Almighty188 do you still see this issue?

Almighty188 commented 5 months ago

@Almighty188 do you still see this issue?

Not for some time.

Almighty188 commented 4 months ago

@nguyen-dows - I was mistaken. The problem still exists.

dend commented 4 months ago

@Almighty188 can you please upload the logs here? I don't have that specific build. Need to dig through the logs to see where the failure occurs.

Almighty188 commented 4 months ago

@dend - Where are the logs located? I am on 22635.3500 which was installed yesterday from 22635.3495 without the problem. 22635.3430 had the problem but I can't downgrade on builds. 22635.3495 which came after 22635.3430 did not have the problem.

dend commented 4 months ago

%HomePath%\AppData\Local\Microsoft\PowerToys\Awake\ - see the logs folder there. It also could be that there is a Windows issue of some kind that got addressed in the latest preview builds.

Almighty188 commented 4 months ago

%HomePath%\AppData\Local\Microsoft\PowerToys\Awake\ - see the logs folder there. It also could be that there is a Windows issue of some kind that got addressed in the latest preview builds.

Which specific files do you need when this happens again? I can see we have using current file names on the system: awake-log_2024-04-27.txt 0.80.1.0 folder - Log_2024-04-27.txt

In any case, as I mentioned it happened with Windows 11 x64 Professional 23H2 Beta Insiders Build 22635.3430) (KB5036992) which according to my Windows Updates history was installed on April 9, 2024. The logs attached based on the same April 9, 2024 date and I appear to have PowerToys 0.80.0.0 installed, one thing to note is the logs might include me toggling Awake from On to Off and back to On again in PowerToys Settings Dashboard so the Awake icon shows up in Windows system tray again.

Logs.zip consists of:

1) %HomePath%\AppData\Local\Microsoft\PowerToys\Awake\Logs\awake-log_2024-04-09.txt (Dated and Modified 04/09/2024 9:45AM Pacific Time): [2024-04-09 09:28:14.233382] [p-17476] [t-17480] [info] launcher logger is initialized [2024-04-09 09:28:14.233482] [p-17476] [t-17480] [info] Launcher object is constructing [2024-04-09 09:28:18.331587] [p-17476] [t-17480] [trace] Launching PowerToys Awake process [2024-04-09 09:28:18.331678] [p-17476] [t-17480] [trace] PowerToys Awake launching with parameters: --use-pt-config --pid 17476 [2024-04-09 09:45:43.393474] [p-17476] [t-17480] [trace] Disabling Awake... [2024-04-09 09:45:43.395740] [p-17476] [t-17480] [trace] Signaled exit event for PowerToys Awake. [2024-04-09 09:45:44.582632] [p-17476] [t-17480] [trace] Launching PowerToys Awake process [2024-04-09 09:45:44.582705] [p-17476] [t-17480] [trace] PowerToys Awake launching with parameters: --use-pt-config --pid 17476

2) %HomePath%\AppData\Local\Microsoft\PowerToys\Awake\Logs\0.80.0.0\Log_2024-04-09.txt (Dated and Modified 04/14/2024 3:14AM Pacific Time): [09:28:23.9738372] [Info] Program::Main Launching Awake... [09:28:23.9821528] [Info] Program::Main 0.80.0.0 [09:28:23.9823084] [Info] Program::Main Build: ATRIOX_04132023 [09:28:23.9840846] [Info] Program::Main OS: Microsoft Windows NT 10.0.22635.0 [09:28:24.0722067] [Info] Program::Main OS Build: Windows 10 Pro 23H2 22621.1.amd64fre.ni_release.220506-1250 [09:28:24.3952186] [Info] Program::Main {} [09:28:24.3954239] [Info] Program::Main Parsing parameters... [09:28:25.4276634] [Info] Program::HandleCommandLineArguments The value for --use-pt-config is: True [09:28:25.4282909] [Info] Program::HandleCommandLineArguments The value for --display-on is: True [09:28:25.4474658] [Info] Program::HandleCommandLineArguments The value for --time-limit is: 0 [09:28:25.4481363] [Info] Program::HandleCommandLineArguments The value for --pid is: 17476 [09:28:25.4485577] [Info] Program::HandleCommandLineArguments The value for --expire-at is: [09:28:26.4752205] [Info] <>cDisplayClass9_0::b0 Setting up the tray. [09:28:26.5836052] [Info] Program::HandleCommandLineArguments Reading configuration file: C:\Users\vince\AppData\Local\Microsoft\PowerToys\Awake\settings.json [09:28:27.1569694] [Info] Program::ProcessSettings Identified custom time shortcuts for the tray: 0 [09:28:27.1685772] [Info] Program::SetupNoKeepAwake Operating in passive mode (computer's standard power plan). No custom keep awake settings enabled. [09:28:27.3257511] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [09:28:27.3272505] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [09:28:27.3309869] [Info] <>c::b9_0 Setting state to ES_CONTINUOUS [09:45:43.3994494] [Info] Program::Exit Received a signal to end the process. Making sure we quit... [09:45:43.4069662] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [09:45:43.4080179] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [09:45:43.4090659] [Info] <>c::b9_0 Setting state to ES_CONTINUOUS [09:45:45.5812381] [Info] Program::Main Launching Awake... [09:45:45.6298046] [Info] Program::Main 0.80.0.0 [09:45:45.6299256] [Info] Program::Main Build: ATRIOX_04132023 [09:45:45.6309943] [Info] Program::Main OS: Microsoft Windows NT 10.0.22635.0 [09:45:45.6951925] [Info] Program::Main OS Build: Windows 10 Pro 23H2 22621.1.amd64fre.ni_release.220506-1250 [09:45:45.9180981] [Info] Program::Main {} [09:45:45.9182498] [Info] Program::Main Parsing parameters... [09:45:46.2564345] [Info] Program::HandleCommandLineArguments The value for --use-pt-config is: True [09:45:46.2569669] [Info] Program::HandleCommandLineArguments The value for --display-on is: True [09:45:46.2570830] [Info] Program::HandleCommandLineArguments The value for --time-limit is: 0 [09:45:46.2571795] [Info] Program::HandleCommandLineArguments The value for --pid is: 17476 [09:45:46.2572690] [Info] Program::HandleCommandLineArguments The value for --expire-at is: [09:45:46.3786183] [Info] <>cDisplayClass9_0::b0 Setting up the tray. [09:45:46.4501330] [Info] Program::HandleCommandLineArguments Reading configuration file: C:\Users\vince\AppData\Local\Microsoft\PowerToys\Awake\settings.json [09:45:46.5855203] [Info] Program::ProcessSettings Identified custom time shortcuts for the tray: 0 [09:45:46.5857797] [Info] Program::SetupNoKeepAwake Operating in passive mode (computer's standard power plan). No custom keep awake settings enabled. [09:45:46.6192135] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [09:45:46.6200828] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [09:45:46.6235494] [Info] <>c::b9_0 Setting state to ES_CONTINUOUS [03:14:06.0770767] [Info] <>cDisplayClass19_0::b0 Triggered PID-based exit handler for PID 17476. [03:14:06.0925316] [Info] Program::Exit Terminating from process binding hook. [03:14:06.0962461] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [03:14:06.1008157] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [03:14:06.1046890] [Info] <>c::b9_0 Setting state to ES_CONTINUOUS

--- Thanks!

Almighty188 commented 3 months ago

Earlier today, May 13, 2024 and confirmed by Windows Updates history, Windows 11 x64 Professional 23H2 Beta Insiders Build 22635.3575 (KB5037862) was installed on May 13, 2024 as I manually restarted the system when prompted and it did update Windows. The original issue where Awake is toggled on but missing from System Tray after Windows updated has occurred again. I have PowerToys 0.80.1 installed since April 17, 2024. This time I did not go into PowerToys which is running in the Windows System Tray to toggle Awake from On to Off and back to On again in PowerToys Settings Dashboard so the Awake icon shows up in Windows system tray again.

--- this section added after the logs below - same original Windows session after Windows originally updated on May 13, 2024 --- PowerToys shows the following dashboard with Awake enabled but Awake icon missing in Windows system tray image Disabling Awake and the Enabling Awake restored the Awake icon in Windows system tray and the newer version of the logs:

  1. %HomePath%\AppData\Local\Microsoft\PowerToys\Awake\Logs\awake-log_2024-05-13.txt (Dated and Modified 05/13/2024 3:52PM Pacific Time): [2024-05-13 13:12:45.381540] [p-16796] [t-16800] [info] launcher logger is initialized [2024-05-13 13:12:45.381659] [p-16796] [t-16800] [info] Launcher object is constructing [2024-05-13 13:12:49.064747] [p-16796] [t-16800] [trace] Launching PowerToys Awake process [2024-05-13 13:12:49.064828] [p-16796] [t-16800] [trace] PowerToys Awake launching with parameters: --use-pt-config --pid 16796 [2024-05-13 15:51:55.182949] [p-16796] [t-16800] [trace] Disabling Awake... [2024-05-13 15:51:55.185700] [p-16796] [t-16800] [trace] Signaled exit event for PowerToys Awake. [2024-05-13 15:52:03.009747] [p-16796] [t-16800] [trace] Launching PowerToys Awake process [2024-05-13 15:52:03.009794] [p-16796] [t-16800] [trace] PowerToys Awake launching with parameters: --use-pt-config --pid 16796

  2. %HomePath%\AppData\Local\Microsoft\PowerToys\Awake\Logs\0.80.1.0\Log_2024-05-13.txt (Dated and Modified 05/13/2024 3:52PM Pacific Time): [13:12:51.3871737] [Info] Program::Main Launching Awake... [13:12:51.4025331] [Info] Program::Main 0.80.1.0 [13:12:51.4026902] [Info] Program::Main Build: ATRIOX_04132023 [13:12:51.4037210] [Info] Program::Main OS: Microsoft Windows NT 10.0.22635.0 [13:12:51.4962945] [Info] Program::Main OS Build: Windows 10 Pro 23H2 22621.1.amd64fre.ni_release.220506-1250 [13:12:51.8701899] [Info] Program::Main {} [13:12:51.8707673] [Info] Program::Main Parsing parameters... [13:12:52.2065440] [Info] Program::HandleCommandLineArguments The value for --use-pt-config is: True [13:12:52.2071258] [Info] Program::HandleCommandLineArguments The value for --display-on is: True [13:12:52.2075305] [Info] Program::HandleCommandLineArguments The value for --time-limit is: 0 [13:12:52.2078050] [Info] Program::HandleCommandLineArguments The value for --pid is: 16796 [13:12:52.2080546] [Info] Program::HandleCommandLineArguments The value for --expire-at is: [13:12:52.2445733] [Info] <>cDisplayClass9_0::b0 Setting up the tray. [13:12:52.2461492] [Info] Program::HandleCommandLineArguments Reading configuration file: C:\Users\vince\AppData\Local\Microsoft\PowerToys\Awake\settings.json [13:12:52.6379865] [Info] Program::ProcessSettings Identified custom time shortcuts for the tray: 0 [13:12:52.6483859] [Info] Program::SetupNoKeepAwake Operating in passive mode (computer's standard power plan). No custom keep awake settings enabled. [13:12:52.6605938] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [13:12:52.6621131] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [13:12:52.6650642] [Info] <>c::b9_0 Setting state to ES_CONTINUOUS [15:51:55.1903667] [Info] Program::Exit Received a signal to end the process. Making sure we quit... [15:51:55.2081212] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [15:51:55.2102236] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [15:51:55.2135271] [Info] <>c::b9_0 Setting state to ES_CONTINUOUS [15:52:03.3001896] [Info] Program::Main Launching Awake... [15:52:03.3324519] [Info] Program::Main 0.80.1.0 [15:52:03.3325443] [Info] Program::Main Build: ATRIOX_04132023 [15:52:03.3334778] [Info] Program::Main OS: Microsoft Windows NT 10.0.22635.0 [15:52:03.3397352] [Info] Program::Main OS Build: Windows 10 Pro 23H2 22621.1.amd64fre.ni_release.220506-1250 [15:52:03.4455883] [Info] Program::Main {} [15:52:03.4457523] [Info] Program::Main Parsing parameters... [15:52:03.5606961] [Info] Program::HandleCommandLineArguments The value for --use-pt-config is: True [15:52:03.5612698] [Info] Program::HandleCommandLineArguments The value for --display-on is: True [15:52:03.5614023] [Info] Program::HandleCommandLineArguments The value for --time-limit is: 0 [15:52:03.5614998] [Info] Program::HandleCommandLineArguments The value for --pid is: 16796 [15:52:03.5616187] [Info] Program::HandleCommandLineArguments The value for --expire-at is: [15:52:03.6015284] [Info] <>cDisplayClass9_0::b0 Setting up the tray. [15:52:03.6331081] [Info] Program::HandleCommandLineArguments Reading configuration file: C:\Users\vince\AppData\Local\Microsoft\PowerToys\Awake\settings.json [15:52:03.8342348] [Info] Program::ProcessSettings Identified custom time shortcuts for the tray: 0 [15:52:03.8346182] [Info] Program::SetupNoKeepAwake Operating in passive mode (computer's standard power plan). No custom keep awake settings enabled. [15:52:03.8483421] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [15:52:03.8495765] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [15:52:03.8532473] [Info] <>c::b__9_0 Setting state to ES_CONTINUOUS

--- END ---

PowerToys Awake Logs 20240513001.zip is attached and includes the following log files which would be related:

1. %HomePath%\AppData\Local\Microsoft\PowerToys\Awake\Logs\awake-log_2024-05-13.txt (Dated and Modified 05/13/2024 1:12PM Pacific Time): [2024-05-13 13:12:45.381540] [p-16796] [t-16800] [info] launcher logger is initialized [2024-05-13 13:12:45.381659] [p-16796] [t-16800] [info] Launcher object is constructing [2024-05-13 13:12:49.064747] [p-16796] [t-16800] [trace] Launching PowerToys Awake process [2024-05-13 13:12:49.064828] [p-16796] [t-16800] [trace] PowerToys Awake launching with parameters: --use-pt-config --pid 16796

  1. %HomePath%\AppData\Local\Microsoft\PowerToys\Awake\Logs\0.80.1.0\Log_2024-05-13.txt (Dated and Modified 05/13/2024 1:12PM Pacific Time): [13:12:51.3871737] [Info] Program::Main Launching Awake... [13:12:51.4025331] [Info] Program::Main 0.80.1.0 [13:12:51.4026902] [Info] Program::Main Build: ATRIOX_04132023 [13:12:51.4037210] [Info] Program::Main OS: Microsoft Windows NT 10.0.22635.0 [13:12:51.4962945] [Info] Program::Main OS Build: Windows 10 Pro 23H2 22621.1.amd64fre.ni_release.220506-1250 [13:12:51.8701899] [Info] Program::Main {} [13:12:51.8707673] [Info] Program::Main Parsing parameters... [13:12:52.2065440] [Info] Program::HandleCommandLineArguments The value for --use-pt-config is: True [13:12:52.2071258] [Info] Program::HandleCommandLineArguments The value for --display-on is: True [13:12:52.2075305] [Info] Program::HandleCommandLineArguments The value for --time-limit is: 0 [13:12:52.2078050] [Info] Program::HandleCommandLineArguments The value for --pid is: 16796 [13:12:52.2080546] [Info] Program::HandleCommandLineArguments The value for --expire-at is: [13:12:52.2445733] [Info] <>c__DisplayClass9_0::b0 Setting up the tray. [13:12:52.2461492] [Info] Program::HandleCommandLineArguments Reading configuration file: C:\Users\vince\AppData\Local\Microsoft\PowerToys\Awake\settings.json [13:12:52.6379865] [Info] Program::ProcessSettings Identified custom time shortcuts for the tray: 0 [13:12:52.6483859] [Info] Program::SetupNoKeepAwake Operating in passive mode (computer's standard power plan). No custom keep awake settings enabled. [13:12:52.6605938] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [13:12:52.6621131] [Info] Manager::CancelExistingThread Instantiating of new token source and thread token completed. [13:12:52.6650642] [Info] <>c::b9_0 Setting state to ES_CONTINUOUS

--- Thanks!

Almighty188 commented 2 months ago

Earlier today, June 7, 2024, Windows 11 x64 Professional 23H2 Beta Insiders Build 22635.3720 (KB5039312) was installed. The original issue where Awake is toggled on but missing from System Tray after Windows updated has occurred again. I have PowerToys 0.81.1 installed since May 28, 2024. This time I did not go into PowerToys which is running in the Windows System Tray to toggle Awake from On to Off and back to On again in PowerToys Settings Dashboard so the Awake icon shows up in Windows system tray again.

image

Logs20240607001.zip is attached and includes the following log files which would be related:

1. %HomePath%\AppData\Local\Microsoft\PowerToys\Awake\Logs\awake-log_2024-06-07.txt (Dated and Modified 06/07/2024 8:13PM Pacific Time): [2024-06-07 20:13:02.586765] [p-10276] [t-8836] [info] launcher logger is initialized [2024-06-07 20:13:02.586866] [p-10276] [t-8836] [info] Launcher object is constructing [2024-06-07 20:13:06.505064] [p-10276] [t-8836] [trace] Launching PowerToys Awake process [2024-06-07 20:13:06.505353] [p-10276] [t-8836] [trace] PowerToys Awake launching with parameters: --use-pt-config --pid 10276

2. %HomePath%\AppData\Local\Microsoft\PowerToys\Awake\Logs\0.81.1.0\Log_2024-06-07.txt (Dated and Modified 06/07/2024 8:13PM Pacific Time): [20:13:10.9506214] [Info] Program::Main Launching Awake... [20:13:10.9957938] [Info] Program::Main 0.81.1.0 [20:13:10.9959550] [Info] Program::Main Build: ATRIOX_04132023 [20:13:10.9971663] [Info] Program::Main OS: Microsoft Windows NT 10.0.22635.0 [20:13:11.4926864] [Info] Program::Main OS Build: Windows 10 Pro 23H2 22621.1.amd64fre.ni_release.220506-1250 [20:13:12.2323591] [Info] Program::Main {} [20:13:12.2326063] [Info] Program::Main Parsing parameters... [20:13:13.6665639] [Info] Program::HandleCommandLineArguments The value for --use-pt-config is: True [20:13:13.6674910] [Info] Program::HandleCommandLineArguments The value for --display-on is: True [20:13:14.0605716] [Info] Program::HandleCommandLineArguments The value for --time-limit is: 0 [20:13:14.1569470] [Info] Program::HandleCommandLineArguments The value for --pid is: 10276 [20:13:14.1967974] [Info] Program::HandleCommandLineArguments The value for --expire-at is: [20:13:14.5573613] [Info] Program::HandleCommandLineArguments Reading configuration file: C:\Users\vince\AppData\Local\Microsoft\PowerToys\Awake\settings.json [20:13:14.5732074] [Info] <>c__DisplayClass9_0::b0 Setting up the tray. [20:13:15.3553271] [Info] Program::ProcessSettings Identified custom time shortcuts for the tray: 0 [20:13:15.4579519] [Info] Program::SetupNoKeepAwake Operating in passive mode (computer's standard power plan). No custom keep awake settings enabled. [20:13:15.5504805] [Info] Manager::CancelExistingThread Attempting to ensure that the thread is properly cleaned up... [20:13:15.6499908] [Info] Manager::CancelExistingThread [20:13:15.6554102] [Info] <>c::b9_0 Setting state to ES_CONTINUOUS Instantiating of new token source and thread token completed.

dend commented 1 month ago

I am not seeing anything in the logs that would point to an issue with the instantiation of the tray icon. @Almighty188 do you have this problem on stable versions of Windows? When you control Awake from the PowerToys control panel, do you see it taking effect?

Almighty188 commented 1 month ago

I don't use stable versions of Windows as this is my only machine where I also run Windows 11 Canary Insiders under a Hyper-V which has nothing installed, the Power Awake icon shows up just fine but one thing I noticed is that with the version the week after the above June 7, 2024 build, I noticed this is what really happens and it's not just Microsoft PowerToys Awake icon that is missing, nVidia icon is missing as well but this is after I restart to update to the newest Windows Insiders build and it installs the updates and then login. After I reboot from that session, both PowerToys Awake Icon and the nVidia icon works appaears again. With the latest Windows Insides Beta build of July 12, 2024, both PowerToys Awake icon and the nVidia icon no longer disappears after the reboot and installing the updates and then login. So perhaps in reality, before, it was only the immediate session after Windows finishes updating after rebooting that causes the Power Awake icon to disappear and a reboot from that will have it working again.

dend commented 1 month ago

Also, worth calling something out here - I am not testing Awake on preview versions of Windows at this time. There are way too many uncertainties there around system stabilities, so I will generally only look at issues that are reproducible on stable releases of the OS.

dend commented 1 month ago

Closing as a no-repro. Please re-open the issue if you see it in stable versions of Windows.