mainframe has no desktop and the only connected output hangs off the Intel iGPU, while the RTX 3060 that encodes drives no monitor. Capturing the real output would copy every frame between GPUs. So: a minimal sway session on the headless wlroots backend, pinned to card0, with one 1920x1080 virtual output for Sunshine to capture. Verified end to end — Sunshine finds zwlr_screencopy_manager_v1 and creates h264_nvenc and hevc_nvenc. (av1_nvenc fails because Ampere has no AV1 encoder; that is expected.) Two things had to be fixed to get there. The installed sunshine-git was built against boost 1.89 against a system now on 1.92 and could not load five libraries — which is why the service had been enabled but never once run. Replaced with sunshine-bin, which is current and prebuilt. And Sunshine now gets a unit of ours rather than a drop-in: the source AUR package ships sunshine.service while -bin ships app-dev.lizardbyte.app.Sunshine.service, so a drop-in silently stops applying the moment you switch between them. apps.json replaces the stock file, whose "Low Res Desktop" entry shelled out to xrandr and would have done nothing on Wayland.
23 lines
1.0 KiB
Plaintext
23 lines
1.0 KiB
Plaintext
# A compositor that exists only so Sunshine has something to capture.
|
|
# mainframe has no desktop: the only connected output (HDMI-A-2) hangs off the
|
|
# Intel iGPU, while the RTX 3060 that does the encoding drives no monitor at
|
|
# all. Capturing the real output would mean grabbing on Intel and encoding on
|
|
# NVIDIA — a cross-GPU copy every frame. A virtual output on the 3060 keeps
|
|
# capture and NVENC on one card.
|
|
|
|
output HEADLESS-1 mode 1920x1080@60Hz position 0,0
|
|
output HEADLESS-1 background #101920 solid_color
|
|
|
|
# Sunshine is a systemd user unit, so it needs WAYLAND_DISPLAY in the user
|
|
# manager's environment. Import it before starting Sunshine, not after.
|
|
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
exec systemctl --user start sunshine.service
|
|
|
|
# Nothing is attached to this session locally, so keybinds are only useful
|
|
# through a Moonlight client. Keep the set minimal.
|
|
set $mod Mod4
|
|
bindsym $mod+Shift+q kill
|
|
bindsym $mod+Shift+e exec swaymsg exit
|
|
|
|
# No bar, no idle daemon, no lock screen — there is no one sitting here.
|