Skip to content

[Feature] [WSGM Core] [Device Plugin] SteamOS-style power button handling #21

Description

@NightHammer1000

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions