Skip to content

Black screen when forcing Vulkan encoder – appears to select iGPU instead of Nvidia GPU #4952

@moi952

Description

@moi952

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

Hi,

I ran some tests with the new Vulkan encoder (#4603) using an RTX 5070 Ti on Bazzite (KDE Plasma 6).

When I force the Vulkan encoder, I get a black screen upon connecting to the host. From the logs, it appears that Vulkan is attempting to use my CPU's integrated GPU instead of the Nvidia GPU.

I'm not entirely sure this qualifies as a bug, since most Nvidia users probably don't force the Vulkan encoder, but I thought this behavior might be useful feedback to help improve the reliability and device selection logic of the Vulkan encoder.

Environment:

  • GPU: RTX 5070 Ti
  • OS: Bazzite
  • Desktop: KDE Plasma 6
  • Encoder: Vulkan (forced)
  • Result: Black screen on connection

I've attached the logs below in case they help with troubleshooting.

Thanks again for your work on Sunshine

Expected Behavior

No response

Additional Context

No response

Host Operating System

Linux

Operating System Version

bazzite

Architecture

amd64/x86_64

Package

Linux - Fedora Copr

GPU Type

NVIDIA

GPU Model

RTX5070ti

GPU Driver/Mesa Version

595.58.03

Capture Method

None

Apps

Log output

[2026-04-04 17:08:09.738]: Info: Sunshine version: 2026.403.124357 commit: ba4db46ac0bfbe478ad017f0b388bfcb346ad8ce
[2026-04-04 17:08:09.738]: Info: Package Publisher: LizardByte
[2026-04-04 17:08:09.738]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-04-04 17:08:09.738]: Info: Get support: https://app.lizardbyte.dev/support
[2026-04-04 17:08:09.738]: Info: config: 'encoder' = vulkan
[2026-04-04 17:08:09.750]: Error: Failed to create session:
[2026-04-04 17:08:09.750]: Info: [wayland] Found display [wayland-0]
[2026-04-04 17:08:09.750]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
[2026-04-04 17:08:09.750]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(57) version 5
[2026-04-04 17:08:09.750]: Info: [wayland] Found interface: wl_output(64) version 4
[2026-04-04 17:08:09.750]: Warning: [wlgrab] Missing Wayland wire for wlr-export-dmabuf
[2026-04-04 17:08:09.750]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-04 17:08:09.750]: Info: /dev/dri/card1 -> amdgpu
[2026-04-04 17:08:09.752]: Info: [wayland] Found display [wayland-0]
[2026-04-04 17:08:09.752]: Info: [wayland] Found display [wayland-0]
[2026-04-04 17:08:09.752]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
[2026-04-04 17:08:09.752]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(57) version 5
[2026-04-04 17:08:09.752]: Info: [wayland] Found interface: wl_output(64) version 4
[2026-04-04 17:08:09.752]: Info: [wayland] Resolution: 3840x2160
[2026-04-04 17:08:09.752]: Info: [wayland] Offset: 0x0
[2026-04-04 17:08:09.752]: Info: [wayland] Logical size: 1920x1080
[2026-04-04 17:08:09.752]: Info: [wayland] Name: HDMI-A-3
[2026-04-04 17:08:09.752]: Info: [wayland] Found monitor: Technical Concepts Ltd Beyond TV
[2026-04-04 17:08:09.752]: Info: -------- Start of KMS monitor list --------
[2026-04-04 17:08:09.752]: Info: --------- End of KMS monitor list ---------
[2026-04-04 17:08:09.752]: Info: Loaded portal restore token from disk
[2026-04-04 17:08:09.862]: Info: Trying encoder [vulkan]
[2026-04-04 17:08:09.862]: Info: Screencasting with KMS
[2026-04-04 17:08:09.862]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-04 17:08:09.862]: Info: Found monitor for DRM screencasting
[2026-04-04 17:08:09.862]: Info: Found connector ID [128]
[2026-04-04 17:08:09.862]: Info: Found cursor plane [56]
[2026-04-04 17:08:09.862]: Info: Creating encoder [h264_vulkan]
[2026-04-04 17:08:09.862]: Info: Color coding: SDR (Rec. 601)
[2026-04-04 17:08:09.862]: Info: Color depth: 8-bit
[2026-04-04 17:08:09.862]: Info: Color range: JPEG
[2026-04-04 17:08:10.040]: Info: Streaming bitrate is 1000000
[2026-04-04 17:08:10.041]: Info: Vulkan encode using GPU: AMD Ryzen 7 7800X3D 8-Core Processor (RADV RAPHAEL_MENDOCINO)
[2026-04-04 17:08:10.053]: Info: Creating encoder [hevc_vulkan]
[2026-04-04 17:08:10.053]: Info: Color coding: SDR (Rec. 601)
[2026-04-04 17:08:10.053]: Info: Color depth: 8-bit
[2026-04-04 17:08:10.053]: Info: Color range: JPEG
[2026-04-04 17:08:10.222]: Info: Streaming bitrate is 1000000
[2026-04-04 17:08:10.228]: Info: Vulkan encode using GPU: AMD Ryzen 7 7800X3D 8-Core Processor (RADV RAPHAEL_MENDOCINO)
[2026-04-04 17:08:10.258]: Info: Creating encoder [av1_vulkan]
[2026-04-04 17:08:10.258]: Info: Color coding: SDR (Rec. 601)
[2026-04-04 17:08:10.258]: Info: Color depth: 8-bit
[2026-04-04 17:08:10.258]: Info: Color range: JPEG
[2026-04-04 17:08:10.437]: Info: Streaming bitrate is 1000000
[2026-04-04 17:08:10.437]: Error: [av1_vulkan @ 0x2c29df80] Device does not support encoding av1!
[2026-04-04 17:08:10.450]: Error: Could not open codec [av1_vulkan]: Function not implemented
[2026-04-04 17:08:10.450]: Info: Screencasting with KMS
[2026-04-04 17:08:10.450]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-04 17:08:10.450]: Info: Found monitor for DRM screencasting
[2026-04-04 17:08:10.450]: Info: Found connector ID [128]
[2026-04-04 17:08:10.450]: Info: Found cursor plane [56]
[2026-04-04 17:08:10.450]: Info: Creating encoder [hevc_vulkan]
[2026-04-04 17:08:10.450]: Info: Color coding: SDR (Rec. 709)
[2026-04-04 17:08:10.450]: Info: Color depth: 10-bit
[2026-04-04 17:08:10.450]: Info: Color range: JPEG
[2026-04-04 17:08:10.634]: Info: Streaming bitrate is 1000000
[2026-04-04 17:08:10.639]: Info: Vulkan encode using GPU: AMD Ryzen 7 7800X3D 8-Core Processor (RADV RAPHAEL_MENDOCINO)
[2026-04-04 17:08:10.664]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-04-04 17:08:10.664]: Info:
[2026-04-04 17:08:10.664]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-04-04 17:08:10.664]: Info:
[2026-04-04 17:08:10.664]: Info: Found H.264 encoder: h264_vulkan [vulkan]
[2026-04-04 17:08:10.664]: Info: Found HEVC encoder: hevc_vulkan [vulkan]
[2026-04-04 17:08:10.664]: Info: Starting system tray
[2026-04-04 17:08:10.669]: Info: Configuration UI available at [https://localhost:47990]
[2026-04-04 17:08:10.685]: Info: Adding avahi service bazzite
[2026-04-04 17:08:10.709]: Info: System tray created
[2026-04-04 17:08:10.709]: Info: Starting main loop
[2026-04-04 17:08:11.495]: Info: Avahi service bazzite successfully established.

Online logs

No response

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