Skip to content

Make "Never" keep the screen on, and keep window decorations - #197

Merged
crhy merged 1 commit into
mainfrom
fix/9.26.2-reliability
Sep 11, 2026
Merged

crhy merged 1 commit into
mainfrom
fix/9.26.2-reliability

Conversation

@crhy

@crhy crhy commented Sep 11, 2026 •

Copy link
Copy Markdown
Owner

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-manager honours sleep-display-ac=0 correctly: GPM_IDLE_MODE_BLANK is the only mode that touches DPMS, and gpm_idle_evaluate never schedules the blank callback when timeout_blank is 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 ships idle-activation-enabled=true and lock-enabled=true and has never overridden idle-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-decorator supervises 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, bare gtk-window-decorator, unsupervised. Observed on this machine: migration marker written 21:25, Compiz started 21:24:57, decorator died at 21:25:01 on BadWindow ... 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 flock makes 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.26 is 1.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

🤖 Generated with Claude Code

https://claude.ai/code/session_01B6wVrNMeWTgHaTtY76pWbK

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
@crhy
crhy merged commit e91c0a3 into main Sep 11, 2026
2 checks passed
@crhy
crhy deleted the fix/9.26.2-reliability branch September 11, 2026 05:30
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.

Power management settings not working on 9.26 & 9.26.1

1 participant