feat(deck): Add Bazzite-Deck-Sleep-Inhibitor - #5234
Open
addmix wants to merge 1 commit into
Open
Conversation
addmix
requested review from
EyeCantCU,
HikariKnight,
KyleGospo and
noelmiller
as code owners
July 15, 2026 07:53
Up to standards ✅🟢 Issues
|
addmix
force-pushed
the
deck-sleep-inhibitor
branch
from
July 15, 2026 08:13
51c328b to
eaad399
Compare
Contributor
Author
|
This sleep inhibitor feature may also require this to be fixed: ShadowBlip/OpenGamepadUI#525 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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