GRI-1937: the client keeps the screen on while it runs #154
No reviewers
Labels
No labels
Area/Backend
Area/Database
Area/Docs
Area/Frontend
Area/Infra
Area/Security
Area/Tests
Area/Tooling
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Lang/Python
Lang/Rust
Lang/Shell
Lang/SQL
Lang/TypeScript
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Routing
Auto
Routing
Hold
Routing
Human
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage!154
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/GRI-1937-client-no-sleep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The product owner's test desktop (Ubuntu 26.04, GNOME on Wayland) blanks the screen and sleeps while the client plays.
The client now asks the desktop, over the session D-Bus, not to blank the screen or suspend — the same request a video player makes:
org.gnome.SessionManager.Inhibit(flags suspend + idle) — GNOMEorg.freedesktop.portal.Inhibit— KDE and other portal desktopsorg.freedesktop.ScreenSaver.Inhibit— Xfce, MATE, Cinnamon (screen only)The first that answers is kept. The desktop drops the request when the process exits, so a crash cannot leave the screen stuck on.
On by default.
keep_awake = falsein/etc/grimoirix-signage/client.tomlorGRIMOIRIX_SIGNAGE_KEEP_AWAKE=0turns it off (env wins). A failed inhibit is logged and playback continues.Tested: clippy with and without
gtk-renderer; config unit tests; each of the three calls against a mock service on a private bus (dbus-run-session) — received(susu),(sua{sv}),(ss)with the expected values; with no service, the error names all three. Not yet tried on the real desktop.