LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
20.21k stars 972 forks source link

[ERROR] Fatal: Unable to find display or encoder during startup. #3391

Open Super-Botman opened 2 weeks ago

Super-Botman commented 2 weeks ago

Is there an existing issue for this?

Is your issue described in the documentation?

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

None

Describe the Bug

I setup sunshine on my arch linux pc and when I want to start it I get this error when I try to connect my client:

[2024:11:11:21:56:02]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:02]: Info: Encoder [software] failed
[2024:11:11:21:56:02]: Fatal: Unable to find display or encoder during startup.
[2024:11:11:21:56:02]: Fatal: Please ensure your manually chosen GPU and monitor are connected and powered on.

with this config: image

Expected Behavior

To works

Additional Context

No response

Host Operating System

Linux

Operating System Version

6.11.0-arch1-1

Architecture

amd64/x86_64

Sunshine commit or version

0.23.1

Package

Linux - AUR (Third Party)

GPU Type

Nvidia

GPU Model

GeForce RTX 4060 Ti

GPU Driver/Mesa Version

555.58

Capture Method

None

Config

No response

Apps

No response

Relevant log output

[2024:11:11:21:47:19]: Info: Sunshine version: 0.23.1
[2024:11:11:21:47:19]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:19]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:19]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:19]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:19]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:19]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:47:19]: Info: System tray created
[2024:11:11:21:47:19]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2024:11:11:21:47:19]: Info: Detecting monitors
[2024:11:11:21:47:19]: Info: Detected monitor 0: HDMI-0, connected: false
[2024:11:11:21:47:19]: Info: Detected monitor 1: DP-0, connected: false
[2024:11:11:21:47:19]: Info: Detected monitor 2: DP-1, connected: false
[2024:11:11:21:47:19]: Info: Detected monitor 3: HDMI-1, connected: true
[2024:11:11:21:47:19]: Info: Detected monitor 4: DP-2, connected: false
[2024:11:11:21:47:19]: Info: Detected monitor 5: DP-3, connected: false
[2024:11:11:21:47:19]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:11:11:21:47:19]: Info: Trying encoder [nvenc]
[2024:11:11:21:47:19]: Info: Screencasting with KMS
[2024:11:11:21:47:19]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:19]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:19]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:19]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:19]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:47:19]: Error: Couldn't find monitor [0]
[2024:11:11:21:47:19]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:19]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:19]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:19]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:19]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:47:19]: Error: Couldn't find monitor [0]
[2024:11:11:21:47:20]: Info: Screencasting with KMS
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:20]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:47:20]: Error: Couldn't find monitor [0]
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:20]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:47:20]: Error: Couldn't find monitor [0]
[2024:11:11:21:47:20]: Info: Encoder [nvenc] failed
[2024:11:11:21:47:20]: Info: Trying encoder [vaapi]
[2024:11:11:21:47:20]: Info: Screencasting with KMS
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:20]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: Found monitor for DRM screencasting
[2024:11:11:21:47:20]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:11:11:21:47:20]: Info: Found connector ID [36]
[2024:11:11:21:47:20]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:11:11:21:47:20]: Error: Couldn't initialize va display: unknown libva error
[2024:11:11:21:47:20]: Warning: Monitor  doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:20]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: Found monitor for DRM screencasting
[2024:11:11:21:47:20]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:11:11:21:47:20]: Info: Found connector ID [36]
[2024:11:11:21:47:20]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:11:11:21:47:20]: Info: SDR color coding [Rec. 601]
[2024:11:11:21:47:20]: Info: Color depth: 8-bit
[2024:11:11:21:47:20]: Info: Color range: [JPEG]
[2024:11:11:21:47:20]: Error: Couldn't initialize va display: unknown libva error
[2024:11:11:21:47:20]: Info: SDR color coding [Rec. 601]
[2024:11:11:21:47:20]: Info: Color depth: 8-bit
[2024:11:11:21:47:20]: Info: Color range: [JPEG]
[2024:11:11:21:47:20]: Error: Couldn't initialize va display: unknown libva error
[2024:11:11:21:47:20]: Info: SDR color coding [Rec. 601]
[2024:11:11:21:47:20]: Info: Color depth: 8-bit
[2024:11:11:21:47:20]: Info: Color range: [JPEG]
[2024:11:11:21:47:20]: Error: Couldn't initialize va display: unknown libva error
[2024:11:11:21:47:20]: Info: SDR color coding [Rec. 601]
[2024:11:11:21:47:20]: Info: Color depth: 8-bit
[2024:11:11:21:47:20]: Info: Color range: [JPEG]
[2024:11:11:21:47:20]: Error: Couldn't initialize va display: unknown libva error
[2024:11:11:21:47:20]: Info: Encoder [vaapi] failed
[2024:11:11:21:47:20]: Info: Trying encoder [software]
[2024:11:11:21:47:20]: Info: Screencasting with KMS
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:20]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: Found monitor for DRM screencasting
[2024:11:11:21:47:20]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:11:11:21:47:20]: Info: Found connector ID [36]
[2024:11:11:21:47:20]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:11:11:21:47:20]: Info: SDR color coding [Rec. 601]
[2024:11:11:21:47:20]: Info: Color depth: 8-bit
[2024:11:11:21:47:20]: Info: Color range: [JPEG]
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] profile High, level 4.2, 4:2:0, 8-bit
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] frame I:1     Avg QP:31.00  size:  1203
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] mb I  I16..4: 99.9%  0.0%  0.0%
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] 8x8 transform intra:0.0%
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0%
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] i16 v,h,dc,p: 97%  0%  3%  0%
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 75% 12%  0%  0%  0%  0% 12%
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] i8c dc,h,v,p: 100%  0%  0%  0%
[2024:11:11:21:47:20]: Info: [libx264 @ 0x5cd2fd62e1c0] kb/s:577.44
[2024:11:11:21:47:20]: Info: Screencasting with KMS
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:47:20]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:47:20]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:47:20]: Info: Found monitor for DRM screencasting
[2024:11:11:21:47:20]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:11:11:21:47:20]: Info: Found connector ID [36]
[2024:11:11:21:47:20]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:11:11:21:47:20]: Info: 
[2024:11:11:21:47:20]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:11:11:21:47:20]: Info: 
[2024:11:11:21:47:20]: Info: Found H.264 encoder: libx264 [software]
[2024:11:11:21:47:20]: Info: Adding avahi service Sunshine
[2024:11:11:21:47:20]: Info: Configuration UI available at [https://localhost:47990]
[2024:11:11:21:47:21]: Info: Avahi service Sunshine successfully established.
[2024:11:11:21:55:41]: Info: Interrupt handler called
[output_name] -- [1]
[adapter_name] -- [/dev/dri/renderD128]
[2024:11:11:21:55:42]: Info: Sunshine version: 0.23.1
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Info: System tray created
[2024:11:11:21:55:42]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2024:11:11:21:55:42]: Info: Detecting monitors
[2024:11:11:21:55:42]: Info: Detected monitor 0: HDMI-0, connected: false
[2024:11:11:21:55:42]: Info: Detected monitor 1: DP-0, connected: false
[2024:11:11:21:55:42]: Info: Detected monitor 2: DP-1, connected: false
[2024:11:11:21:55:42]: Info: Detected monitor 3: HDMI-1, connected: true
[2024:11:11:21:55:42]: Info: Detected monitor 4: DP-2, connected: false
[2024:11:11:21:55:42]: Info: Detected monitor 5: DP-3, connected: false
[2024:11:11:21:55:42]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:11:11:21:55:42]: Info: Trying encoder [nvenc]
[2024:11:11:21:55:42]: Info: Screencasting with KMS
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:42]: Info: Screencasting with KMS
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:42]: Info: Encoder [nvenc] failed
[2024:11:11:21:55:42]: Info: Trying encoder [vaapi]
[2024:11:11:21:55:42]: Info: Screencasting with KMS
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:42]: Info: Screencasting with KMS
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:42]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:42]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:42]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:42]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:43]: Info: Encoder [vaapi] failed
[2024:11:11:21:55:43]: Info: Trying encoder [software]
[2024:11:11:21:55:43]: Info: Screencasting with KMS
[2024:11:11:21:55:43]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:43]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:43]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:43]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:43]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:43]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:43]: Info: Screencasting with KMS
[2024:11:11:21:55:43]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:43]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:55:43]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:55:43]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:55:43]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:55:43]: Error: Couldn't find monitor [1]
[2024:11:11:21:55:43]: Info: Encoder [software] failed
[2024:11:11:21:55:43]: Fatal: Unable to find display or encoder during startup.
[2024:11:11:21:55:43]: Fatal: Please ensure your manually chosen GPU and monitor are connected and powered on.
[2024:11:11:21:55:43]: Error: Video failed to find working encoder
[2024:11:11:21:55:43]: Info: Adding avahi service Sunshine
[2024:11:11:21:55:43]: Info: Configuration UI available at [https://localhost:47990]
[2024:11:11:21:55:44]: Info: Avahi service Sunshine successfully established.
[2024:11:11:21:56:01]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:11:11:21:56:01]: Info: Trying encoder [nvenc]
[2024:11:11:21:56:01]: Info: Screencasting with KMS
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:01]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:01]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:01]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:01]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:01]: Info: Screencasting with KMS
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:01]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:01]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:01]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:01]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:01]: Info: Encoder [nvenc] failed
[2024:11:11:21:56:01]: Info: Trying encoder [vaapi]
[2024:11:11:21:56:01]: Info: Screencasting with KMS
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:01]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:01]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:01]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:01]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:01]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:01]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:02]: Info: Screencasting with KMS
[2024:11:11:21:56:02]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:02]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:02]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:02]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:02]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:02]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:02]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:02]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:02]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:02]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:02]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:02]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:02]: Info: Encoder [vaapi] failed
[2024:11:11:21:56:02]: Info: Trying encoder [software]
[2024:11:11:21:56:02]: Info: Screencasting with KMS
[2024:11:11:21:56:02]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:02]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:02]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:02]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:02]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:02]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:02]: Info: Screencasting with KMS
[2024:11:11:21:56:02]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:02]: Info: /dev/dri/card0 -> simpledrm
[2024:11:11:21:56:02]: Warning: No render device name for: /dev/dri/card0
[2024:11:11:21:56:02]: Error: Failed to gain CAP_SYS_ADMIN
[2024:11:11:21:56:02]: Info: /dev/dri/card1 -> nvidia-drm
[2024:11:11:21:56:02]: Error: Couldn't find monitor [1]
[2024:11:11:21:56:02]: Info: Encoder [software] failed
[2024:11:11:21:56:02]: Fatal: Unable to find display or encoder during startup.
[2024:11:11:21:56:02]: Fatal: Please ensure your manually chosen GPU and monitor are connected and powered on.
e-dong commented 1 week ago

I had the same issue but upgrading the latest prerelease fixed it haha https://github.com/LizardByte/Sunshine/releases/tag/v2024.1115.143556

Balaurentiu commented 10 hours ago

I had the same issue on Debian 12 running the latest version of sunshine v0.23.1 and I fixed it by disabling sunshine.service and then adding sunshine in KDE Autostart section. It seems that when sunshine is started by systemd, it cannot detect the connected monitor.