Repository navigation
Make "Never" keep the screen on, and keep window decorations - #197
Merged
Merged
Conversation
Three desktop defects that survive into a running session, plus the release comparison that would have gone wrong in December. Issue #189: choosing "Never" for display sleep never kept the screen on, in any Spaced release. The setting was not being ignored -- mate-power-manager honours 0 correctly by never entering its BLANK mode, which is the only mode that touches DPMS. The screen went dark because mate-screensaver activates independently, on org.mate.session's idle-delay, which MATE defaults to five minutes, and blanks and locks whatever the power policy says. Nothing in Power Preferences can reach that key. Never now suspends screensaver idle activation and restores the user's own choice when a real timeout comes back; a screensaver the user had already turned off is never turned back on. Window decorations could be lost for an entire session. spaced-window- decorator supervises a crashed decorator, but only Compiz's stored decoration command launched it, and Compiz reads that command once at startup. The login that first applies the migration setting it therefore runs the old, bare gtk-window-decorator -- exactly the unsupervised case the wrapper exists to prevent. Start the supervisor from an autostart entry as well; its existing lock makes the second instance a no-op. Crashes left nothing to diagnose. An elogind poweroff helper segfaulted on 9.26.1 and produced one kernel line and no core, because the default core limit is zero. Collect cores in /var/crash, bounded at 512 MB so they cannot fill the disk, and prune them after a week. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B6wVrNMeWTgHaTtY76pWbK
This was referenced Sep 11, 2026
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.
Four defects found while investigating an unexplained shutdown on the primary test machine. All four survive into a running session, and three of them have been present in every Spaced release.
Packaged as 9.26.1-5 so installed systems get them over APT; they are also in the tree for 9.26.2.
Fixes #189 — "Never" never kept the screen on
The setting was not being ignored.
mate-power-managerhonourssleep-display-ac=0correctly:GPM_IDLE_MODE_BLANKis the only mode that touches DPMS, andgpm_idle_evaluatenever schedules the blank callback whentimeout_blankis 0.The screen went dark because mate-screensaver activates independently, on
org.mate.session idle-delay— which MATE's schema defaults to 5 minutes, matching the reporter's symptom exactly. Spaced shipsidle-activation-enabled=trueandlock-enabled=trueand has never overriddenidle-delay, so every install blanks and locks after five minutes, and no control in Power Preferences can reach that key.Choosing Never now also suspends screensaver idle activation; choosing a real timeout puts the user's own choice back. A screensaver the user had already switched off is never switched back on.
Note for review: while Never is selected this also suspends auto-lock on idle, because in MATE the blank and the lock are the same activation. That is the trade-off of making Never mean never; happy to change it if you'd rather keep the lock.
Window decorations could be lost for an entire session
spaced-window-decoratorsupervises a crashed decorator, but only Compiz's stored decoration command started it — and Compiz reads that command once, at startup. The login that first applies the migration setting it therefore runs the old, baregtk-window-decorator, unsupervised. Observed on this machine: migration marker written 21:25, Compiz started 21:24:57, decorator died at 21:25:01 onBadWindow ... request_code 131 (XInputExtension), and the session had no titlebars until it was started by hand.An autostart entry now starts the supervisor too. Its existing
flockmakes whichever instance arrives second a silent no-op.Crashes left nothing to diagnose
An elogind poweroff helper segfaulted on 9.26.1 and left one kernel line and no core, because the default core limit is 0. Cores now go to
/var/crash, capped at 512 MB so they cannot fill the disk, pruned after a week. Tracked separately in #198.Spaced Update's release comparison broke at the year boundary
Release lines are month.year, so the line after
12.26is1.27. The version numbers were compared as written, ranking(12, 26)above every 2027 release — from December the OS tab would have called a year-old system current. Same fix as crhy/spacedupdate#18; the overlay copy is synced here.Verification
scripts/check.shpasses, with new assertions covering all four.🤖 Generated with Claude Code
https://claude.ai/code/session_01B6wVrNMeWTgHaTtY76pWbK