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

If KMS capture method is selected, wrong monitor is streamed #3642

Closed
2 tasks done
the-nexi opened this issue Feb 6, 2025 · 1 comment
Closed
2 tasks done

If KMS capture method is selected, wrong monitor is streamed #3642

the-nexi opened this issue Feb 6, 2025 · 1 comment

Comments

@the-nexi
Copy link

the-nexi commented Feb 6, 2025

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

If KMS is selected as capture method in advanced --> Force a Specific Capture Method external HDMI monitor is streamed, despite internal eDP monitor is selected in the settings. If X11 streaming method is selected, correct monitor is streamed.

Environment: Arch linux, i3wm

Bug is present confirmed to be present in AUR build and appimage.

Expected Behavior

Stream correct monitor.

Additional Context

No response

Host Operating System

Linux

Operating System Version

Arch linux, i3wm

Architecture

amd64/x86_64

Sunshine commit or version

2025.122.141614

Package

Linux - AUR (Third Party)

GPU Type

AMD

GPU Model

AMD Ryzen 5 4600H integrated graphics / Renoir [Radeon Vega Series / Radeon Vega Mobile Series]

GPU Driver/Mesa Version

AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)

Capture Method

KMS (Linux)

Config

Apps

Relevant log output

[2025-02-06 20:25:59.503]: Info: Sunshine version: 2025.122.141614
[2025-02-06 20:25:59.503]: Info: Package Publisher: Third Party Publisher
[2025-02-06 20:25:59.503]: Info: Publisher Website: 
[2025-02-06 20:25:59.503]: Info: Get support: https://app.lizardbyte.dev/support
[2025-02-06 20:25:59.506]: Info: /dev/dri/card1 -> amdgpu
[2025-02-06 20:25:59.506]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2025-02-06 20:25:59.529]: Warning: Gamepad ds5 is disabled due to Отказано в доступе
[2025-02-06 20:25:59.529]: Info: Trying encoder [vaapi]
[2025-02-06 20:25:59.529]: Info: Screencasting with KMS
[2025-02-06 20:25:59.529]: Info: /dev/dri/card1 -> amdgpu
[2025-02-06 20:25:59.529]: Info: Found monitor for DRM screencasting
[2025-02-06 20:25:59.529]: Info: Found connector ID [95]
[2025-02-06 20:25:59.530]: Info: Found cursor plane [74]
[2025-02-06 20:25:59.547]: Info: Creating encoder [h264_vaapi]
[2025-02-06 20:25:59.548]: Info: Color coding: SDR (Rec. 601)
[2025-02-06 20:25:59.548]: Info: Color depth: 8-bit
[2025-02-06 20:25:59.548]: Info: Color range: JPEG
[2025-02-06 20:25:59.564]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:25:59.567]: Info: Using normal encoding mode
[2025-02-06 20:25:59.567]: Info: Using default rate control
[2025-02-06 20:25:59.596]: Info: Creating encoder [hevc_vaapi]
[2025-02-06 20:25:59.597]: Info: Color coding: SDR (Rec. 601)
[2025-02-06 20:25:59.597]: Info: Color depth: 8-bit
[2025-02-06 20:25:59.597]: Info: Color range: JPEG
[2025-02-06 20:25:59.611]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:25:59.613]: Info: Using normal encoding mode
[2025-02-06 20:25:59.613]: Info: Using default rate control
[2025-02-06 20:25:59.641]: Info: Creating encoder [av1_vaapi]
[2025-02-06 20:25:59.641]: Info: Color coding: SDR (Rec. 601)
[2025-02-06 20:25:59.641]: Info: Color depth: 8-bit
[2025-02-06 20:25:59.641]: Info: Color range: JPEG
[2025-02-06 20:25:59.654]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:25:59.655]: Error: [av1_vaapi @ 0x607a4f2beb80] No usable encoding profile found.
[2025-02-06 20:25:59.656]: Error: Could not open codec [av1_vaapi]: Функция не реализована
[2025-02-06 20:25:59.659]: Info: Screencasting with KMS
[2025-02-06 20:25:59.659]: Info: /dev/dri/card1 -> amdgpu
[2025-02-06 20:25:59.659]: Info: Found monitor for DRM screencasting
[2025-02-06 20:25:59.659]: Info: Found connector ID [95]
[2025-02-06 20:25:59.660]: Info: Found cursor plane [74]
[2025-02-06 20:25:59.667]: Info: Creating encoder [hevc_vaapi]
[2025-02-06 20:25:59.668]: Info: Color coding: SDR (Rec. 709)
[2025-02-06 20:25:59.668]: Info: Color depth: 10-bit
[2025-02-06 20:25:59.668]: Info: Color range: JPEG
[2025-02-06 20:25:59.682]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:25:59.684]: Info: Using normal encoding mode
[2025-02-06 20:25:59.684]: Info: Using default rate control
[2025-02-06 20:25:59.715]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-02-06 20:25:59.715]: Info: 
[2025-02-06 20:25:59.715]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-02-06 20:25:59.715]: Info: 
[2025-02-06 20:25:59.715]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2025-02-06 20:25:59.715]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2025-02-06 20:25:59.717]: Info: Configuration UI available at [https://localhost:47990]
[2025-02-06 20:25:59.717]: Info: Adding avahi service rebel
[2025-02-06 20:25:59.982]: Info: System tray created
[2025-02-06 20:26:00.509]: Info: Avahi service rebel successfully established.
[2025-02-06 20:26:08.409]: Info: Trying encoder [vaapi]
[2025-02-06 20:26:08.409]: Info: Screencasting with KMS
[2025-02-06 20:26:08.409]: Info: /dev/dri/card1 -> amdgpu
[2025-02-06 20:26:08.409]: Info: Found monitor for DRM screencasting
[2025-02-06 20:26:08.409]: Info: Found connector ID [95]
[2025-02-06 20:26:08.410]: Info: Found cursor plane [74]
[2025-02-06 20:26:08.421]: Info: Creating encoder [h264_vaapi]
[2025-02-06 20:26:08.421]: Info: Color coding: SDR (Rec. 601)
[2025-02-06 20:26:08.421]: Info: Color depth: 8-bit
[2025-02-06 20:26:08.421]: Info: Color range: JPEG
[2025-02-06 20:26:08.436]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:26:08.438]: Info: Using normal encoding mode
[2025-02-06 20:26:08.438]: Info: Using default rate control
[2025-02-06 20:26:08.471]: Info: Creating encoder [hevc_vaapi]
[2025-02-06 20:26:08.471]: Info: Color coding: SDR (Rec. 601)
[2025-02-06 20:26:08.471]: Info: Color depth: 8-bit
[2025-02-06 20:26:08.471]: Info: Color range: JPEG
[2025-02-06 20:26:08.485]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:26:08.488]: Info: Using normal encoding mode
[2025-02-06 20:26:08.488]: Info: Using default rate control
[2025-02-06 20:26:08.517]: Info: Creating encoder [av1_vaapi]
[2025-02-06 20:26:08.517]: Info: Color coding: SDR (Rec. 601)
[2025-02-06 20:26:08.517]: Info: Color depth: 8-bit
[2025-02-06 20:26:08.517]: Info: Color range: JPEG
[2025-02-06 20:26:08.530]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:26:08.532]: Error: [av1_vaapi @ 0x7f3208717a00] No usable encoding profile found.
[2025-02-06 20:26:08.533]: Error: Could not open codec [av1_vaapi]: Функция не реализована
[2025-02-06 20:26:08.536]: Info: Screencasting with KMS
[2025-02-06 20:26:08.536]: Info: /dev/dri/card1 -> amdgpu
[2025-02-06 20:26:08.536]: Info: Found monitor for DRM screencasting
[2025-02-06 20:26:08.536]: Info: Found connector ID [95]
[2025-02-06 20:26:08.537]: Info: Found cursor plane [74]
[2025-02-06 20:26:08.544]: Info: Creating encoder [hevc_vaapi]
[2025-02-06 20:26:08.544]: Info: Color coding: SDR (Rec. 709)
[2025-02-06 20:26:08.544]: Info: Color depth: 10-bit
[2025-02-06 20:26:08.544]: Info: Color range: JPEG
[2025-02-06 20:26:08.558]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:26:08.560]: Info: Using normal encoding mode
[2025-02-06 20:26:08.560]: Info: Using default rate control
[2025-02-06 20:26:08.593]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-02-06 20:26:08.593]: Info: 
[2025-02-06 20:26:08.593]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-02-06 20:26:08.593]: Info: 
[2025-02-06 20:26:08.593]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2025-02-06 20:26:08.593]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2025-02-06 20:26:08.593]: Info: Executing [Desktop]
[2025-02-06 20:26:08.613]: Info: New streaming session started [active sessions: 1]
[2025-02-06 20:26:08.625]: Info: CLIENT CONNECTED
[2025-02-06 20:26:08.626]: Info: /dev/dri/card1 -> amdgpu
[2025-02-06 20:26:08.626]: Info: Screencasting with KMS
[2025-02-06 20:26:08.626]: Info: /dev/dri/card1 -> amdgpu
[2025-02-06 20:26:08.627]: Info: Found monitor for DRM screencasting
[2025-02-06 20:26:08.627]: Info: Found connector ID [95]
[2025-02-06 20:26:08.627]: Info: Found cursor plane [74]
[2025-02-06 20:26:08.636]: Info: Creating encoder [h264_vaapi]
[2025-02-06 20:26:08.636]: Info: Color coding: SDR (Rec. 601)
[2025-02-06 20:26:08.636]: Info: Color depth: 8-bit
[2025-02-06 20:26:08.636]: Info: Color range: MPEG
[2025-02-06 20:26:08.651]: Info: vaapi vendor: Mesa Gallium driver 24.3.4-arch1.1 for AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.59, 6.12.12-1-lts)
[2025-02-06 20:26:08.654]: Info: Using normal encoding mode
[2025-02-06 20:26:08.654]: Info: Using default rate control
[2025-02-06 20:26:09.151]: Info: Setting default sink to: [sink-sunshine-surround51]
[2025-02-06 20:26:09.152]: Info: Found default monitor by name: sink-sunshine-surround51.monitor
[2025-02-06 20:26:09.188]: Info: Opus initialized: 48 kHz, 6 channels, 1536 kbps (total), LOWDELAY
@the-nexi
Copy link
Author

the-nexi commented Feb 6, 2025

Verbose logs are at the following pastebin: https://pb.envs.net/?3a844eca3fd8e16c#AkMrNoQvtF5mCFrQWbxaKSkvTULFEYAp7JZT3LfF6nkH

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

2 participants