Repository navigation
vnc unit: Restart=always (wayvnc exits 0 when its monitor goes away) — 0.7.2 - #13
Merged
Merged
Conversation
On the test machine the monitor came back as HDMI-A-1 instead of HDMI-A-2; wayvnc logged "No fallback outputs left" and exited 0, so Restart=on-failure never brought it back and the browser desktop said "cannot connect". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The browser desktop showed noVNC's "cannot connect to server". On the test machine the monitor had come back as
HDMI-A-1instead ofHDMI-A-2two days earlier; wayvnc loggedSelected output HDMI-A-2 went away … No fallback outputs left. Exiting…and exited with status 0, soRestart=on-failurenever restarted it.Fix
Restart=alwayson the owner'somarchy-remote-vnc.service(users' units fromuser addalready had it). On restart,ensure-displayattaches to whatever output exists, or creates a headless one. Existing installs pick it up by running the installer again (oromarchy-remote setup). VERSION 0.7.2; CLAUDE.md gotcha added.Tested
setup,wayvnckilled with a clean exit → back within a few seconds🤖 Generated with Claude Code