SteamOS handles the power button the way a handheld should: a short press sleeps the device, a long press opens the Steam power menu. I want the same on Windows.
Most of the work is capturing the button event and routing it, not UI.
What it should do
In Game Mode, a short press puts the system into standby and a long press opens Steam's power menu, which should include Return to Desktop. In Desktop mode, a long press opens a WSGM power menu instead, and a short press stays safe and predictable.
The hard parts
- Capture power button press and release reliably enough to tell short from long, with debouncing and a threshold that may need to differ per device.
- Stop Windows from also running its own configured power-button action while WSGM owns the event.
- Work out how much can be generic in Core and what needs a Device Plugin hook for device-specific ACPI, HID or EC paths.
- Fall back safely if WSGM is not running, crashes, or loses the event.
Steam side
Find out whether Steam on Windows can be triggered into its SteamOS-style power menu at all, and define what Return to Desktop does for the Game Mode to Desktop transition.
SteamOS handles the power button the way a handheld should: a short press sleeps the device, a long press opens the Steam power menu. I want the same on Windows.
Most of the work is capturing the button event and routing it, not UI.
What it should do
In Game Mode, a short press puts the system into standby and a long press opens Steam's power menu, which should include Return to Desktop. In Desktop mode, a long press opens a WSGM power menu instead, and a short press stays safe and predictable.
The hard parts
Steam side
Find out whether Steam on Windows can be triggered into its SteamOS-style power menu at all, and define what Return to Desktop does for the Game Mode to Desktop transition.