Skip to content

Portal capture hangs on live client connection after loading restore token (succeeds during self-test) — GNOME headless Remote Login session #5750

Open

Description

@NovaStorm775

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

Description

Portal-based screen capture (capture = portal) succeeds completely and consistently during Sunshine's own internal startup self-test — including full hardware encoder validation against the GPU — but deterministically hangs on the first live client connection from a Moonlight client, at the exact same point every time, regardless of encoder setting, portal daemon state, or restore token freshness. The Moonlight client eventually times out (Error 4).

Environment specifics: this occurs specifically when the GNOME session is a headless one created via GDM's "Remote Login" feature (RDP connecting to the GDM greeter and starting a fresh session, rather than sharing an already-active local session). The session has no physical display attached; Sunshine correctly finds and streams the session's virtual Mutter output (Meta-0) during self-test.

Steps to reproduce:

Start a GNOME session via GDM Remote Login (RDP) on a machine with no physical display active
Launch sunshine from a terminal inside that session, or from a program shortcut, with capture = portal and encoder = vulkan explicitly set in sunshine.conf
Observe Sunshine's own startup self-test succeed fully (see log below — finds the Meta-0 stream, validates h264_vulkan/hevc_vulkan/av1_vulkan against the GPU, reaches "Starting main loop")
From a separate device, connect via Moonlight and attempt to launch any application (including the default Desktop entry)
Observe the log stop advancing immediately after [portalgrab] Loaded portal restore token from disk, with no further output, until the client times out.

Things ruled out during troubleshooting, each independently tested:

Firewall/network configuration (the hang occurs before any RTSP/streaming port would be involved — this is local capture negotiation only)
Stale restore token (reproduced immediately after a fresh interactive portal approval — see "Saved portal restore token to disk" in the log, ~63 seconds before self-test, following a manual xdg-desktop-portal/xdg-desktop-portal-gnome restart)
Encoder auto-detection churn (reproduced with encoder pinned explicitly to vulkan, eliminating the nvenc/vaapi/software cascade entirely — only one self-test cycle runs, and it succeeds)
KMS-specific capability issues (not applicable — capture is explicitly portal, not kms & KMS streaming session was succesful when I had the host PC turned on and logged in, prior to switching to portal capture and virtual display session)

Expected Behavior

A live Moonlight connection should be able to start a stream using the same portal capture path that Sunshine's own self-test just used successfully seconds earlier.

Additional Context

This report was put together with AI assistance, Claude helped me troubleshoot the issue and draft this report. The theory is a hypothesis, not 100% confirmed obviously, however; this matches a known general class of bug in async XDG-portal D-Bus clients, where a portal call is made before the response-signal listener is subscribed, and a fast response (as happens when reusing an already-approved restore token) can fire and be missed before the subscriber registers, causing an indefinite wait. That pattern would explain why an isolated self-test (minimal concurrent activity) consistently succeeds while a live client session (RTSP server and connection handling running concurrently) consistently loses that race, but neither of us has inspected Sunshine's actual portal-client source to confirm this is the real mechanism, so please treat it as a lead rather than a diagnosis.

Host Operating System

Linux

Operating System Version

OS: Arch Linux x86_64 // Kernel: Linux 7.2.6-arch2-1

Architecture

amd64/x86_64

Package

Linux - LizardByte/pacman-repo

GPU Type

AMD

GPU Model

Asus TUF 7900 XTX

GPU Driver/Mesa Version

mesa 1:26.2.3-1

Capture Method

XDG Portal Grab (FreeBSD/Linux)

Apps

All apps - main test is launching steam

Log output

[2026-09-18 23:32:59.577]: Info: Sunshine version: 2026.914.233613 commit: 63d35f702ee9e362e43263742981836ec0710384
[2026-09-18 23:32:59.577]: Info: Package Publisher: LizardByte
[2026-09-18 23:32:59.577]: Info: config: 'capture' = portal
[2026-09-18 23:32:59.577]: Info: config: 'encoder' = vulkan
[2026-09-18 23:34:02.751]: Info: [portalgrab] Saved portal restore token to disk
[2026-09-18 23:34:02.751]: Info: [wayland] Found display [wayland-0]
[2026-09-18 23:34:02.752]: Info: [wayland] Name: Meta-0
[2026-09-18 23:34:02.752]: Info: [wayland] Found monitor: MetaVendor
[2026-09-18 23:34:02.753]: Info: [portalgrab] Found stream for display id/name: 'Meta-0' position: 0x0 resolution: 1920x1080
[2026-09-18 23:34:02.769]: Info: Trying encoder [vulkan]
[2026-09-18 23:34:02.805]: Info: Creating encoder [h264_vulkan]
[2026-09-18 23:34:02.823]: Info: Vulkan encode using GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
[2026-09-18 23:34:02.970]: Info: Creating encoder [hevc_vulkan]
[2026-09-18 23:34:02.989]: Info: Vulkan encode using GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
[2026-09-18 23:34:03.091]: Info: Creating encoder [av1_vulkan]
[2026-09-18 23:34:03.107]: Info: Vulkan encode using GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
[2026-09-18 23:34:03.147]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-09-18 23:34:03.147]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-09-18 23:34:03.147]: Info: Found AV1 encoder: av1_vulkan [vulkan]
[2026-09-18 23:34:03.148]: Error: Failed to create client: Daemon not running
[2026-09-18 23:34:03.149]: Info: Configuration UI available at [https://localhost:47990]
[2026-09-18 23:34:03.182]: Warning: Failed to create system tray
[2026-09-18 23:34:03.182]: Info: Starting main loop
[2026-09-18 23:34:03.182]: Info: Main loop has exited

--- Live Moonlight connection attempt, ~54 seconds later ---

[2026-09-18 23:34:57.533]: Info: Display device configuration is disabled. Reverting any active display device configuration.
[2026-09-18 23:34:57.536]: Info: Trying encoder [vulkan]
[2026-09-18 23:34:57.536]: Error: Failed to gain CAP_SYS_ADMIN
[2026-09-18 23:34:57.536]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
[2026-09-18 23:34:57.536]: Info: Screencasting with XDG portal
[2026-09-18 23:34:57.536]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
[2026-09-18 23:34:57.536]: Info: [wayland] Found display [wayland-0]
[2026-09-18 23:34:57.543]: Info: [portalgrab] Loaded portal restore token from disk

--- log stops here; no further output; client times out (Error 4) ---

Online logs

No response

Activity

  1. NovaStorm775 commented on Sep 19, 2026

    @NovaStorm775
    Author

    Sorry just posting on my lunch break at work, happy to provide more info if needed!

    Raw Log Output:

    [2026-09-18 23:32:59.577]: Info: Sunshine version: 2026.914.233613 commit: 63d35f702ee9e362e43263742981836ec0710384
    [2026-09-18 23:32:59.577]: Info: Package Publisher: LizardByte
    [2026-09-18 23:32:59.577]: Info: Publisher Website: https://app.lizardbyte.dev
    [2026-09-18 23:32:59.577]: Info: Get support: https://app.lizardbyte.dev/support
    [2026-09-18 23:32:59.577]: Info: config: 'capture' = portal
    [2026-09-18 23:32:59.577]: Info: config: 'encoder' = vulkan
    [2026-09-18 23:34:02.751]: Info: [portalgrab] Saved portal restore token to disk
    [2026-09-18 23:34:02.751]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.751]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.751]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.751]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.752]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.752]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.752]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.752]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.752]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.753]: Info: [portalgrab] Found stream for display id/name: 'Meta-0' position: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:02.769]: Warning: Gamepad auto is disabled due to gamepads.virtualhid-not-available
    [2026-09-18 23:34:02.769]: Warning: Gamepad generic is disabled due to gamepads.virtualhid-not-available
    [2026-09-18 23:34:02.769]: Warning: Gamepad x360 is disabled due to gamepads.virtualhid-not-available
    [2026-09-18 23:34:02.769]: Warning: Gamepad xone is disabled due to gamepads.virtualhid-not-available
    [2026-09-18 23:34:02.769]: Warning: Gamepad xseries is disabled due to gamepads.virtualhid-not-available
    [2026-09-18 23:34:02.769]: Warning: Gamepad ds4 is disabled due to gamepads.virtualhid-not-available
    [2026-09-18 23:34:02.769]: Warning: Gamepad ds5 is disabled due to gamepads.virtualhid-not-available
    [2026-09-18 23:34:02.769]: Warning: Gamepad switch is disabled due to gamepads.virtualhid-not-available
    [2026-09-18 23:34:02.769]: Warning: No gamepad input is available
    [2026-09-18 23:34:02.769]: Info: Trying encoder [vulkan]
    [2026-09-18 23:34:02.769]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:02.769]: Error: Failed to drop CAP_SYS_ADMIN
    [2026-09-18 23:34:02.769]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:02.770]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:02.770]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.780]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-09-18 23:34:02.792]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.793]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.793]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.793]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.793]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.793]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.793]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.793]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.793]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.793]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
    [2026-09-18 23:34:02.793]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:02.793]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.794]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.794]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.794]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.794]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.794]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.794]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.794]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.794]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.795]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-18 23:34:02.795]: Info: [pipewire] Connected to pipewire version 1.6.8
    [2026-09-18 23:34:02.795]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-18 23:34:02.797]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:02.797]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:02.797]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:02.797]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:02.797]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:02.797]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:02.797]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:02.797]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:02.797]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:02.797]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:02.797]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:02.797]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:02.798]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-09-18 23:34:02.805]: Info: Creating encoder [h264_vulkan]
    [2026-09-18 23:34:02.805]: Info: Color coding: SDR (Rec. 601)
    [2026-09-18 23:34:02.805]: Info: Color depth: 8-bit
    [2026-09-18 23:34:02.805]: Info: Color range: JPEG
    [2026-09-18 23:34:02.823]: Info: Streaming bitrate is 1000000
    [2026-09-18 23:34:02.823]: Info: Vulkan encode using GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
    [2026-09-18 23:34:02.831]: Info: Creating encoder [hevc_vulkan]
    [2026-09-18 23:34:02.831]: Info: Color coding: SDR (Rec. 601)
    [2026-09-18 23:34:02.831]: Info: Color depth: 8-bit
    [2026-09-18 23:34:02.831]: Info: Color range: JPEG
    [2026-09-18 23:34:02.845]: Info: Streaming bitrate is 1000000
    [2026-09-18 23:34:02.846]: Info: Vulkan encode using GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
    [2026-09-18 23:34:02.853]: Info: Creating encoder [av1_vulkan]
    [2026-09-18 23:34:02.853]: Info: Color coding: SDR (Rec. 601)
    [2026-09-18 23:34:02.853]: Info: Color depth: 8-bit
    [2026-09-18 23:34:02.853]: Info: Color range: JPEG
    [2026-09-18 23:34:02.867]: Info: Streaming bitrate is 1000000
    [2026-09-18 23:34:02.867]: Info: Vulkan encode using GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
    [2026-09-18 23:34:02.872]: Info: [pipewire] PipeWire stream state: streaming -> paused
    [2026-09-18 23:34:02.872]: Info: [pipewire] PipeWire stream state: paused -> unconnected
    [2026-09-18 23:34:02.873]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-09-18 23:34:02.873]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:02.873]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:02.873]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:02.873]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.879]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-09-18 23:34:02.891]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.892]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.892]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.892]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.892]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.892]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.892]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.892]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.892]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.893]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
    [2026-09-18 23:34:02.893]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:02.893]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.893]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.893]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.893]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.893]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.893]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.893]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.893]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.893]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.894]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-18 23:34:02.894]: Info: [pipewire] Connected to pipewire version 1.6.8
    [2026-09-18 23:34:02.895]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-18 23:34:02.896]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:02.896]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:02.896]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:02.896]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:02.896]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:02.896]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:02.897]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:02.897]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:02.897]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:02.897]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:02.897]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:02.897]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:02.898]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-09-18 23:34:02.906]: Info: [pipewire] PipeWire stream state: streaming -> paused
    [2026-09-18 23:34:02.906]: Info: [pipewire] PipeWire stream state: paused -> unconnected
    [2026-09-18 23:34:02.906]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-09-18 23:34:02.906]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:02.906]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:02.906]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:02.906]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.913]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-09-18 23:34:02.925]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.925]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.925]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.925]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.925]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.925]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.925]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.925]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.925]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.926]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
    [2026-09-18 23:34:02.926]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:02.926]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.926]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.926]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.926]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.927]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.927]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.927]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.927]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.927]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.928]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-18 23:34:02.928]: Info: [pipewire] Connected to pipewire version 1.6.8
    [2026-09-18 23:34:02.928]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-18 23:34:02.930]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:02.930]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:02.930]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:02.930]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:02.930]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:02.930]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:02.931]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:02.931]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:02.931]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:02.931]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:02.931]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:02.931]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:02.932]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-09-18 23:34:02.939]: Info: [pipewire] PipeWire stream state: streaming -> paused
    [2026-09-18 23:34:02.940]: Info: [pipewire] PipeWire stream state: paused -> unconnected
    [2026-09-18 23:34:02.940]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-09-18 23:34:02.940]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:02.940]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:02.940]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:02.940]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.947]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-09-18 23:34:02.958]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.958]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.958]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.958]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.958]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.958]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.958]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.958]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.958]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.959]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
    [2026-09-18 23:34:02.959]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:02.959]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:02.959]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:02.959]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:02.959]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:02.959]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:02.959]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:02.959]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:02.959]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:02.959]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:02.960]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-18 23:34:02.961]: Info: [pipewire] Connected to pipewire version 1.6.8
    [2026-09-18 23:34:02.961]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-18 23:34:02.963]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:02.963]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:02.963]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:02.963]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:02.963]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:02.963]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:02.963]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:02.963]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:02.963]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:02.963]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:02.963]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:02.963]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:02.964]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-09-18 23:34:02.970]: Info: Creating encoder [hevc_vulkan]
    [2026-09-18 23:34:02.970]: Info: Color coding: SDR (Rec. 709)
    [2026-09-18 23:34:02.970]: Info: Color depth: 10-bit
    [2026-09-18 23:34:02.970]: Info: Color range: JPEG
    [2026-09-18 23:34:02.989]: Info: Streaming bitrate is 1000000
    [2026-09-18 23:34:02.989]: Info: Vulkan encode using GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
    [2026-09-18 23:34:02.996]: Info: [pipewire] PipeWire stream state: streaming -> paused
    [2026-09-18 23:34:02.996]: Info: [pipewire] PipeWire stream state: paused -> unconnected
    [2026-09-18 23:34:02.997]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-09-18 23:34:02.997]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:02.997]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:02.997]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:02.997]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.004]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-09-18 23:34:03.015]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.015]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:03.015]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:03.015]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:03.015]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:03.015]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:03.015]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:03.015]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:03.015]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:03.015]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
    [2026-09-18 23:34:03.015]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:03.015]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.015]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:03.015]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:03.015]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:03.016]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:03.016]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:03.016]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:03.016]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:03.016]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:03.017]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-18 23:34:03.017]: Info: [pipewire] Connected to pipewire version 1.6.8
    [2026-09-18 23:34:03.017]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-18 23:34:03.019]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:03.019]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:03.019]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:03.019]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:03.019]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:03.019]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:03.020]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:03.020]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:03.020]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:03.020]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:03.020]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:03.020]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:03.021]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-09-18 23:34:03.028]: Info: [pipewire] PipeWire stream state: streaming -> paused
    [2026-09-18 23:34:03.028]: Info: [pipewire] PipeWire stream state: paused -> unconnected
    [2026-09-18 23:34:03.029]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-09-18 23:34:03.029]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:03.029]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:03.029]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:03.029]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.035]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-09-18 23:34:03.046]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.047]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:03.047]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:03.047]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:03.047]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:03.047]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:03.047]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:03.047]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:03.047]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:03.048]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
    [2026-09-18 23:34:03.048]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:03.048]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.048]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:03.048]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:03.048]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:03.048]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:03.048]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:03.048]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:03.048]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:03.048]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:03.049]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-18 23:34:03.049]: Info: [pipewire] Connected to pipewire version 1.6.8
    [2026-09-18 23:34:03.049]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-18 23:34:03.051]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:03.051]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:03.051]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:03.051]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:03.051]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:03.051]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:03.051]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:03.051]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:03.052]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:03.052]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:03.052]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:03.052]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:03.052]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-09-18 23:34:03.060]: Info: [pipewire] PipeWire stream state: streaming -> paused
    [2026-09-18 23:34:03.060]: Info: [pipewire] PipeWire stream state: paused -> unconnected
    [2026-09-18 23:34:03.061]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-09-18 23:34:03.061]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:03.061]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:03.061]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:03.061]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.067]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-09-18 23:34:03.078]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.078]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:03.078]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:03.078]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:03.078]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:03.078]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:03.078]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:03.078]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:03.079]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:03.079]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
    [2026-09-18 23:34:03.079]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:03.079]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.079]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:03.079]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:03.079]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:03.079]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:03.079]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:03.079]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:03.080]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:03.080]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:03.081]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-18 23:34:03.081]: Info: [pipewire] Connected to pipewire version 1.6.8
    [2026-09-18 23:34:03.081]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-18 23:34:03.083]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:03.083]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:03.083]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:03.083]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:03.083]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:03.083]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:03.083]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:03.083]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:03.083]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:03.083]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:03.083]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:03.083]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:03.084]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-09-18 23:34:03.091]: Info: Creating encoder [av1_vulkan]
    [2026-09-18 23:34:03.091]: Info: Color coding: SDR (Rec. 709)
    [2026-09-18 23:34:03.091]: Info: Color depth: 10-bit
    [2026-09-18 23:34:03.091]: Info: Color range: JPEG
    [2026-09-18 23:34:03.107]: Info: Streaming bitrate is 1000000
    [2026-09-18 23:34:03.107]: Info: Vulkan encode using GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
    [2026-09-18 23:34:03.113]: Info: [pipewire] PipeWire stream state: streaming -> paused
    [2026-09-18 23:34:03.113]: Info: [pipewire] PipeWire stream state: paused -> unconnected
    [2026-09-18 23:34:03.114]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-09-18 23:34:03.114]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:03.114]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:03.114]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:03.114]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.121]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-09-18 23:34:03.133]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.133]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:03.133]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:03.133]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:03.133]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:03.133]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:03.133]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:03.133]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:03.133]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:03.134]: Info: [portalgrab] Using first available stream as no matching stream was found for: ''
    [2026-09-18 23:34:03.134]: Info: [pipewire] Streaming display '' offset: 0x0 resolution: 1920x1080
    [2026-09-18 23:34:03.134]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:03.134]: Info: [wayland] Found interface: zxdg_output_manager_v1(3) version 3
    [2026-09-18 23:34:03.134]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(22) version 5
    [2026-09-18 23:34:03.134]: Info: [wayland] Found interface: wl_output(43) version 4
    [2026-09-18 23:34:03.134]: Info: [wayland] Resolution: 1920x1080
    [2026-09-18 23:34:03.134]: Info: [wayland] Offset: 0x0
    [2026-09-18 23:34:03.134]: Info: [wayland] Logical size: 1920x1080
    [2026-09-18 23:34:03.134]: Info: [wayland] Name: Meta-0
    [2026-09-18 23:34:03.134]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-18 23:34:03.135]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-18 23:34:03.135]: Info: [pipewire] Connected to pipewire version 1.6.8
    [2026-09-18 23:34:03.136]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-18 23:34:03.137]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:03.138]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:03.138]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:03.138]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:03.138]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:03.138]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:03.138]: Info: [pipewire] Video format: 12
    [2026-09-18 23:34:03.138]: Info: [pipewire] Size: 1920x1080
    [2026-09-18 23:34:03.138]: Info: [pipewire] Color primaries: 1
    [2026-09-18 23:34:03.138]: Info: [pipewire] Transfer function: 4
    [2026-09-18 23:34:03.138]: Info: [pipewire] Compositor negotiated frame rate: 0/1 (variable rate capture)
    [2026-09-18 23:34:03.138]: Info: [pipewire] using DMA-BUF buffers
    [2026-09-18 23:34:03.139]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-09-18 23:34:03.146]: Info: [pipewire] PipeWire stream state: streaming -> paused
    [2026-09-18 23:34:03.147]: Info: [pipewire] PipeWire stream state: paused -> unconnected
    [2026-09-18 23:34:03.147]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
    [2026-09-18 23:34:03.147]: Info: 
    [2026-09-18 23:34:03.147]: Info: // Ignore any errors mentioned above, they are not relevant. //
    [2026-09-18 23:34:03.147]: Info: 
    [2026-09-18 23:34:03.147]: Info: Found H.264 encoder: h264_vulkan [vulkan]
    [2026-09-18 23:34:03.147]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
    [2026-09-18 23:34:03.147]: Info: Found AV1 encoder: av1_vulkan [vulkan]
    [2026-09-18 23:34:03.147]: Info: Starting system tray
    [2026-09-18 23:34:03.148]: Error: Failed to create client: Daemon not running
    [2026-09-18 23:34:03.149]: Info: Configuration UI available at [https://localhost:47990]
    [2026-09-18 23:34:03.182]: Warning: Failed to create system tray
    [2026-09-18 23:34:03.182]: Info: Starting main loop
    [2026-09-18 23:34:03.182]: Error: System tray is not initialized
    [2026-09-18 23:34:03.182]: Info: Main loop has exited
    [2026-09-18 23:34:57.533]: Info: Display device configuration is disabled. Reverting any active display device configuration.
    [2026-09-18 23:34:57.536]: Info: Trying encoder [vulkan]
    [2026-09-18 23:34:57.536]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-09-18 23:34:57.536]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-09-18 23:34:57.536]: Info: Screencasting with XDG portal
    [2026-09-18 23:34:57.536]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-09-18 23:34:57.536]: Info: [wayland] Found display [wayland-0]
    [2026-09-18 23:34:57.543]: Info: [portalgrab] Loaded portal restore token from disk
    
  2. psyke83 commented on Sep 23, 2026

    @psyke83
    Contributor

    I tested GDM Remote Login using this procedure with GNOME 51 (with #5774).

    Setup:

    • Settings -> Remote Desktop -> Remote Desktop -> disabled.
    • Settings -> Remote Desktop -> Remote Login -> enabled.

    Before testing Sunshine, I tested RDP login on its own to see how the feature works. It seems that on RDP connect, a new virtual monitor is created that displays the GDM login screen which can load a desktop session. However, the crucial detail that impacts Sunshine is that once you disconnect from the RDP session, the entire virtual session is closed.

    To verify, I tested the following:

    • Connect via RDP and keep session open in RDP client.
    • Restart Sunshine to (re)trigger token authentication. Sunshine has no fallback capture methods available (expected), so I used the RDP session to confirm the XDG dialog.
    • Sunshine connected successfully and displayed the (logged in) virtual session. Although input and mouse works, the cursor is not rendered.
    • Disconnect from Sunshine and reconnect -> works.
    • Close the RDP session while Sunshine is connected -> Sunshine freezes, and subsequent reconnects trigger a stale token condition.

    My conclusion is that GDM Remote Login can't realistically work with Sunshine unless the remote login session can be configured to remain persistent after the RDP connection is closed. If The virtual monitor can be set up normally and GDM configured to autologin to it, it could work, otherwise it doesn't seem suitable.

  3. psyke83 commented on Sep 23, 2026

    @psyke83
    Contributor

    As an alternative, I was able to use a virtual monitor that fully works with Portal via the following steps:

    • Set up GDM autologin.
    • Set up Remote Desktop (this seems very flaky on Arch; had to try changing credential multiple time for it to stick).
    • Added a drop-in for mutter to set up a virtual display:
    [conn@archlinux ~]$ cat ~/.config/systemd/user/org.gnome.Shell\@user.service.d/override.conf 
    [Service]
    ExecStart=
    ExecStart=/usr/bin/gnome-shell --mode=%i --virtual-monitor 1920x1080
    
    • Restarted, then set up Portal by selecting the Meta-0 monitor in the Portal Remote Desktop prompt via the RDP connection.

    With all the above done, Portal connect works fine and persist across reboots. Unlike the GDM Remote Login, the cursor is rendered correctly.

    [2026-09-23 18:53:54.843]: Info: [pipewire] Streaming display 'Meta-0' offset: 0x0 resolution: 1920x1080
    [2026-09-23 18:53:54.843]: Info: [wayland] Found display [wayland-0]
    [2026-09-23 18:53:54.843]: Info: [wayland] Found interface: wl_output(3) version 4
    [2026-09-23 18:53:54.843]: Info: [wayland] Found interface: zxdg_output_manager_v1(4) version 3
    [2026-09-23 18:53:54.843]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(23) version 5
    [2026-09-23 18:53:54.843]: Info: [wayland] Resolution: 1920x1080
    [2026-09-23 18:53:54.843]: Info: [wayland] Offset: 0x0
    [2026-09-23 18:53:54.843]: Info: [wayland] Logical size: 1920x1080
    [2026-09-23 18:53:54.843]: Info: [wayland] Name: Meta-0
    [2026-09-23 18:53:54.843]: Info: [wayland] Found monitor: MetaVendor
    [2026-09-23 18:53:54.845]: Info: [pipewire] PipeWire stream state: unconnected -> connecting
    [2026-09-23 18:53:54.845]: Info: [pipewire] Connected to pipewire version 1.6.9
    [2026-09-23 18:53:54.845]: Info: [pipewire] PipeWire stream state: connecting -> paused
    [2026-09-23 18:53:54.849]: Info: [pipewire] Video format: 12
    [2026-09-23 18:53:54.849]: Info: [pipewire] Size: 1920x1080
    
  4. NovaStorm775 commented on Sep 27, 2026

    @NovaStorm775
    Author

    Hi dude, thanks for testing that and confirming that method for me! I've had an attempt at recreating your success and so far no matter the situation I haven't been able to get past the portal load token hang which occurred in my report. I'll keep testing with the next update to sunshine and let you know if anything changes, thanks!

  5. chadwjames commented on Oct 12, 2026

    @chadwjames

    Seeing the same symptom on a different setup, plus one data point that may help narrow it down.

    Symptom: startup self-test passes with portal capture, but on the first live Moonlight launch the log stops right after [portalgrab] Loaded portal restore token from disk. No CreateSession is ever logged, the client never connects, and Moonlight then reports the host as offline (the HTTPS port stops being serviced until Sunshine is restarted).

    Setup: Bazzite (Fedora Atomic 44) with GNOME Shell 50.5 on Wayland, NVIDIA RTX 3070 (open kernel module 615.71.09, matching Flatpak GL extension), a normal local GNOME session (not GDM Remote Login), Sunshine Flatpak 2026.914.233613 from Flathub, encoder = nvenc.

    What isolated it: on this session the system tray never initializes (Failed to create system tray → System tray is not initialized → Main loop has exited). Setting system_tray = disabled in sunshine.conf fixed the launch hang on the same build with no other change: same version, same token, same GNOME session, only that setting differs. Logs below (debug level, redacted).

    I also tried the pre-release v2026.1011.160319 (which includes #5774). On this session it exits cleanly at startup when the tray fails to initialize, so it needs system_tray = disabled as well. With that set, launching worked there too. (With the tray enabled it exits before it can be tested, so I can't say whether the pre-release changes the hang on its own.)

    Possibly worth checking whether the reporter's session also logs a tray failure at startup, and whether system_tray = disabled changes the behavior.

    Stalled: tray enabled (log ends at the token load)
    [2026-10-11 21:16:42.954]: Info: Sunshine version: 2026.914.233613 commit: 63d35f702ee9e362e43263742981836ec0710384
    [2026-10-11 21:16:44.008]: Warning: Failed to create system tray
    [2026-10-11 21:16:44.008]: Error: System tray is not initialized
    [...]
    [2026-10-11 21:17:19.166]: Debug: DESTINATION :: /launch
    [2026-10-11 21:17:19.166]: Info: Display device configuration is disabled. Reverting any active display device configuration.
    [2026-10-11 21:17:19.166]: Info: Trying encoder [nvenc]
    [2026-10-11 21:17:19.166]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-10-11 21:17:19.166]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-10-11 21:17:19.166]: Info: Screencasting with XDG portal
    [2026-10-11 21:17:19.166]: Debug: [pipewire] Start PW thread loop
    [2026-10-11 21:17:19.166]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-10-11 21:17:19.166]: Info: [wayland] Found display [wayland-0]
    [2026-10-11 21:17:19.173]: Debug: EGL: [NVIDIA]: version [1.5]
    [2026-10-11 21:17:19.173]: Debug: API's supported: [OpenGL_ES OpenGL]
    [2026-10-11 21:17:19.173]: Info: [pipewire] Pure NVIDIA system - DMA-BUF will be enabled for CUDA
    [2026-10-11 21:17:19.173]: Info: [portalgrab] Loaded portal restore token from disk
    
    Works: same build, system_tray = disabled (first part of the launch)
    [2026-10-12 12:04:32.877]: Info: Sunshine version: 2026.914.233613 commit: 63d35f702ee9e362e43263742981836ec0710384
    [2026-10-12 12:04:32.878]: Info: config: 'system_tray' = disabled
    [...]
    [2026-10-12 12:05:04.347]: Debug: DESTINATION :: /launch
    [2026-10-12 12:05:04.348]: Info: Display device configuration is disabled. Reverting any active display device configuration.
    [2026-10-12 12:05:04.348]: Info: Trying encoder [nvenc]
    [2026-10-12 12:05:04.348]: Error: Failed to gain CAP_SYS_ADMIN
    [2026-10-12 12:05:04.348]: Info: [misc] drop_elevated_privileges succeeded in dropping capabilities
    [2026-10-12 12:05:04.348]: Info: Screencasting with XDG portal
    [2026-10-12 12:05:04.348]: Debug: [pipewire] Start PW thread loop
    [2026-10-12 12:05:04.348]: Info: [pipewire] Requested variable frame rate (Sunshine pacing required: 16.6667ms)
    [2026-10-12 12:05:04.348]: Info: [wayland] Found display [wayland-0]
    [2026-10-12 12:05:04.351]: Debug: EGL: [NVIDIA]: version [1.5]
    [2026-10-12 12:05:04.351]: Debug: API's supported: [OpenGL_ES OpenGL]
    [2026-10-12 12:05:04.351]: Info: [pipewire] Pure NVIDIA system - DMA-BUF will be enabled for CUDA
    [2026-10-12 12:05:04.351]: Info: [portalgrab] Loaded portal restore token from disk
    [2026-10-12 12:05:04.356]: Debug: [portalgrab] RemoteDesktop CreateSession response_code: 0
    [2026-10-12 12:05:04.356]: Debug: [portalgrab] RemoteDesktop CreateSession: got session handle: /org/freedesktop/portal/desktop/session/1_510/Sunshine10
    [2026-10-12 12:05:04.359]: Debug: [portalgrab] SelectDevices response_code: 0
    [2026-10-12 12:05:04.359]: Debug: [portalgrab] SelectSources response_code: 0
    [2026-10-12 12:05:04.368]: Debug: [portalgrab] RemoteDesktop Start response_code: 0
    [2026-10-12 12:05:04.368]: Info: [wayland] Found display [wayland-0]
    [2026-10-12 12:05:04.368]: Debug: [wayland] Available interface: wl_compositor(1) version 6
    [2026-10-12 12:05:04.368]: Debug: [wayland] Available interface: wl_eglstream_display(2) version 1
    [2026-10-12 12:05:04.368]: Debug: [wayland] Available interface: wl_drm(3) version 2
    [2026-10-12 12:05:04.368]: Debug: [wayland] Available interface: wl_shm(4) version 2
    [2026-10-12 12:05:04.368]: Debug: [wayland] Available interface: wl_output(5) version 4
    [2026-10-12 12:05:04.368]: Info: [wayland] Found interface: wl_output(5) version 4
    [2026-10-12 12:05:04.368]: Debug: [wayland] Available interface: zxdg_output_manager_v1(6) version 3
    [2026-10-12 12:05:04.368]: Info: [wayland] Found interface: zxdg_output_manager_v1(6) version 3
    
  6. NovaStorm775 commented on Oct 16, 2026

    @NovaStorm775
    Author

    That was a massive help! I have disabled system tray in the config as you suggested, and going forwards, assume it is disabled. Now it launches but the video stream is corrupt.

    If I run Sunshine from my physical desktop and then connect to it through Moonlight from my phone or laptop (launching steam big picture as my test), I get Audio through the client device, however the image looks like this (not static, it is dynamic but it is corrupted / broken).
    Image

    Then, then when I tested the second use case which is: connecting from the client, to my desktop through the remote login session (no physical display), launching sunshine and then switching to Moonlight on the client device, This resulted in a similar problem, Audio carried through but I was stuck with a green screen with no image rendering at all.

    One issue is, it seems to be selecting the wrong GPU within my system. I have a DGPU and an IGPU whereas it is selecting the IGPU for the remote login render path. Is it possible to force it to use my 7900 XTX?

    Log formatted for clarity:

    <...
    [2026-10-16 23:56:20.144]: Info: [pipewire] PipeWire stream state: paused -> streaming
    [2026-10-16 23:56:20.149]: Info: Creating encoder [h264_vulkan]
    [2026-10-16 23:56:20.149]: Info: Color coding: SDR (Rec. 601)
    [2026-10-16 23:56:20.149]: Info: Color depth: 8-bit
    [2026-10-16 23:56:20.149]: Info: Color range: JPEG
    [2026-10-16 23:56:20.166]: Info: Streaming bitrate is 1000000
    
    [2026-10-16 23:56:20.167]: Info: Vulkan encode using GPU: AMD Ryzen 9 7950X 16-Core Processor (RADV RAPHAEL_MENDOCINO)
    [2026-10-16 23:56:20.174]: Error: Invalid value at rbsp_stop_one_bit: bitstream ended.
    [2026-10-16 23:56:20.174]: Error: Failed to read unit 4 (type 12): Invalid data found when processing input.
    [2026-10-16 23:56:20.174]: Error: Couldn't read packet: Invalid data found when processing input
    
    [2026-10-16 23:56:20.177]: Info: Creating encoder [hevc_vulkan]
    [2026-10-16 23:56:20.177]: Info: Color coding: SDR (Rec. 601)
    [2026-10-16 23:56:20.177]: Info: Color depth: 8-bit
    [2026-10-16 23:56:20.177]: Info: Color range: JPEG
    [2026-10-16 23:56:20.192]: Info: Streaming bitrate is 1000000
    [2026-10-16 23:56:20.192]: Info: Vulkan encode using GPU: AMD Ryzen 9 7950X 16-Core Processor (RADV RAPHAEL_MENDOCINO)
    [2026-10-16 23:56:20.201]: Info: Creating encoder [av1_vulkan]
    ...>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions