Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find monitor #3538

Open
2 tasks done
luckydevil13 opened this issue Jan 15, 2025 · 17 comments
Open
2 tasks done

Couldn't find monitor #3538

luckydevil13 opened this issue Jan 15, 2025 · 17 comments

Comments

@luckydevil13
Copy link

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?

This issue is present in the latest pre-release

Describe the Bug

cant find monitor but in GUI it's available

Info: Detecting displays
Info: Detected display: DVI-D-0 (id: 0) connected: false
Info: Detected display: HDMI-0 (id: 1) connected: true
Info: Detected display: DP-0 (id: 2) connected: true
Info: Detected display: DP-1 (id: 3) connected: false
Info: Detected display: DVI-D-1 (id: 4) connected: false

Expected Behavior

monitor should be found

Additional Context

latest docker compose image

services:
  sunshine:
    image: lizardbyte/sunshine:master-archlinux
    container_name: sunshine
    restart: unless-stopped
    network_mode: host
    privileged: true
    cap_add:
      - CAP_SYS_ADMIN
      - SYS_ADMIN
    volumes:
      - ./config:/config
    environment:
      - PUID=1000
      - PGID=1000
    security_opt:
      - seccomp=unconfined
    devices:
      - /dev/dri
      - /dev/kfd
    group_add:
      - video
    ipc: host

Host Operating System

Docker

Operating System Version

Linux archlinux 6.6.70-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 09 Jan 2025 13:22:24 +0000 x86_64 GNU/Linux

Architecture

amd64/x86_64

Sunshine commit or version

v2025.115.154312-archlinux

Package

Linux - Docker

GPU Type

AMD

GPU Model

7900 gre

GPU Driver/Mesa Version

lastest stable in arch linux

Capture Method

KMS (Linux)

Config

default with monitor id 2

Apps

Relevant log output

root@archlinux sunshine]# docker-compose up
[+] Running 1/1
 ✔ Container sunshine  Created                                                                                                                                                     0.0s
Attaching to sunshine
sunshine  | [min_log_level] -- [0]
sunshine  | [output_name] -- [2]
sunshine  | [adapter_name] -- [/dev/dri/renderD128]
sunshine  | [2025-01-15 20:35:22.481]: Info: Sunshine version: v2025.115.154312
sunshine  | [2025-01-15 20:35:22.481]: Info: Package Publisher: LizardByte
sunshine  | [2025-01-15 20:35:22.482]: Info: Publisher Website: https://app.lizardbyte.dev
sunshine  | [2025-01-15 20:35:22.482]: Info: Get support: https://app.lizardbyte.dev/support
sunshine  | [2025-01-15 20:35:22.483]: Error: Couldn't load cuda: -1
sunshine  | Cannot load libcuda.so.1
sunshine  | [2025-01-15 20:35:22.483]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:22.483]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:22.483]: Warning: Failed to create system tray
sunshine  | [2025-01-15 20:35:22.483]: Debug: crtc(0, 0)
sunshine  | [2025-01-15 20:35:22.483]: Debug: crtc(1280, 720)
sunshine  | [2025-01-15 20:35:22.483]: Debug: plane->possible_crtcs == 2
sunshine  | [2025-01-15 20:35:22.483]: Debug: x(0) y(0) crtc_x(0) crtc_y(0) crtc_id(83)
sunshine  | [2025-01-15 20:35:22.483]: Debug: Resolution: 1280x720: Pitch: 5120: Offset: 0
sunshine  | [2025-01-15 20:35:22.483]: Debug: Format [XR24, AR24, RA24, XR30, XB30, AR30, AB30, XR48, XB48, AR48, AB48, XB24, AB24, RG16, NV12, P010, XR4H, AR4H, XB4H, AB4H]
sunshine  | [2025-01-15 20:35:22.483]: Debug: crtc(0, 0)
sunshine  | [2025-01-15 20:35:22.483]: Debug: crtc(2560, 1440)
sunshine  | [2025-01-15 20:35:22.483]: Debug: plane->possible_crtcs == 1
sunshine  | [2025-01-15 20:35:22.483]: Debug: x(0) y(0) crtc_x(0) crtc_y(0) crtc_id(79)
sunshine  | [2025-01-15 20:35:22.483]: Debug: Resolution: 2560x1440: Pitch: 10240: Offset: 0
sunshine  | [2025-01-15 20:35:22.483]: Debug: Format [XR24, AR24, RA24, XR30, XB30, AR30, AB30, XR48, XB48, AR48, AB48, XB24, AB24, RG16, NV12, P010, XR4H, AR4H, XB4H, AB4H]
sunshine  | [2025-01-15 20:35:22.483]: Error: Environment variable WAYLAND_DISPLAY has not been defined
sunshine  | [2025-01-15 20:35:22.483]: Debug: Monitor description
sunshine  | [2025-01-15 20:35:22.483]: Debug: Resolution: 0x0
sunshine  | [2025-01-15 20:35:22.483]: Debug: Offset: 0x0
sunshine  | [2025-01-15 20:35:22.483]: Debug: Monitor description
sunshine  | [2025-01-15 20:35:22.483]: Debug: Resolution: 2560x1440
sunshine  | [2025-01-15 20:35:22.483]: Debug: Offset: 0x0
sunshine  | [2025-01-15 20:35:22.483]: Debug: Monitor description
sunshine  | [2025-01-15 20:35:22.483]: Debug: Resolution: 1280x720
sunshine  | [2025-01-15 20:35:22.483]: Debug: Offset: 0x0
sunshine  | [2025-01-15 20:35:22.483]: Debug: Desktop resolution: 2560x1440
sunshine  | [2025-01-15 20:35:22.500]: Warning: Unable to create virtual mouse: Permission denied
sunshine  | [2025-01-15 20:35:22.500]: Warning: Unable to create virtual keyboard: Permission denied
sunshine  | [2025-01-15 20:35:22.500]: Warning: Gamepad xone is disabled due to Permission denied
sunshine  | [2025-01-15 20:35:22.500]: Warning: Gamepad ds5 is disabled due to Permission denied
sunshine  | [2025-01-15 20:35:22.500]: Warning: Gamepad switch is disabled due to Permission denied
sunshine  | [2025-01-15 20:35:22.500]: Warning: No gamepad input is available
sunshine  | [2025-01-15 20:35:22.500]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
sunshine  | [2025-01-15 20:35:22.500]: Info: Trying encoder [nvenc]
sunshine  | [2025-01-15 20:35:22.500]: Info: Screencasting with KMS
sunshine  | [2025-01-15 20:35:22.500]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:22.500]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:22.500]: Debug: "card1" is not a CUDA device
sunshine  | [2025-01-15 20:35:22.500]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:22.500]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:22.500]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:22.500]: Debug: "card1" is not a CUDA device
sunshine  | [2025-01-15 20:35:22.500]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:22.700]: Info: Screencasting with KMS
sunshine  | [2025-01-15 20:35:22.700]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:22.700]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:22.700]: Debug: "card1" is not a CUDA device
sunshine  | [2025-01-15 20:35:22.701]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:22.701]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:22.701]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:22.701]: Debug: "card1" is not a CUDA device
sunshine  | [2025-01-15 20:35:22.701]: **Error: Couldn't find monitor [2]**
sunshine  | [2025-01-15 20:35:22.901]: Info: Encoder [nvenc] failed
sunshine  | [2025-01-15 20:35:22.901]: Info: Trying encoder [vaapi]
sunshine  | [2025-01-15 20:35:22.901]: Info: Screencasting with KMS
sunshine  | [2025-01-15 20:35:22.901]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:22.901]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:22.901]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:22.901]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:22.901]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:22.901]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:23.101]: Info: Screencasting with KMS
sunshine  | [2025-01-15 20:35:23.101]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:23.101]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:23.102]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:23.102]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:23.102]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:23.102]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:23.302]: Info: Encoder [vaapi] failed
sunshine  | [2025-01-15 20:35:23.302]: Info: Trying encoder [software]
sunshine  | [2025-01-15 20:35:23.302]: Info: Screencasting with KMS
sunshine  | [2025-01-15 20:35:23.302]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:23.302]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:23.303]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:23.503]: Info: Screencasting with KMS
sunshine  | [2025-01-15 20:35:23.503]: Info: /dev/dri/card1 -> amdgpu
sunshine  | [2025-01-15 20:35:23.503]: Debug: Opening render node: /dev/dri/renderD128
sunshine  | [2025-01-15 20:35:23.503]: Error: Couldn't find monitor [2]
sunshine  | [2025-01-15 20:35:23.703]: Info: Encoder [software] failed
sunshine  | [2025-01-15 20:35:23.703]: Fatal: Unable to find display or encoder during startup.
sunshine  | [2025-01-15 20:35:23.703]: Fatal: Please ensure your manually chosen GPU and monitor are connected and powered on.
sunshine  | [2025-01-15 20:35:23.703]: Error: Video failed to find working encoder
sunshine  | [2025-01-15 20:35:23.703]: Error: Failed to create client: Daemon not running
sunshine  | [2025-01-15 20:35:23.704]: Info: Configuration UI available at [https://localhost:47990]
@SourceCodeDeleted
Copy link

SourceCodeDeleted commented Jan 17, 2025

I have this same error it seems :

Error: Couldn't find monitor [0]
...
...
Warning: Monitor  doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU

I receive black screen when connecting and the only real changes which I have made are I updated moonlight and sunshine.

I am on linux.

UPDATE:

If I change the capture method to X11, it will work, so this makes me think there is some issue with NVIDIA drivers. I will update them shortly.

UPDATE: I updated my drivers to no success. I will revert back to older version.

UPDATE: rolling back failed for some reason. I just downloaded one of the pre releases and it seems to be resolved there.

@orangex
Copy link

orangex commented Jan 21, 2025

Facing the same issue. Sunshine now streams the default primary display instead of the one (a dummy hdmi plug ) I specificed with device name (something like //.//Display2)in the previous version. In the latest version, it's asking for display device ID but I can't find it in the log.

[2025-01-21 13:20:52.280]: Info: Sunshine version: v2025.118.151840
[2025-01-21 13:20:52.281]: Info: Package Publisher: LizardByte
[2025-01-21 13:20:52.281]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-01-21 13:20:52.281]: Info: Get support: https://app.lizardbyte.dev/support
[2025-01-21 13:20:52.281]: Info: Provided workaround settings for SettingsManager:
{
  "hdr_blank_delay": null
}
[2025-01-21 13:20:52.281]: Error: Failed to collect path source data or none was available!
[2025-01-21 13:20:52.281]: Info: Currently available display devices:
[]
[2025-01-21 13:20:52.281]: Error: Failed to collect path source data or none was available!
[2025-01-21 13:20:52.297]: Error: nvprefs: NvAPI error: NVAPI_API_NOT_INITIALIZED
[2025-01-21 13:20:52.297]: Error: nvprefs: NvAPI_DRS_CreateSession() failed
[2025-01-21 13:20:52.299]: Info: Compiling shaders...
[2025-01-21 13:20:52.314]: Info: System tray created
[2025-01-21 13:20:52.380]: Info: Compiled shaders
[2025-01-21 13:20:52.390]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-01-21 13:20:52.390]: Info: Trying encoder [nvenc]
[2025-01-21 13:20:52.521]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:20:52.522]: Info: Active GPU has HAGS enabled
[2025-01-21 13:20:52.522]: Info: Using realtime GPU priority
[2025-01-21 13:20:52.522]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:20:52.522]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:20:52.522]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:20:52.522]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:20:52.522]: Info: Requested frame rate [60fps]
[2025-01-21 13:20:52.523]: Info: Encoder [nvenc] is not supported on this GPU
[2025-01-21 13:20:52.533]: Info: Trying encoder [quicksync]
[2025-01-21 13:20:52.625]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:20:52.625]: Info: Active GPU has HAGS enabled
[2025-01-21 13:20:52.625]: Info: Using realtime GPU priority
[2025-01-21 13:20:52.625]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:20:52.626]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:20:52.626]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:20:52.626]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:20:52.626]: Info: Requested frame rate [60fps]
[2025-01-21 13:20:52.627]: Info: Encoder [quicksync] is not supported on this GPU
[2025-01-21 13:20:52.636]: Info: Trying encoder [amdvce]
[2025-01-21 13:20:52.725]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:20:52.726]: Info: Active GPU has HAGS enabled
[2025-01-21 13:20:52.726]: Info: Using realtime GPU priority
[2025-01-21 13:20:52.726]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:20:52.727]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:20:52.727]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:20:52.727]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:20:52.727]: Info: Requested frame rate [60fps]
[2025-01-21 13:20:52.731]: Info: Creating encoder [h264_amf]
[2025-01-21 13:20:52.731]: Info: Color coding: SDR (Rec. 601)
[2025-01-21 13:20:52.731]: Info: Color depth: 8-bit
[2025-01-21 13:20:52.731]: Info: Color range: JPEG
[2025-01-21 13:20:52.804]: Info: Creating encoder [hevc_amf]
[2025-01-21 13:20:52.804]: Info: Color coding: SDR (Rec. 601)
[2025-01-21 13:20:52.804]: Info: Color depth: 8-bit
[2025-01-21 13:20:52.804]: Info: Color range: JPEG
[2025-01-21 13:20:52.877]: Info: Creating encoder [av1_amf]
[2025-01-21 13:20:52.877]: Info: Color coding: SDR (Rec. 601)
[2025-01-21 13:20:52.877]: Info: Color depth: 8-bit
[2025-01-21 13:20:52.877]: Info: Color range: JPEG
[2025-01-21 13:20:53.037]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:20:53.037]: Info: Active GPU has HAGS enabled
[2025-01-21 13:20:53.037]: Info: Using realtime GPU priority
[2025-01-21 13:20:53.037]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:20:53.038]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:20:53.038]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:20:53.038]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:20:53.038]: Info: Requested frame rate [60fps]
[2025-01-21 13:20:53.041]: Info: Creating encoder [hevc_amf]
[2025-01-21 13:20:53.041]: Info: Color coding: SDR (Rec. 709)
[2025-01-21 13:20:53.041]: Info: Color depth: 10-bit
[2025-01-21 13:20:53.041]: Info: Color range: JPEG
[2025-01-21 13:20:53.114]: Info: Creating encoder [av1_amf]
[2025-01-21 13:20:53.114]: Info: Color coding: SDR (Rec. 709)
[2025-01-21 13:20:53.114]: Info: Color depth: 10-bit
[2025-01-21 13:20:53.114]: Info: Color range: JPEG
[2025-01-21 13:20:53.189]: Info: 
[2025-01-21 13:20:53.189]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-01-21 13:20:53.189]: Info: 
[2025-01-21 13:20:53.189]: Info: Found H.264 encoder: h264_amf [amdvce]
[2025-01-21 13:20:53.189]: Info: Found HEVC encoder: hevc_amf [amdvce]
[2025-01-21 13:20:53.189]: Info: Found AV1 encoder: av1_amf [amdvce]
[2025-01-21 13:20:53.192]: Info: Configuration UI available at [https://localhost:47990]
[2025-01-21 13:20:53.976]: Info: Registered Sunshine mDNS service
[2025-01-21 13:20:57.296]: Error: Failed to collect path source data or none was available!
[2025-01-21 13:21:02.313]: Error: Failed to collect path source data or none was available!
[2025-01-21 13:21:04.593]: Info: Trying to apply display device settings. API is available: true
[2025-01-21 13:21:04.593]: Info: Using the following configuration:
{
  "device_id": "",
  "device_prep": "VerifyOnly",
  "hdr_state": "Disabled",
  "refresh_rate": {
    "type": "rational",
    "value": {
      "denominator": 1,
      "numerator": 60
    }
  },
  "resolution": {
    "height": 1964,
    "width": 3024
  }
}
[2025-01-21 13:21:04.593]: Warning: Topology input is empty!
[2025-01-21 13:21:04.593]: Error: Retrieved current topology is invalid:
[]
[2025-01-21 13:21:04.594]: Info: Encoder reenumeration is required
[2025-01-21 13:21:04.594]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-01-21 13:21:04.594]: Info: Trying encoder [nvenc]
[2025-01-21 13:21:04.683]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:21:04.683]: Info: Active GPU has HAGS enabled
[2025-01-21 13:21:04.683]: Info: Using realtime GPU priority
[2025-01-21 13:21:04.683]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:21:04.684]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:21:04.684]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:21:04.684]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:21:04.684]: Info: Requested frame rate [60fps]
[2025-01-21 13:21:04.685]: Info: Encoder [nvenc] is not supported on this GPU
[2025-01-21 13:21:04.695]: Info: Trying encoder [quicksync]
[2025-01-21 13:21:04.810]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:21:04.810]: Info: Active GPU has HAGS enabled
[2025-01-21 13:21:04.810]: Info: Using realtime GPU priority
[2025-01-21 13:21:04.810]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:21:04.811]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:21:04.811]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:21:04.811]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:21:04.811]: Info: Requested frame rate [60fps]
[2025-01-21 13:21:04.812]: Info: Encoder [quicksync] is not supported on this GPU
[2025-01-21 13:21:04.822]: Info: Trying encoder [amdvce]
[2025-01-21 13:21:04.944]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:21:04.945]: Info: Active GPU has HAGS enabled
[2025-01-21 13:21:04.945]: Info: Using realtime GPU priority
[2025-01-21 13:21:04.945]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:21:04.945]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:21:04.945]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:21:04.945]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:21:04.945]: Info: Requested frame rate [60fps]
[2025-01-21 13:21:04.950]: Info: Creating encoder [h264_amf]
[2025-01-21 13:21:04.950]: Info: Color coding: SDR (Rec. 601)
[2025-01-21 13:21:04.950]: Info: Color depth: 8-bit
[2025-01-21 13:21:04.950]: Info: Color range: JPEG
[2025-01-21 13:21:05.042]: Info: Creating encoder [hevc_amf]
[2025-01-21 13:21:05.042]: Info: Color coding: SDR (Rec. 601)
[2025-01-21 13:21:05.042]: Info: Color depth: 8-bit
[2025-01-21 13:21:05.042]: Info: Color range: JPEG
[2025-01-21 13:21:05.135]: Info: Creating encoder [av1_amf]
[2025-01-21 13:21:05.135]: Info: Color coding: SDR (Rec. 601)
[2025-01-21 13:21:05.136]: Info: Color depth: 8-bit
[2025-01-21 13:21:05.136]: Info: Color range: JPEG
[2025-01-21 13:21:05.354]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:21:05.355]: Info: Active GPU has HAGS enabled
[2025-01-21 13:21:05.355]: Info: Using realtime GPU priority
[2025-01-21 13:21:05.355]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:21:05.355]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:21:05.355]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:21:05.355]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:21:05.355]: Info: Requested frame rate [60fps]
[2025-01-21 13:21:05.359]: Info: Creating encoder [hevc_amf]
[2025-01-21 13:21:05.359]: Info: Color coding: SDR (Rec. 709)
[2025-01-21 13:21:05.359]: Info: Color depth: 10-bit
[2025-01-21 13:21:05.359]: Info: Color range: JPEG
[2025-01-21 13:21:05.454]: Info: Creating encoder [av1_amf]
[2025-01-21 13:21:05.454]: Info: Color coding: SDR (Rec. 709)
[2025-01-21 13:21:05.454]: Info: Color depth: 10-bit
[2025-01-21 13:21:05.454]: Info: Color range: JPEG
[2025-01-21 13:21:05.559]: Info: 
[2025-01-21 13:21:05.559]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-01-21 13:21:05.559]: Info: 
[2025-01-21 13:21:05.559]: Info: Found H.264 encoder: h264_amf [amdvce]
[2025-01-21 13:21:05.559]: Info: Found HEVC encoder: hevc_amf [amdvce]
[2025-01-21 13:21:05.559]: Info: Found AV1 encoder: av1_amf [amdvce]
[2025-01-21 13:21:05.559]: Info: Executing [Desktop]
[2025-01-21 13:21:05.670]: Info: New streaming session started [active sessions: 1]
[2025-01-21 13:21:05.680]: Error: nvprefs: NvAPI error: NVAPI_API_NOT_INITIALIZED
[2025-01-21 13:21:05.680]: Error: nvprefs: NvAPI_DRS_CreateSession() failed
[2025-01-21 13:21:05.711]: Info: CLIENT CONNECTED
[2025-01-21 13:21:05.909]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20396 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16290 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x4320
[2025-01-21 13:21:05.909]: Info: Active GPU has HAGS enabled
[2025-01-21 13:21:05.909]: Info: Using realtime GPU priority
[2025-01-21 13:21:05.909]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.681641,0.310547]
Green Primary      : [0.233398,0.691406]
Blue Primary       : [0.149414,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.17 nits
Max Luminance      : 1015 nits
Max Full Luminance : 1015 nits
[2025-01-21 13:21:05.910]: Info: Desktop resolution [3840x2160]
[2025-01-21 13:21:05.910]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:21:05.910]: Info: Display refresh rate [59.9401Hz]
[2025-01-21 13:21:05.910]: Info: Requested frame rate [60fps]
[2025-01-21 13:21:05.911]: Info: Adjusted capture rate to 59.9401fps to better match display
[2025-01-21 13:21:05.911]: Info: Creating encoder [h264_amf]
[2025-01-21 13:21:05.911]: Info: Color coding: SDR (Rec. 601)
[2025-01-21 13:21:05.911]: Info: Color depth: 8-bit
[2025-01-21 13:21:05.911]: Info: Color range: MPEG
[2025-01-21 13:21:05.928]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-21 13:21:06.217]: Info: Audio capture format is [F32 48000 2.0]
[2025-01-21 13:21:06.218]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY

@techdregs
Copy link

techdregs commented Jan 21, 2025

I'm seeing something similar. It just changed in the past few days, because everything was working fine as of 4 days ago. Today, Sunshine only works if I have monitors on.

Fedora 41, KDE, Wayland.

[2025-01-21 16:32:18.401]: Info: Sunshine version: v2025.118.151840
[2025-01-21 16:32:18.401]: Info: Package Publisher: LizardByte
[2025-01-21 16:32:18.402]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-01-21 16:32:18.402]: Info: Get support: https://app.lizardbyte.dev/support
[2025-01-21 16:32:18.437]: Info: System tray created
[2025-01-21 16:32:18.561]: Error: Failed to create session: 
[2025-01-21 16:32:18.561]: Info: Found display [wayland-0]
[2025-01-21 16:32:18.616]: Info: Found interface: zxdg_output_manager_v1(31) version 3
[2025-01-21 16:32:18.616]: Info: Found interface: wl_output(64) version 4
[2025-01-21 16:32:18.616]: Warning: Missing Wayland wire for wlr-export-dmabuf
[2025-01-21 16:32:18.616]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:18.617]: Info: Found display [wayland-0]
[2025-01-21 16:32:18.617]: Info: Found display [wayland-0]
[2025-01-21 16:32:18.617]: Info: Found interface: zxdg_output_manager_v1(31) version 3
[2025-01-21 16:32:18.617]: Info: Found interface: wl_output(64) version 4
[2025-01-21 16:32:18.617]: Info: Resolution: 3840x2160
[2025-01-21 16:32:18.617]: Info: Offset: 0x0
[2025-01-21 16:32:18.617]: Info: Logical size: 2560x1440
[2025-01-21 16:32:18.617]: Info: Name: HDMI-A-1
[2025-01-21 16:32:18.617]: Info: Found monitor: LG Electronics LG TV SSCR2/0x01010101
[2025-01-21 16:32:18.617]: Info: -------- Start of KMS monitor list --------
[2025-01-21 16:32:18.617]: Info: Monitor 0 is HDMI-A-1: LG Electronics LG TV SSCR2/0x01010101
[2025-01-21 16:32:18.617]: Info: --------- End of KMS monitor list ---------
[2025-01-21 16:32:18.673]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-01-21 16:32:18.673]: Info: Trying encoder [nvenc]
[2025-01-21 16:32:18.673]: Info: Screencasting with KMS
[2025-01-21 16:32:18.673]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:18.673]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:18.673]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:18.673]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:18.873]: Info: Screencasting with KMS
[2025-01-21 16:32:18.873]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:18.874]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:18.874]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:18.874]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:19.074]: Info: Encoder [nvenc] failed
[2025-01-21 16:32:19.074]: Info: Trying encoder [vaapi]
[2025-01-21 16:32:19.074]: Info: Screencasting with KMS
[2025-01-21 16:32:19.074]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:19.074]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:19.074]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:19.074]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:19.274]: Info: Screencasting with KMS
[2025-01-21 16:32:19.275]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:19.275]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:19.275]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:19.275]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:19.475]: Info: Encoder [vaapi] failed
[2025-01-21 16:32:19.475]: Info: Trying encoder [software]
[2025-01-21 16:32:19.475]: Info: Screencasting with KMS
[2025-01-21 16:32:19.475]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:19.475]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:19.675]: Info: Screencasting with KMS
[2025-01-21 16:32:19.675]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:32:19.676]: Error: Couldn't find monitor [1]
[2025-01-21 16:32:19.876]: Info: Encoder [software] failed
[2025-01-21 16:32:19.876]: Fatal: Unable to find display or encoder during startup.
[2025-01-21 16:32:19.876]: Fatal: Please ensure your manually chosen GPU and monitor are connected and powered on.
[2025-01-21 16:32:19.876]: Error: Video failed to find working encoder
[2025-01-21 16:32:19.878]: Info: Adding avahi service fedora
[2025-01-21 16:32:19.878]: Info: Configuration UI available at [https://localhost:47990]
[2025-01-21 16:32:20.633]: Info: Avahi service fedora successfully established.
[2025-01-21 16:40:54.206]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-01-21 16:40:54.206]: Info: Trying encoder [nvenc]
[2025-01-21 16:40:54.206]: Info: Screencasting with KMS
[2025-01-21 16:40:54.206]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:54.206]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:54.206]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:54.207]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:54.407]: Info: Screencasting with KMS
[2025-01-21 16:40:54.407]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:54.407]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:54.407]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:54.407]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:54.608]: Info: Encoder [nvenc] failed
[2025-01-21 16:40:54.608]: Info: Trying encoder [vaapi]
[2025-01-21 16:40:54.608]: Info: Screencasting with KMS
[2025-01-21 16:40:54.608]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:54.608]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:54.608]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:54.608]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:54.808]: Info: Screencasting with KMS
[2025-01-21 16:40:54.808]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:54.809]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:54.809]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:54.809]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:55.009]: Info: Encoder [vaapi] failed
[2025-01-21 16:40:55.009]: Info: Trying encoder [software]
[2025-01-21 16:40:55.009]: Info: Screencasting with KMS
[2025-01-21 16:40:55.009]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:55.009]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:55.209]: Info: Screencasting with KMS
[2025-01-21 16:40:55.209]: Info: /dev/dri/card1 -> nvidia-drm
[2025-01-21 16:40:55.210]: Error: Couldn't find monitor [1]
[2025-01-21 16:40:55.410]: Info: Encoder [software] failed
[2025-01-21 16:40:55.410]: Fatal: Unable to find display or encoder during startup.
[2025-01-21 16:40:55.410]: Fatal: Please ensure your manually chosen GPU and monitor are connected and powered on.

@luckydevil13
Copy link
Author

@techdregs last version that works for you? docker?

@techdregs
Copy link

techdregs commented Jan 22, 2025

@techdregs last version that works for you? docker?

I'm on Fedora 41. I was using the beta version from Lizardbyte's COPR repo. I think it updated this week and then stopped working. I moved over to the production repo on COPR, but had the same problem.

I also think some KDE/Wayland packages updated this week, so it could also be an issue with something changing there. Unfortunately, DNF history only shows what I installed, not what was updated. Haven't found a good way to audit what changed.

I literally made a video 5 days ago of it working, showing people how to install it. LOL. https://youtu.be/dTOYT-H1noE

@ReenigneArcher
Copy link
Member

I think it updated this week and then stopped working

Updated from what version?

@ReenigneArcher
Copy link
Member

cant find monitor but in GUI it's available

What's shown in the GUI is an example, I'm pretty sure that's indicated.

@techdregs
Copy link

I think it updated this week and then stopped working

Updated from what version?

Looks like it was 2025.117.10037-1.fc41.x86_64.

@ReenigneArcher
Copy link
Member

2025.117.10037 was this PR: #3539

I don't see anything merged after that, which could cause this problem.

Between that version, and the stable release, this is all there is.

Image

@techdregs
Copy link

2025.117.10037 was this PR: #3539

I don't see anything merged after that, which could cause this problem.

Between that version, and the stable release, this is all there is.

Image

Well, if it's an issue with something that changed on Fedora, KDE, and Wayland, I'm sure other people will pop up with issues. If not, it is likely just something specific to my machine. But I didn't change any configurations or install anything on my end, so IDK.

@KrombopulosMichael
Copy link

Sunshine has been streaming the default primary display instead of the one specified with device name since at least the november 2024 pre-release.
v0.23.1 does not have this behavior.

@ReenigneArcher
Copy link
Member

device name is no longer used

@techdregs
Copy link

2025.117.10037 was this PR: #3539

I don't see anything merged after that, which could cause this problem.

Between that version, and the stable release, this is all there is.

Not sure if it's helpful, but I found what changed on my end (I think). I had been testing several remote desktop systems. Sunshine/Moonlight was the best, so I uninstalled the rest of them.

Thinking perhaps one of them included a dependency or config change that mattered, I reinstalled the RustDesk flatpak, and boom, I can use Sunshine headlessly again. I'm not sure what that flatpak installs or changes, but it seems that it's presence allows Sunshine to work without my monitors being on, even though I'm not actually using RustDesk.

@KrombopulosMichael
Copy link

KrombopulosMichael commented Jan 24, 2025

device name is no longer used

I wrote "device name," but the field is actually called "Output Name" when read from "Sunshine\Tools\dxgi-info.exe."

In version v0.23.1, it was possible to use the "Output Name" value from "Sunshine\Tools\dxgi-info.exe" as the value for the "Output Name" field in the Audio/Video configuration of Sunshine.

However, in the newer version, Sunshine now asks for a "Display Device Id" instead. Using the "Display Device Id" from "Sunshine\Tools\dxgi-info.exe" makes it impossible to distinguish between different dummy or other displays attached to the same device. These displays can only(?) be distinguished using the "Output Name" field in "Sunshine\Tools\dxgi-info.exe."

@ReenigneArcher
Copy link
Member

The device ID is in the logs, no longer from dxgi.

That is clearly indicated in the text/description for the field and in the docs: https://docs.lizardbyte.dev/projects/sunshine/latest/md_docs_2configuration.html#output_name

@orangex
Copy link

orangex commented Jan 26, 2025

The device ID is in the logs, no longer from dxgi.

That is clearly indicated in the text/description for the field and in the docs: https://docs.lizardbyte.dev/projects/sunshine/latest/md_docs_2configuration.html#output_name

Yes, but in my case, there's no device ID in the log. Actually, there's no "Info: Currently available display devices:" part of logs.

@FrogTheFrog
Copy link
Collaborator

@ReenigneArcher it's unrelated to Windows. @orangex please create a separate issue will all of the template filled (+ verbose logs) please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants