Tray tool for finding Windows power requests that block display sleep or system sleep.
- Polls every
2s - Runs as administrator, required for power request APIs
- Shows tray state:
- gray, no blockers
- orange, display-only blocker
- red, any sleep blocker
- Left-click or right-click opens blocker menu
- Groups blockers by
DisplayandSleep - Shows process name, PID, reason, COM class name where available
- Shows matching processes when Windows reports path but not PID
- Shows compact command line and decodes PowerShell
-EncodedCommand - Can kill process blockers from menu
- Shows driver/kernel blockers, but cannot kill them because Windows exposes no PID
- Single instance via global mutex
- Run
publish\WakeScope.exe - Accept UAC prompt
- Keep app in tray
dotnet publish -p:PublishProfile=ReleaseOutput:
publish\WakeScope.exe
Current publish profile creates one self-contained win-x64 exe.
- Tray icon changes when blockers appear
- Open tray menu with left-click or right-click
- Use
Refreshto force immediate check - Use
Kill processonly when listed blocker is safe to terminate - Use
Exitto close WakeScope
DISPLAYrequests, usually media playback or browser videoSYSTEMrequests, blocks automatic system sleepEXECUTIONrequests, usually process lifetime requests- driver requests such as audio streams
- kernel requests such as
Legacy Kernel Caller
- Driver and kernel requests do not expose a process PID
Legacy Kernel Callercannot be killed from WakeScope- If multiple processes share same executable path, WakeScope lists matching PIDs instead of guessing
- Native parser uses undocumented Windows structure offsets, verified against
powercfg /requests
Run:
powercfg /requestsWakeScope should show same active categories and blockers.
Test script:
powershell -ExecutionPolicy Bypass -File .\tests\sleep_block_test.ps1- Based on upstream
130cmWolf/WakeScope - Upstream monitored display blockers only
- This fork also parses
powercfg /requestscategories and adds sleep blockers, process kill actions, and compact command-line display
MIT, original project by 130cmWolf/WakeScope