RE: Hardware Acceleration and Docker - missmintygreen - 2024-06-12
(2024-06-12, 10:41 PM)TheDreadPirate Wrote: I'm wondering if there are mismatched drivers or something. Since you're using Ubuntu you can check out their documentation or Nvidia drivers. Ubuntu includes some tools to make things easier.
https://ubuntu.com/server/docs/nvidia-drivers-installation
Is there a way to just clean uninstall any drivers on the system and start over?
RE: Hardware Acceleration and Docker - missmintygreen - 2024-06-12
(2024-06-12, 11:53 PM)missmintygreen Wrote: (2024-06-12, 10:41 PM)TheDreadPirate Wrote: I'm wondering if there are mismatched drivers or something. Since you're using Ubuntu you can check out their documentation or Nvidia drivers. Ubuntu includes some tools to make things easier.
https://ubuntu.com/server/docs/nvidia-drivers-installation
Is there a way to just clean uninstall any drivers on the system and start over?
Also, I ran this to see what packages I have installed from nvidia: "dpkg -l | grep -i nvidia"
Code: me@me-OptiPlex-7010:/$ dpkg -l | grep -i nvidia
ii libnvidia-cfg1-535:amd64 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-535 535.171.04-0ubuntu0.22.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-535:amd64 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-535:i386 535.171.04-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
rc libnvidia-compute-545:amd64 545.29.06-0ubuntu0.22.04.2 amd64 NVIDIA libcompute package
rc libnvidia-compute-550:amd64 550.67-0ubuntu1.22.04.2 amd64 NVIDIA libcompute package
ii libnvidia-container-tools 1.15.0-1 amd64 NVIDIA container runtime library (command-line tools)
ii libnvidia-container1:amd64 1.15.0-1 amd64 NVIDIA container runtime library
ii libnvidia-decode-535:amd64 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-535:i386 535.171.04-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-encode-535:amd64 535.171.04-0ubuntu0.22.04.1 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-535:i386 535.171.04-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-535:amd64 535.171.04-0ubuntu0.22.04.1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-535:amd64 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-535:i386 535.171.04-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-535:amd64 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-535:i386 535.171.04-0ubuntu0.22.04.1 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii linux-modules-nvidia-535-6.5.0-35-generic 6.5.0-35.35~22.04.1 amd64 Linux kernel nvidia modules for version 6.5.0-35
ii linux-modules-nvidia-535-generic-hwe-22.04 6.5.0-35.35~22.04.1 amd64 Extra drivers for nvidia-535 for the generic-hwe-22.04 flavour
ii linux-objects-nvidia-535-6.5.0-35-generic 6.5.0-35.35~22.04.1 amd64 Linux kernel nvidia modules for version 6.5.0-35 (objects)
ii linux-signatures-nvidia-6.5.0-35-generic 6.5.0-35.35~22.04.1 amd64 Linux kernel signatures for nvidia modules for version 6.5.0-35-generic
ii nvidia-compute-utils-535 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA compute utilities
rc nvidia-compute-utils-545 545.29.06-0ubuntu0.22.04.2 amd64 NVIDIA compute utilities
ii nvidia-container-toolkit 1.15.0-1 amd64 NVIDIA Container toolkit
ii nvidia-container-toolkit-base 1.15.0-1 amd64 NVIDIA Container Toolkit Base
rc nvidia-dkms-545 545.29.06-0ubuntu0.22.04.2 amd64 NVIDIA DKMS package
ii nvidia-driver-535 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA driver metapackage
ii nvidia-firmware-535-535.171.04 535.171.04-0ubuntu0.22.04.1 amd64 Firmware files used by the kernel module
ii nvidia-firmware-545-545.29.06 545.29.06-0ubuntu0.22.04.2 amd64 Firmware files used by the kernel module
ii nvidia-kernel-common-535 535.171.04-0ubuntu0.22.04.1 amd64 Shared files used with the kernel module
rc nvidia-kernel-common-545 545.29.06-0ubuntu0.22.04.2 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-535 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 510.47.03-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-535 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-535 535.171.04-0ubuntu0.22.04.1 amd64 NVIDIA binary Xorg driver
I wonder if that libnvidia-compute-550:amd64 is the issue.
RE: Hardware Acceleration and Docker - TheDreadPirate - 2024-06-13
What happens when you run
sudo ubuntu-drivers install nvidia:550
RE: Hardware Acceleration and Docker - missmintygreen - 2024-06-13
(2024-06-13, 12:08 AM)TheDreadPirate Wrote: What happens when you run
sudo ubuntu-drivers install nvidia:550
Code: me@me-OptiPlex-7010:/$ sudo ubuntu-drivers install nvidia:550
All the available drivers are already installed.
RE: Hardware Acceleration and Docker - TheDreadPirate - 2024-06-13
If you don't have a GUI, rip out all the Nvidia drivers you don't need and only keep what you do.
RE: Hardware Acceleration and Docker - missmintygreen - 2024-06-13
(2024-06-13, 11:51 AM)TheDreadPirate Wrote: If you don't have a GUI, rip out all the Nvidia drivers you don't need and only keep what you do.
Any advice on the best way to remove a specific driver or wipe all of them?
Tried uninstalling everything to do with nvidia using "sudo apt-get remove --purge nvidia*" and "sudo apt-get autoremove" and followed it up with restarting the whole process of installing nvidia, according to the guide, but I'm still getting hit with an error on playback when the hardware acceleration is turned on.
RE: Hardware Acceleration and Docker - missmintygreen - 2024-06-29
Still looking for more help on this, if anyone has any further advice or guidance!
RE: Hardware Acceleration and Docker - TheDreadPirate - 2024-06-30
One thing that just came to mind is that newer Nvidia drivers may require a newer version of the Nvidia Container Toolkit than what is available in 22.04's repo. You can try manually downloading and installing a new version of the container toolkit.
https://github.com/NVIDIA/nvidia-container-toolkit
RE: Hardware Acceleration and Docker - missmintygreen - 2024-06-30
(2024-06-30, 02:15 AM)TheDreadPirate Wrote: One thing that just came to mind is that newer Nvidia drivers may require a newer version of the Nvidia Container Toolkit than what is available in 22.04's repo. You can try manually downloading and installing a new version of the container toolkit.
https://github.com/NVIDIA/nvidia-container-toolkit
I'll definitely give this a shot!
RE: Hardware Acceleration and Docker - rambro1stbud - 2024-09-15
(2024-06-12, 01:08 AM)missmintygreen Wrote: Jellyfin version: 10.9.6
Install method: Docker Engine container
CPU: Intel i5 3470
GPU: Nvidia Quadro P400
New to Linux and I've managed to get a Docker install with Home Assistant and Jellyfin up and running. While video playback works just fine in Chrome, in the Jellyfin app, and on Swiftfin on my AppleTV, I picked up a GPU because I'd like to take some of the load off the CPU so that I can share access to my media library with some friends in the future. The majority of my movies and shows are just MKV files, and when I switch on hardware acceleration on the Dashboard, I'm not able to play back any of my media until it's switched off again.
I've tried to install the proper GPU driver for my P400, but I'm not sure that Jellyfin has proper access to it. I've been a bit confused by the directions on the Jellyfin website, considering my installation method. I'm relatively certain jellyfin-ffmpeg was installed when I created the container, so I think it's just a matter of configuring my GPU to work with Docker and Jellyfin.
I have a Quadro P400 as well. Like you, I struggled to get Jellyfin to recognize my GPU. I'm on the latest TrueNAS, running Jellyfin through Dockge. The official documentation wasn't really helpful at all. I looked at a bunch of Reddit and TrueNAS forum posts. This the docker compose that worked for me. Relevant parts highlighted:
Code: services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
environment:
- PUID=568
- PGID=568
- TZ=$TZ
[b] - NVIDIA_VISIBLE_DEVICES=all[/b]
- JELLYFIN_PublishedServerUrl=$URL
volumes:
- /path/to/jellyfin:/config
- /path/to:/tv
- /path/to:/movies
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
restart: unless-stopped
[b]deploy:[/b]
[b] resources:[/b]
[b] reservations:[/b]
[b] devices:[/b]
[b] - driver: nvidia[/b]
[b] count: 1[/b]
[b] capabilities:[/b]
[b] - gpu[/b]
networks: {}
|