DXawake v1.3
Last update: 21 Aug 2026
Author: DXresearch.eu

DXawake is a tray-only Windows 11 keep-awake utility.
No main application window is used.

TRAY MENU
- Keep laptop awake
- Energy Saver (allow screen off)
- Turn screen off now (when Awake + Energy Saver are active)
- Duration: Indefinitely / 30 minutes / 1 hour / 2 hours / Until...
- Start with Windows
- Status
- About
  - About DXawake
  - ❤️ support me
- Exit DXawake

ACTIVE / INACTIVE ICONS
- Active: bright blue DX + coffee/pulse logo.
- Inactive: subdued DX + moon/coffee logo.
- The EXE uses the active DXawake icon in Windows Explorer.

POWER BEHAVIOR
- Awake + Energy Saver OFF: keeps the system and display awake.
- Awake + Energy Saver ON: keeps the system awake while Windows may turn the display off.
- Inactive: Windows power policy operates normally.
- Uses SetThreadExecutionState; no fake keyboard input.

V1.3 RELIABILITY CHANGES
- Win32 message loop locked to one OS thread because SetThreadExecutionState is thread-scoped.
- Clean shutdown releases the execution-state request before process exit.
- Screen-off broadcast uses SendMessageTimeout to avoid hanging on an unresponsive application.
- Tray icon is restored automatically after Windows Explorer/taskbar restarts.
- Single-instance detection uses CreateMutex result/error from the same syscall.
- Settings are saved atomically via a temporary file + rename.
- Startup setting reports registry write failure instead of silently claiming success.
- Status row in the tray menu is non-selectable.

SUPPORT
https://buymeacoffee.com/doingx

FILES
DXawake.exe             Native Windows x86-64 GUI executable
DXawake_active.ico      Active icon source
DXawake_inactive.ico    Inactive icon source
DXawake_active.png      Active logo source
DXawake_inactive.png    Inactive logo source
source.go               Go/Win32 application source
embed_dual_icons.py     Build-time PE icon resource embedder
SHA256.txt              File integrity hashes
