Skip to content

feat(deck): Add Bazzite-Deck-Sleep-Inhibitor - #5234

Open
addmix wants to merge 1 commit into
ublue-os:mainfrom
addmix:deck-sleep-inhibitor
Open

feat(deck): Add Bazzite-Deck-Sleep-Inhibitor#5234
addmix wants to merge 1 commit into
ublue-os:mainfrom
addmix:deck-sleep-inhibitor

Conversation

@addmix

@addmix addmix commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Fixes #4972 (with a Steam client caveat)

Bazzite-Deck-Sleep-Inhibitor is a minimal implementation of the freedesktop.ScreenSaver interface which allows user programs to request sleep inhibitors. This is necessary for game mode, as the typical services (ScreenSaver and PowerDevil) are not active to provide the functionality.

The source is available here: https://github.com/addmix/Bazzite-Deck-Sleep-Inhibitor

The one caveat being this issue that the Steam client (which tracks user inactivity, and issues sleep commands) does not have a mechanism to handle rejected sleep requests. This results in the Steam client doing it's sleep animation, and blacking out the screen, while the system stays awake. The Steam client does not make any further attempts to sleep the system, or to recover from this false-sleep state. I wanted to create this PR as a real example of why Valve must fix this error in the steam client.

Related issues:
ValveSoftware/SteamOS#1881
ValveSoftware/gamescope#2167

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@addmix addmix changed the title Add Bazzite-Deck-Sleep-Inhibitor feat(deck): Add Bazzite-Deck-Sleep-Inhibitor Jul 15, 2026
@addmix
addmix force-pushed the deck-sleep-inhibitor branch from 51c328b to eaad399 Compare July 15, 2026 08:13
@addmix

addmix commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

This sleep inhibitor feature may also require this to be fixed: ShadowBlip/OpenGamepadUI#525
My latest testing shows that it doesn't inhibit sleep currently, but it was happening in earlier stages of my testing

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Game mode does not allow programs to inhibit ACPI sleep

1 participant