Nvidia-smi - no devices were found - 5080 - Ubuntu 24.04

Hi,

I checked the related topics and they stated to purge the nvidia packages first works.

So I have a newly installed ubuntu24.04, and I installed the CUDA toolkit Nvidia driver following the official documentation with local method: CUDA Toolkit 12.8 Update 1 Downloads | NVIDIA Developer

Then I reboot the machine but still have the “No devices were found” from nvidia-smi.

I checked the dmesg and found:
[ 11.751660] [drm:nv_drm_load [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice

Thanks for any clue on the issue!

nvidia-bug-report.log.gz (149.3 KB)

Were you able to find a solution to this?

same issue.
5080. ubuntu24.04

570.133.07 and 570.124.04 of Proprietary Version.

MIT/GPL is working fine.

Unfortunately no…
One more thing to mention is that I worked with open kernel module.

Hard to tell from the logs, since there are also several PCI errors.

One thing you could try is to use default proprietary drivers first with the 5080, which is recommended in any case.

Another thing to look at is to maybe disable the AMD graphics in the system, which might interfere with driver initialization.

I had a similar issue and a motherboard bios update fixed the issue for me. x870e motherboard…

I have same issue
So I have a newly installed ubuntu 24.04.02, with RTX 5080, 570.133.07 and 570.124.04 of Proprietary Version.

Everything looks fine when install driver 570, driver already install but when prompt nvidia-smi, got an error no device were found
I got error like this when check the xorg compability with NVIDIA :

aggd-cv@aggd-cv-MS-7E23:~$ cat /var/log/Xorg.0.log | grep -i nvidia
[ 25.947] () OutputClass “nvidia” ModulePath extended to “/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/xorg/modules”
[ 26.391] (II) Applying OutputClass “nvidia” to /dev/dri/card1
[ 26.391] loading driver: nvidia
[ 27.277] (==) Matched nvidia as autoconfigured driver 1
[ 27.277] (II) LoadModule: “nvidia”
[ 27.277] (II) Loading /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so
[ 27.277] (II) Module nvidia: vendor=“NVIDIA Corporation”
[ 27.277] (II) NOUVEAU driver for NVIDIA chipset families :
[ 27.278] (II) NVIDIA dlloader X Driver 570.124.06 Wed Feb 26 01:44:32 UTC 2025
[ 27.278] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 27.715] (II) NVIDIA(0): Creating default Display subsection in Screen section
[ 27.715] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 27.715] (==) NVIDIA(0): RGB weight 888
[ 27.715] (==) NVIDIA(0): Default visual is TrueColor
[ 27.715] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 27.715] (
) NVIDIA(0): Enabling 2D acceleration
[ 27.715] (II) Loading sub module “glxserver_nvidia”
[ 27.715] (II) LoadModule: “glxserver_nvidia”
[ 27.715] (II) Loading /usr/lib/x86_64-linux-gnu/nvidia/xorg/libglxserver_nvidia.so
[ 27.721] (II) Module glxserver_nvidia: vendor=“NVIDIA Corporation”
[ 27.721] (II) NVIDIA GLX Module 570.124.06 Wed Feb 26 01:48:57 UTC 2025
[ 27.721] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 27.796] (EE) NVIDIA(GPU-0): The NVIDIA GPU at PCI:1:0:0 is not supported by the 570.124.06
[ 27.796] (EE) NVIDIA(GPU-0): NVIDIA driver.
[ 27.796] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[ 27.796] (EE) NVIDIA(0): Failing initialization of X screen
[ 27.796] (II) UnloadModule: “nvidia”
[ 27.796] (II) UnloadSubModule: “glxserver_nvidia”
[ 27.796] (II) Unloading glxserver_nvidia
[ 27.796] (==) NVIDIA(G0): Depth 24, (==) framebuffer bpp 32
[ 27.796] (==) NVIDIA(G0): RGB weight 888
[ 27.796] (==) NVIDIA(G0): Default visual is TrueColor
[ 27.796] (==) NVIDIA(G0): Using gamma correction (1.0, 1.0, 1.0)
[ 27.796] (II) Applying OutputClass “nvidia” options to /dev/dri/card1
[ 27.796] () NVIDIA(G0): Option “AllowEmptyInitialConfiguration”
[ 27.796] (
) NVIDIA(G0): Enabling 2D acceleration
[ 27.796] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 27.796] (EE) NVIDIA(GPU-1): Failed to initialize the NVIDIA graphics device!
[ 27.796] (EE) NVIDIA(G0): Failing initialization of X screen
[ 27.875] (II) UnloadModule: “nvidia”

But everthing looks fine like :
aggd-cv@aggd-cv-MS-7E23:~$ lsmod | grep nvidia
nvidia_uvm 2084864 0
nvidia_drm 131072 0
nvidia_modeset 1548288 1 nvidia_drm
nvidia 89858048 8 nvidia_uvm,nvidia_modeset
drm_ttm_helper 16384 2 nvidia_drm,xe
video 77824 3 xe,i915,nvidia_modeset

aggd-cv@aggd-cv-MS-7E23:~$ mokutil --sb-state
SecureBoot disabled

aggd-cv@aggd-cv-MS-7E23:~$ cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 570.124.04 Tue Feb 25 04:12:12 UTC 2025
GCC version: gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)

aggd-cv@aggd-cv-MS-7E23:~$ dpkg -l | grep -i nvidia
ii cudnn 9.8.0-1 amd64 NVIDIA CUDA Deep Neural Network library (cuDNN)
ii cudnn9 9.8.0-1 amd64 NVIDIA CUDA Deep Neural Network library (cuDNN)
ii cudnn9-cuda-12 9.8.0.87-1 amd64 NVIDIA cuDNN for CUDA 12
ii cudnn9-cuda-12-8 9.8.0.87-1 amd64 NVIDIA cuDNN for CUDA 12.8
ii libnvidia-cfg1-570:amd64 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-570 570.124.04-0ubuntu0~gpu24.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-570:amd64 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA libcompute package
ii libnvidia-decode-570:amd64 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-egl-wayland1:amd64 1:1.1.17-0ubuntu0~gpu24.04.1 amd64 Wayland EGL External Platform library – shared library
ii libnvidia-encode-570:amd64 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVENC Video Encoding runtime library
ii libnvidia-extra-570:amd64 570.124.04-0ubuntu0~gpu24.04.1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-570:amd64 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-570:amd64 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii nvidia-compute-utils-570 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA compute utilities
ii nvidia-dkms-570 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA DKMS package
ii nvidia-driver-570 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA driver metapackage
ii nvidia-firmware-570-570.124.04 570.124.04-0ubuntu0~gpu24.04.1 amd64 Firmware files used by the kernel module
ii nvidia-kernel-common-570 570.124.04-0ubuntu0~gpu24.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-570 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.17.2 all Tools to enable NVIDIA’s Prime
ii nvidia-settings 510.47.03-0ubuntu4 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-570 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18.3 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-570 570.124.04-0ubuntu0~gpu24.04.1 amd64 NVIDIA binary Xorg driver

This is worrying and either a problem with nouveau being loaded as prime driver or issues with the physical installation of the GPU.

First of all make sure to blacklist the nouveau driver.
Then re-insert the GPU into the motherboard, make sure it sits correctly.
Make sure you have all the necessary power connectors attached correctly.

Hello Markus,
nvidia-bug-report.log.gz (202.0 KB)
i will send the report bug can you check it for me

I installed sudo apt install nvidia-driver-570, but it installed version 570.124.06.

How about changing it to 570.133.07? I found on the NVIDIA website that the RTX 5080 is compatible with version 570.133.07

If you click “Vie More Versions” you would also see the 124 version, no worries.

-> An alternate method of installing the NVIDIA driver was detected. (This is usually a package provided by your distributor.) A driver installed via that method may integrate better with your system than a driver installed by nvidia-installer.

Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:

The NVIDIA driver provided by Ubuntu can be installed by launching the "Software & Updates" application, and by selecting the NVIDIA driver from the "Additional Drivers" tab.

You did not do a clean installation.

I already do this before doing installation :
sudo apt-get remove --purge '^nvidia-.
sudo apt-get install ubuntu-desktop
sudo apt-get --purge remove “cublas” "cuda
"
sudo apt-get --purge remove “nvidia
sudo add-apt-repository --remove ppa:graphics-drivers/ppa
sudo rm /etc/X11/xorg.conf
sudo apt autoremove
sudo reboot

Do you have any suggestions or recommendations on how to perform a clean installation?

Anyway @MarkusHoHo The problem was solved, I just purge all nvidia and reinstall it with sudo apt install nvidia-driver-570-open

2 Likes

I install using ‘Additional Driver’ and also using ‘sudo NVIDIA-Linux-x86_64-570.133.07.run’, I get the following error: NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running. When running nvidia-smi.

But when I install using ‘sudo apt install nvidia-driver-570’, I get ‘no devices were found’ when running nvidia-smi the problem on here [ 27.796] (EE) NVIDIA(GPU-0): The NVIDIA GPU at PCI:1:0:0 is not supported by the 570.124.06
[ 27.796] (EE) NVIDIA(GPU-0): NVIDIA driver. But everything else seems to be normal.

Worked for me too

Hi, did you just used the aforementioned commands to purge nvidia packages?

Hello, I am having similar issues, I tried installing the driver but I cannot get it to work, no matter what I do
I have a laptop with a NVIDIA1050 GTX Mobile and an Intel CPU
pls help
nvidia-bug-report.log (666.8 KB)

Magic! No other option worked for me but this one! open driver immediately recognized the device.

Welcome to the NVIDIA developer forums @v.arriola. Good to hear that you found a solution!