Skip to content

No Hardware Acceleration with Nvidia GPU on Debian 13 Trixie with deb package releases #4469

@Tikilou

Description

@Tikilou

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

As explained in title, probem wasn't exist on debian 12 Bookworm but no video gpu acceleration on my Nvidia GPU on debian 13 Trixie. 🙂
I've found a way to fix it and uploaded here with all patches and packages for Debian 13 Trixie with SUCCESS, compiled Doxygen, FFMPEG, Sunshine... :

https://gitlab.com/users/pepinature/projects

Ps : i'm not a dev and don't already know how to use git, i'm learning with Codex assistant.

Expected Behavior

No response

Additional Context

No response

Host Operating System

Docker

Operating System Version

Linux Debian 13 (Trixie) STABLE repo

Architecture

amd64/x86_64

Sunshine commit or version

v2025.924.154138 (latest release)

Package

Linux - deb

GPU Type

NVIDIA

GPU Model

GTX 1650 / GTX 1660TI

GPU Driver/Mesa Version

580.105.08

Capture Method

NvFBC (Linux)

Config

Apps

Relevant log output

$ DISPLAY=:0 sunshine
[2025-12-04 00:09:03.146230] [0x00007f51ed5ae2c0] [info] config: 'min_threads' = 5
[2025-12-04 00:09:03.146998] [0x00007f51ed5ae2c0] [info] config: 'locale' = fr
[2025-12-04 00:09:03.147658] [0x00007f51ed5ae2c0] [info] config: 'encoder' = vaapi
[2025-12-04 00:09:03.148]: Info: Sunshine version: 0.0.0.dirty commit:
[2025-12-04 00:09:03.148]: Info: Package Publisher: Third Party Publisher
[2025-12-04 00:09:03.149]: Info: Publisher Website:
[2025-12-04 00:09:03.149]: Info: Get support: https://app.lizardbyte.dev/support
[2025-12-04 00:09:03.150]: Info: config: 'encoder' = vaapi
[2025-12-04 00:09:03.150]: Info: config: 'locale' = fr
[2025-12-04 00:09:03.151]: Info: config: 'min_threads' = 5
[2025-12-04 00:09:03.152]: Error: Failed to gain CAP_SYS_ADMIN
[2025-12-04 00:09:03.152]: Info: /dev/dri/card0 -> nvidia-drm
[2025-12-04 00:09:03.153]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2025-12-04 00:09:03.153]: Info: Detecting displays
[2025-12-04 00:09:03.198]: Info: Detected display: DP-0 (id: 0)DP-0 connected: false
[2025-12-04 00:09:03.198]: Info: Detected display: DP-1 (id: 1)DP-1 connected: false
[2025-12-04 00:09:03.199]: Info: Detected display: DP-2 (id: 2)DP-2 connected: false
[2025-12-04 00:09:03.199]: Info: Detected display: DP-3 (id: 3)DP-3 connected: false
[2025-12-04 00:09:03.200]: Info: Detected display: HDMI-0 (id: 4)HDMI-0 connected: true
[2025-12-04 00:09:03.366]: Info: Trying encoder [vaapi]
[2025-12-04 00:09:03.367]: Info: Screencasting with X11
[2025-12-04 00:09:03.370]: Info: Creating encoder [h264_vaapi]
[2025-12-04 00:09:03.370]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:03.371]: Info: Color depth: 8-bit
[2025-12-04 00:09:03.372]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
[2025-12-04 00:09:03.563]: Info: vaapi vendor: VA-API NVDEC driver [direct backend]
[2025-12-04 00:09:03.564]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:03.803]: Error: [h264_vaapi @ 0x563fe3785340] No usable encoding entrypoint found for profile VAProfileH264High (7).
[2025-12-04 00:09:03.880]: Error: Could not open codec [h264_vaapi]: Function not implemented
[2025-12-04 00:09:03.884]: Info: Creating encoder [h264_vaapi]
[2025-12-04 00:09:03.884]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:03.885]: Info: Color depth: 8-bit
[2025-12-04 00:09:03.885]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
[2025-12-04 00:09:04.024]: Info: vaapi vendor: VA-API NVDEC driver [direct backend]
[2025-12-04 00:09:04.025]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:04.250]: Error: [h264_vaapi @ 0x563fe2a01a00] No usable encoding entrypoint found for profile VAProfileH264High (7).
[2025-12-04 00:09:04.323]: Error: Could not open codec [h264_vaapi]: Function not implemented
[2025-12-04 00:09:04.327]: Info: Encoder [vaapi] failed
[2025-12-04 00:09:04.327]: Error: Couldn't find any working encoder matching [vaapi]
[2025-12-04 00:09:04.328]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-12-04 00:09:04.328]: Info: Trying encoder [nvenc]
[2025-12-04 00:09:04.329]: Info: Screencasting with X11
[2025-12-04 00:09:04.329]: Info: Creating encoder [h264_nvenc]
[2025-12-04 00:09:04.329]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:04.330]: Info: Color depth: 8-bit
[2025-12-04 00:09:04.330]: Info: Color range: JPEG
[2025-12-04 00:09:04.433]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:04.440]: Warning: [h264_nvenc @ 0x563fe2a01a00] Multiple reference frames are not supported by the device
[2025-12-04 00:09:04.440]: Error: [h264_nvenc @ 0x563fe2a01a00] Provided device doesn't support required NVENC features
[2025-12-04 00:09:04.764]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2025-12-04 00:09:04.765]: Info: Creating encoder [h264_nvenc]
[2025-12-04 00:09:04.765]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:04.766]: Info: Color depth: 8-bit
[2025-12-04 00:09:04.766]: Info: Color range: JPEG
[2025-12-04 00:09:04.867]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:05.205]: Info: Creating encoder [hevc_nvenc]
[2025-12-04 00:09:05.206]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:05.207]: Info: Color depth: 8-bit
[2025-12-04 00:09:05.208]: Info: Color range: JPEG
[2025-12-04 00:09:05.307]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:05.313]: Warning: [hevc_nvenc @ 0x563fe2a01a00] Multiple reference frames are not supported by the device
[2025-12-04 00:09:05.313]: Error: [hevc_nvenc @ 0x563fe2a01a00] Provided device doesn't support required NVENC features
[2025-12-04 00:09:05.639]: Error: Could not open codec [hevc_nvenc]: Function not implemented
[2025-12-04 00:09:05.639]: Info: Creating encoder [hevc_nvenc]
[2025-12-04 00:09:05.640]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:05.640]: Info: Color depth: 8-bit
[2025-12-04 00:09:05.640]: Info: Color range: JPEG
[2025-12-04 00:09:05.741]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:06.079]: Info: Creating encoder [av1_nvenc]
[2025-12-04 00:09:06.079]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:06.080]: Info: Color depth: 8-bit
[2025-12-04 00:09:06.081]: Info: Color range: JPEG
[2025-12-04 00:09:06.180]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:06.187]: Warning: [av1_nvenc @ 0x563fe2a01a00] Codec not supported
[2025-12-04 00:09:06.187]: Error: [av1_nvenc @ 0x563fe2a01a00] Provided device doesn't support required NVENC features
[2025-12-04 00:09:06.523]: Error: Could not open codec [av1_nvenc]: Function not implemented
[2025-12-04 00:09:06.524]: Info: Creating encoder [av1_nvenc]
[2025-12-04 00:09:06.524]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:06.524]: Info: Color depth: 8-bit
[2025-12-04 00:09:06.524]: Info: Color range: JPEG
[2025-12-04 00:09:06.635]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:06.642]: Warning: [av1_nvenc @ 0x563fe2a01a00] Codec not supported
[2025-12-04 00:09:06.643]: Error: [av1_nvenc @ 0x563fe2a01a00] Provided device doesn't support required NVENC features
[2025-12-04 00:09:06.972]: Error: Could not open codec [av1_nvenc]: Function not implemented
[2025-12-04 00:09:06.972]: Info: Screencasting with X11
[2025-12-04 00:09:06.974]: Info: Creating encoder [hevc_nvenc]
[2025-12-04 00:09:06.974]: Info: Color coding: SDR (Rec. 709)
[2025-12-04 00:09:06.974]: Info: Color depth: 10-bit
[2025-12-04 00:09:06.975]: Info: Color range: JPEG
[2025-12-04 00:09:07.080]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:07.423]: Info:
[2025-12-04 00:09:07.424]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-12-04 00:09:07.424]: Info:
[2025-12-04 00:09:07.425]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-12-04 00:09:07.426]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-12-04 00:09:07.426]: Info: Starting system tray
[2025-12-04 00:09:07.427]: Info: Configuration UI available at [https://localhost:47990]
[2025-12-04 00:09:07.428]: Info: Adding avahi service debian-vm-pepinature

(sunshine:4200): libayatana-appindicator-WARNING **: 00:09:07.462: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.
[2025-12-04 00:09:07.465]: Info: System tray created
[2025-12-04 00:09:07.466]: Info: Starting main loop
[2025-12-04 00:09:08.293]: Info: Avahi service debian-vm-pepinature successfully established.
[2025-12-04 00:09:46.700]: Info: Trying encoder [vaapi]
[2025-12-04 00:09:46.701]: Info: Screencasting with X11
[2025-12-04 00:09:46.702]: Info: Creating encoder [h264_vaapi]
[2025-12-04 00:09:46.703]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:46.704]: Info: Color depth: 8-bit
[2025-12-04 00:09:46.704]: Info: Color range: JPEG
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
[2025-12-04 00:09:46.865]: Info: vaapi vendor: VA-API NVDEC driver [direct backend]
[2025-12-04 00:09:46.866]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:47.121]: Error: [h264_vaapi @ 0x7f51b0061f80] No usable encoding entrypoint found for profile VAProfileH264High (7).
[2025-12-04 00:09:47.196]: Error: Could not open codec [h264_vaapi]: Fonction non implantée
[2025-12-04 00:09:47.199]: Info: Encoder [vaapi] failed
[2025-12-04 00:09:47.200]: Error: Couldn't find any working encoder matching [vaapi]
[2025-12-04 00:09:47.201]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-12-04 00:09:47.201]: Info: Trying encoder [nvenc]
[2025-12-04 00:09:47.202]: Info: Screencasting with X11
[2025-12-04 00:09:47.202]: Info: Creating encoder [h264_nvenc]
[2025-12-04 00:09:47.203]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:47.203]: Info: Color depth: 8-bit
[2025-12-04 00:09:47.203]: Info: Color range: JPEG
[2025-12-04 00:09:47.306]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:47.312]: Warning: [h264_nvenc @ 0x7f51b0061f80] Multiple reference frames are not supported by the device
[2025-12-04 00:09:47.313]: Error: [h264_nvenc @ 0x7f51b0061f80] Provided device doesn't support required NVENC features
[2025-12-04 00:09:47.637]: Error: Could not open codec [h264_nvenc]: Fonction non implantée
[2025-12-04 00:09:47.638]: Info: Creating encoder [h264_nvenc]
[2025-12-04 00:09:47.638]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:47.639]: Info: Color depth: 8-bit
[2025-12-04 00:09:47.639]: Info: Color range: JPEG
[2025-12-04 00:09:47.741]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:48.079]: Info: Creating encoder [hevc_nvenc]
[2025-12-04 00:09:48.080]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:48.081]: Info: Color depth: 8-bit
[2025-12-04 00:09:48.082]: Info: Color range: JPEG
[2025-12-04 00:09:48.181]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:48.188]: Warning: [hevc_nvenc @ 0x7f51b0061f80] Multiple reference frames are not supported by the device
[2025-12-04 00:09:48.188]: Error: [hevc_nvenc @ 0x7f51b0061f80] Provided device doesn't support required NVENC features
[2025-12-04 00:09:48.516]: Error: Could not open codec [hevc_nvenc]: Fonction non implantée
[2025-12-04 00:09:48.516]: Info: Creating encoder [hevc_nvenc]
[2025-12-04 00:09:48.517]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:48.518]: Info: Color depth: 8-bit
[2025-12-04 00:09:48.518]: Info: Color range: JPEG
[2025-12-04 00:09:48.622]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:48.959]: Info: Creating encoder [av1_nvenc]
[2025-12-04 00:09:48.960]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:48.961]: Info: Color depth: 8-bit
[2025-12-04 00:09:48.962]: Info: Color range: JPEG
[2025-12-04 00:09:49.061]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:49.068]: Warning: [av1_nvenc @ 0x7f51b0061f80] Codec not supported
[2025-12-04 00:09:49.068]: Error: [av1_nvenc @ 0x7f51b0061f80] Provided device doesn't support required NVENC features
[2025-12-04 00:09:49.402]: Error: Could not open codec [av1_nvenc]: Fonction non implantée
[2025-12-04 00:09:49.403]: Info: Creating encoder [av1_nvenc]
[2025-12-04 00:09:49.403]: Info: Color coding: SDR (Rec. 601)
[2025-12-04 00:09:49.404]: Info: Color depth: 8-bit
[2025-12-04 00:09:49.404]: Info: Color range: JPEG
[2025-12-04 00:09:49.516]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:49.522]: Warning: [av1_nvenc @ 0x7f51b0061f80] Codec not supported
[2025-12-04 00:09:49.523]: Error: [av1_nvenc @ 0x7f51b0061f80] Provided device doesn't support required NVENC features
[2025-12-04 00:09:49.851]: Error: Could not open codec [av1_nvenc]: Fonction non implantée
[2025-12-04 00:09:49.852]: Info: Screencasting with X11
[2025-12-04 00:09:49.854]: Info: Creating encoder [hevc_nvenc]
[2025-12-04 00:09:49.855]: Info: Color coding: SDR (Rec. 709)
[2025-12-04 00:09:49.856]: Info: Color depth: 10-bit
[2025-12-04 00:09:49.857]: Info: Color range: JPEG
[2025-12-04 00:09:49.960]: Info: Streaming bitrate is 1000000
[2025-12-04 00:09:50.300]: Info:
[2025-12-04 00:09:50.301]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-12-04 00:09:50.302]: Info:
[2025-12-04 00:09:50.303]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-12-04 00:09:50.303]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-12-04 00:09:50.304]: Info: Executing [Desktop]
[2025-12-04 00:09:50.330]: Info: New streaming session started [active sessions: 1]
[2025-12-04 00:09:50.331]: Info: 192.168.1.104: Ping Timeout
[2025-12-04 00:09:50.351]: Info: CLIENT CONNECTED
[2025-12-04 00:09:50.352]: Info: Detecting displays
[2025-12-04 00:09:50.416]: Info: Detected display: DP-0 (id: 0)DP-0 connected: false
[2025-12-04 00:09:50.417]: Info: Detected display: DP-1 (id: 1)DP-1 connected: false
[2025-12-04 00:09:50.417]: Info: Detected display: DP-2 (id: 2)DP-2 connected: false
[2025-12-04 00:09:50.418]: Info: Detected display: DP-3 (id: 3)DP-3 connected: false
[2025-12-04 00:09:50.419]: Info: Detected display: HDMI-0 (id: 4)HDMI-0 connected: true
[2025-12-04 00:09:50.420]: Info: Screencasting with X11
[2025-12-04 00:09:50.420]: Info: Configuring selected display (0) to stream
[2025-12-04 00:09:50.467]: Warning: Couldn't get requested display info, defaulting to recording entire virtual desktop
[2025-12-04 00:09:50.468]: Info: Creating encoder [hevc_nvenc]
[2025-12-04 00:09:50.468]: Info: Color coding: SDR (Rec. 709)
[2025-12-04 00:09:50.469]: Info: Color depth: 8-bit
[2025-12-04 00:09:50.469]: Info: Color range: JPEG
[2025-12-04 00:09:50.593]: Info: Streaming bitrate is 15788000
[2025-12-04 00:09:50.625]: Info: Minimum FPS target set to ~27fps (37.037ms)
[2025-12-04 00:09:50.847]: Info: Setting default sink to: [sink-sunshine-stereo]
[2025-12-04 00:09:50.848]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2025-12-04 00:09:50.871]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY

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