wayvnc
Recipe card from the charly-selkies plugin (Images — the deployable catalog).
wayvnc – VNC server for Wayland compositors
Section titled “wayvnc – VNC server for Wayland compositors”Candy Properties
Section titled “Candy Properties”| Property | Value |
|---|---|
| Dependencies | supervisord |
| Ports | tcp:5900 (non-HTTP protocol) |
| Service | wayvnc (supervisord, priority 20) |
| Install files | task:, wayvnc-wrapper |
Packages
Section titled “Packages”wayvnc(RPM)
# charly.yml -- typically included via sway-desktop compositionmy-desktop: candy: - wayvnccharly check live my-image --filter vnc # run the candy's vnc: screenshot / status stepscharly settings set vnc.password.my-image … # store auth in the VNC credential store# the candy's vnc: passwd step then configures VeNCrypt/TLS server-sideNVIDIA Headless: Fixed via Pixman + DPMS Workaround
Section titled “NVIDIA Headless: Fixed via Pixman + DPMS Workaround”VNC screenshots work correctly on NVIDIA headless when used via sway-desktop-vnc (the standard VNC composition). Two fixes make this work:
-
Pixman renderer —
sway-desktop-vncsetsWLR_RENDERER=pixmanin its candy env, forcing software rendering. Thesway-wrapperskips GPU auto-detection whenWLR_RENDERERis pre-set. -
DPMS workaround (wayvnc <= 0.9.1 only) — wayvnc 0.9.1 gates screen capture on
zwlr_output_power_v1mode events, but sway’s headless backend never emits them. Thewayvnc-wrapperperforms a minimal VNC handshake to trigger wayvnc to bind the power manager, thenswaymsg "output <output> power on"forces the missing event. It runs ONLY when the installed wayvnc is <= 0.9.1 on headless sway: wayvnc 0.10.2 (Arch/CachyOS, the latest upstream release) serves a full frame on headless sway 1.12 with no workaround (measured). Fedora 43/44, Debian 13 and Ubuntu 25.x still ship 0.9.1; delete the workaround once none of the supported distros does.
Compositor-agnostic wrapper. The wrapper waits only for $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY; the sway IPC wait runs only when sway is running. WAYVNC_OUTPUT picks the served output (unset = wayvnc’s first output — HEADLESS-1 on a headless sway), and WAYVNC_MAX_FPS caps the frame rate. Installed from the distro package on Fedora AND Arch/CachyOS.
For boxes NOT using sway-desktop-vnc (custom sway + wayvnc setups), the wl: screenshot method (grim) remains a reliable fallback.
Startup Timing
Section titled “Startup Timing”The wayvnc-wrapper uses a two-phase wait:
- Wait for Wayland display socket (
wayland-0) - Wait for sway IPC socket (
sway-ipc.*.sock) + 2s delay
This ensures sway has set the output resolution (default 1920x1080) before wayvnc connects.
Used In Boxes
Section titled “Used In Boxes”Part of the desktop composition.
Related Candies
Section titled “Related Candies”/charly-infrastructure:supervisord– process manager dependency/charly-selkies:sway– Wayland compositor (provides display)/charly-selkies:pipewire– sibling in desktop stack
Related Commands
Section titled “Related Commands”/charly-check:vnc— VNC screenshot, click, type, key, mouse commands
When to Use This Skill
Section titled “When to Use This Skill”Use when the user asks about:
- VNC server setup or configuration
- Remote desktop access to containers
- Port 5900 (tcp protocol)
- VNC password or TLS authentication
- wayvnc wrapper or configuration
Related
Section titled “Related”/charly-image:layer— candy authoring reference (charly.ymlschema, task verbs, service declarations)/charly-check:check— declarative testing (check:block,charly check box,charly check live)

