Skip to content

feat: abort when the main loop is stuck, so that cosmic-session resta… - #3044

Open
LinuxBoy-96 wants to merge 1 commit into
pop-os:masterfrom
LinuxBoy-96:E11
Open

LinuxBoy-96 wants to merge 1 commit into
pop-os:masterfrom
LinuxBoy-96:E11

Conversation

@LinuxBoy-96

@LinuxBoy-96 LinuxBoy-96 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor
  • Problem: the compositor tells systemd once that it's ready (NotifyState::Ready), with no WATCHDOG=1 after that. cosmic-session reacts only when it exits.
  • Consequence: any compositor freeze leaves the desktop frozen until someone kills the process by hand, or reboots. Switching to a console goes through the frozen compositor and the power button is blocked too, so in practice that means SSH from another machine, or a hard power-off.
  • Fix: a watchdog thread like the panel's (abort if the loop hasn't turned for N seconds), or systemd's watchdog.

Related: pop-os/cosmic-session#240 (the session comes back even if the new cosmic-comp can't start), pop-os/cosmic-session#241 (the power button works while cosmic-comp is frozen).


  • I have not included any LLM (also known as AI) generated content in this PR, including code, comments, and descriptions.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.
  • I have read and followed all of the above requirements. For more information, see our contributor guide.

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.

1 participant