Skip to content

Can't find GPU or display after latest update version 2026.409.171120 #4968

Closed

Description

@bunnypig

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

I get 2 fatal errors after I update from version 407 to 2026.409.171120.
I get:
Fatal: Unable to find display or encoder during startup.
Fatal: Please check that a display is connected and powered on.

It worked before I updated. I've tried to manually enter my GPU and Displays but nothing happens when I do.
All I can see in logs is CAP_SYS_ADMIN not being permitted but I've made sure to use sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine)) and it should be ok. I've also tried to set different displays to make sure it's not just that monitor that's reporting issues but all my monitors says the same.
The log states I'm "forcing" to use NVENC encoder but even on AUTO it reports the same.

Image

Expected Behavior

Detecting and and using both GPU and Display.

Additional Context

No response

Host Operating System

Linux

Operating System Version

Fedora 43 KDE Wayland

Architecture

amd64/x86_64

Package

Linux - Fedora Copr

GPU Type

Nvidia

GPU Model

Nvidia GeForce 3080 LHR

GPU Driver/Mesa Version

Nvidia 580.142 / Mesa 25.3.6-3.fc43

Capture Method

None

Apps

Log output

[2026-04-10 02:04:34.703]: Info: Sunshine version: 2026.409.171120 commit: d3330d1c8d5f9d3ab41fccee7aa6b3fd5a5ee35f
[2026-04-10 02:04:34.703]: Info: Package Publisher: LizardByte
[2026-04-10 02:04:34.703]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-04-10 02:04:34.703]: Info: Get support: https://app.lizardbyte.dev/support
[2026-04-10 02:04:34.703]: Info: config: 'encoder' = nvenc
[2026-04-10 02:04:34.703]: Info: config: 'min_threads' = 4
[2026-04-10 02:04:34.703]: Info: config: 'minimum_fps_target' = 120
[2026-04-10 02:04:34.703]: Info: config: 'nvenc_preset' = 1
[2026-04-10 02:04:34.703]: Info: config: 'origin_web_ui_allowed' = wan
[2026-04-10 02:04:34.703]: Info: config: 'sunshine_name' = Bunny's PC
[2026-04-10 02:04:34.884]: Error: Failed to create session:
[2026-04-10 02:04:34.884]: Info: [wayland] Found display [wayland-0]
[2026-04-10 02:04:34.884]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
[2026-04-10 02:04:34.884]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(57) version 5
[2026-04-10 02:04:34.884]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-04-10 02:04:34.884]: Info: [wayland] Found interface: wl_output(66) version 4
[2026-04-10 02:04:34.884]: Warning: [wlgrab] Missing Wayland wire for wlr-export-dmabuf
[2026-04-10 02:04:34.884]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:34.884]: Info: /dev/dri/card1 -> i915
[2026-04-10 02:04:34.884]: Info: [wayland] Found display [wayland-0]
[2026-04-10 02:04:34.884]: Info: [wayland] Found display [wayland-0]
[2026-04-10 02:04:34.884]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
[2026-04-10 02:04:34.884]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(57) version 5
[2026-04-10 02:04:34.884]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-04-10 02:04:34.884]: Info: [wayland] Found interface: wl_output(66) version 4
[2026-04-10 02:04:34.884]: Info: [wayland] Resolution: 1440x900
[2026-04-10 02:04:34.884]: Info: [wayland] Resolution: 1920x1080
[2026-04-10 02:04:34.884]: Info: [wayland] Offset: 1920x947
[2026-04-10 02:04:34.884]: Info: [wayland] Logical size: 1152x720
[2026-04-10 02:04:34.884]: Info: [wayland] Name: HDMI-A-3
[2026-04-10 02:04:34.884]: Info: [wayland] Found monitor: BBC HDP-V104
[2026-04-10 02:04:34.884]: Info: [wayland] Offset: 0x0
[2026-04-10 02:04:34.884]: Info: [wayland] Logical size: 1920x1080
[2026-04-10 02:04:34.884]: Info: [wayland] Name: HDMI-A-2
[2026-04-10 02:04:34.884]: Info: [wayland] Found monitor: Philips Consumer Electronics Company Philips FTV
[2026-04-10 02:04:34.884]: Info: -------- Start of KMS monitor list --------
[2026-04-10 02:04:34.884]: Warning: Mismatch on expected Resolution compared to actual resolution: 1920x1080 vs 1440x900
[2026-04-10 02:04:34.884]: Info: Monitor 1 is HDMI-A-3: BBC HDP-V104
[2026-04-10 02:04:34.884]: Info: --------- End of KMS monitor list ---------
[2026-04-10 02:04:34.884]: Info: [portalgrab] Loaded portal restore token from disk
[2026-04-10 02:04:34.895]: Info: [wayland] Found display [wayland-0]
[2026-04-10 02:04:34.901]: Info: [wayland] Found interface: zxdg_output_manager_v1(31) version 3
[2026-04-10 02:04:34.901]: Info: [wayland] Found interface: zwp_linux_dmabuf_v1(57) version 5
[2026-04-10 02:04:34.901]: Info: [wayland] Found interface: wl_output(65) version 4
[2026-04-10 02:04:34.901]: Info: [wayland] Found interface: wl_output(66) version 4
[2026-04-10 02:04:34.901]: Info: [wayland] Resolution: 1440x900
[2026-04-10 02:04:34.901]: Info: [wayland] Resolution: 1920x1080
[2026-04-10 02:04:34.902]: Info: [wayland] Offset: 1920x947
[2026-04-10 02:04:34.902]: Info: [wayland] Logical size: 1152x720
[2026-04-10 02:04:34.902]: Info: [wayland] Name: HDMI-A-3
[2026-04-10 02:04:34.902]: Info: [wayland] Found monitor: BBC HDP-V104
[2026-04-10 02:04:34.902]: Info: [wayland] Offset: 0x0
[2026-04-10 02:04:34.902]: Info: [wayland] Logical size: 1920x1080
[2026-04-10 02:04:34.902]: Info: [wayland] Name: HDMI-A-2
[2026-04-10 02:04:34.902]: Info: [wayland] Found monitor: Philips Consumer Electronics Company Philips FTV
[2026-04-10 02:04:34.904]: Info: [portalgrab] Found stream for display: 'HDMI-A-3' position: 1920x947 resolution: 1152x720
[2026-04-10 02:04:34.904]: Info: [portalgrab] Found stream for display: 'HDMI-A-2' position: 0x0 resolution: 1920x1080
[2026-04-10 02:04:34.926]: Info: Trying encoder [nvenc]
[2026-04-10 02:04:34.926]: Info: Screencasting with KMS
[2026-04-10 02:04:34.926]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:34.926]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:34.926]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:34.926]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:34.926]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:34.926]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:34.926]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:34.926]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:35.126]: Info: Screencasting with KMS
[2026-04-10 02:04:35.126]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.126]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.126]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.126]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:35.127]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.127]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.127]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.127]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:35.327]: Info: Encoder [nvenc] failed
[2026-04-10 02:04:35.327]: Error: Couldn't find any working encoder matching [nvenc]
[2026-04-10 02:04:35.327]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-04-10 02:04:35.327]: Info: Trying encoder [vulkan]
[2026-04-10 02:04:35.327]: Info: Screencasting with KMS
[2026-04-10 02:04:35.327]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.327]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.327]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.327]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:35.327]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.327]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.327]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.327]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:35.527]: Info: Screencasting with KMS
[2026-04-10 02:04:35.527]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.527]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.527]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.527]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:35.527]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.527]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.527]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.527]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:35.727]: Info: Encoder [vulkan] failed
[2026-04-10 02:04:35.727]: Info: Trying encoder [vaapi]
[2026-04-10 02:04:35.727]: Info: Screencasting with KMS
[2026-04-10 02:04:35.727]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.727]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.727]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.727]: Info: /dev/dri/card1 -> i915
[2026-04-10 02:04:35.727]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.727]: Error: Couldn't get handle for DRM Framebuffer [524]: Probably not permitted
[2026-04-10 02:04:35.727]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.727]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.727]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.727]: Info: /dev/dri/card1 -> i915
[2026-04-10 02:04:35.727]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.727]: Error: Couldn't get handle for DRM Framebuffer [524]: Probably not permitted
[2026-04-10 02:04:35.928]: Info: Screencasting with KMS
[2026-04-10 02:04:35.928]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.928]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.928]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.928]: Info: /dev/dri/card1 -> i915
[2026-04-10 02:04:35.928]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.928]: Error: Couldn't get handle for DRM Framebuffer [524]: Probably not permitted
[2026-04-10 02:04:35.928]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.928]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:35.928]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.928]: Info: /dev/dri/card1 -> i915
[2026-04-10 02:04:35.928]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:35.928]: Error: Couldn't get handle for DRM Framebuffer [524]: Probably not permitted
[2026-04-10 02:04:36.128]: Info: Encoder [vaapi] failed
[2026-04-10 02:04:36.128]: Info: Trying encoder [software]
[2026-04-10 02:04:36.128]: Info: Screencasting with KMS
[2026-04-10 02:04:36.128]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:36.128]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:36.128]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:36.128]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:36.328]: Info: Screencasting with KMS
[2026-04-10 02:04:36.328]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:36.328]: Info: /dev/dri/card2 -> nvidia-drm
[2026-04-10 02:04:36.328]: Error: Failed to gain CAP_SYS_ADMIN
[2026-04-10 02:04:36.328]: Error: Couldn't get handle for DRM Framebuffer [146]: Probably not permitted
[2026-04-10 02:04:36.528]: Info: Encoder [software] failed
[2026-04-10 02:04:36.528]: Fatal: Unable to find display or encoder during startup.
[2026-04-10 02:04:36.528]: Fatal: Please check that a display is connected and powered on.
[2026-04-10 02:04:36.528]: Error: Video failed to find working encoder
[2026-04-10 02:04:36.529]: Info: Starting system tray
[2026-04-10 02:04:36.530]: Info: Configuration UI available at [https://localhost:47990]
[2026-04-10 02:04:36.530]: Info: Adding avahi service fedora
[2026-04-10 02:04:36.559]: Info: System tray created
[2026-04-10 02:04:36.559]: Info: Starting main loop
[2026-04-10 02:04:37.430]: Info: Avahi service fedora successfully established.

Online logs

No response

Activity

  1. bunnypig commented on Apr 10, 2026

    @bunnypig
    Author

    Downgrading to Version 2026.408.194927 resolves the issue.

    Image
  2. ReenigneArcher commented on Apr 10, 2026

    @ReenigneArcher
    Member

    The only difference between those versions is #4931

    @Kishi85 any ideas?

  3. Kishi85 commented on Apr 10, 2026

    @Kishi85
    Contributor

    Looks like it's immediately switching to KMS. I've had that behaviour on my end before the changes in #4931 as well (since the initial portalgrab implemenation went live) but didn't think to much of it as it looked like an issue with my setup.
    Could that be related to this line (which is not coming from portalgrab):

    [2026-04-10 02:04:34.884]: Error: Failed to create session:
    

    Unfortunately no reason is listed (another weird thing). Does it work if portalgrab is chosen for capture explicitly?

    Also looks like KMS is seeing one monitor and portalgrab reports two (but Wayland is also as we can match both to names).
    I'll add some further checks on streams to be considered but this looks like it's due to not even considering portalgrab first.

  4. Kishi85 commented on Apr 10, 2026

    @Kishi85
    Contributor
    [2026-04-10 02:04:34.884]: Error: Failed to create session:
    

    https://github.com/LizardByte/Sunshine/blob/d3330d1c8d5f9d3ab41fccee7aa6b3fd5a5ee35f/src/platform/linux/cuda.cpp#L611 seems to be the only instance where the error message matches, so this is something CUDA related.

  5. Kishi85 commented on Apr 10, 2026

    @Kishi85
    Contributor

    @psyke83 Could this be related to your changes for dropping capabilities in portalgrab? I have the suspicion it might be. We have to connect to the portal earlier now for display enumeration and therefore have to drop capabilities to do so, which in turn seems to break KMS encoder probing.

    UPDATE: Looks like that is the case. I've added a workaround/fix to #4969

  6. psyke83 commented on Apr 10, 2026

    @psyke83
    Contributor

    @psyke83 Could this be related to your changes for dropping capabilities in portalgrab? I have the suspicion it might be. We have to connect to the portal earlier now for display enumeration and therefore have to drop capabilities to do so, which in turn seems to break KMS encoder probing.

    It's possible, yes. Will be able to verify in a few hours. If setting the capture explicitly to kms works, then it's very likely to be this. We should only drop capabilities when we've committed to the capture method, so not during startup probe.

  7. Kishi85 commented on Apr 10, 2026

    @Kishi85
    Contributor

    @psyke83 Could this be related to your changes for dropping capabilities in portalgrab? I have the suspicion it might be. We have to connect to the portal earlier now for display enumeration and therefore have to drop capabilities to do so, which in turn seems to break KMS encoder probing.

    It's possible, yes. Will be able to verify in a few hours. If setting the capture explicitly to kms works, then it's very likely to be this. We should only drop capabilities when we've committed to the capture method, so not during startup probe.

    Startup encoder probing requires dropped security as we cannot init a display without it. Therefore portalgrab can never be probed before any capture method requiring CAP_SYS_ADMIN (luckily thats just kmsgrab).

    I've changed the display name enumeration in #4969 to return a dummy value until the portal is secured, which is done on the first portal display init (likely for portalgrab encoder probing). The capability drop now occurs at the same point where it did before #4931 which should resolve this issue.

  8. shanafin commented on Apr 10, 2026

    @shanafin

    Just want to add that I'm experiencing the same issue. Fedora 43 with KDE Plasma here too. AMD GPU with only a single monitor, though. Downgrading to the previous release also fixed the problem for me.

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