Nvidia-smi: No devices were found

Hello everyone

I am having difficulty installing the NVIDIA drivers for RTX A4000 on my almalinux 9.3 machine. I followed the instructions on the wiki page here:

[A03 R9 ❯ NVIDIA: Installation on 9.x | AlmaLinux Wiki]

I went for the install binary driver method but at the end nvidia-smi says: No devices found.
Can anyone advise please? Is there a way to fix this without re-installing OS?

Thank you for your time.
Kabamaru

Do you have the kernel module for the running kernel and is it loaded?

modinfo nvidia
lsmod | grep nvidia

If you don’t have module at all, then some driver packages are missing or failed to install properly.
If the module exists, but is not loaded, then why did it fail to load?

dmesg -T | grep -i nvidia

Hi, goudeuk,

As you stated, you opted for the installation of the nVIDIA binary driver solution from the AlmaLinux Wiki; were there any kind of errors after each/any of the listed steps involved?

Just curious about that part, although providing the output of the commands/queries listed by @jlehtone likely would be the most helpful in getting started on diagnosing the issue…

Hi both and thank you very much for your replies.

The problem is fixed but unfortunately, I’m not sure what I did exactly. Looking at the command history, I think the reason was dkms not being on.

I did the following:

  1. dnf remove nvidia*
  2. dnf -y install dkms kernel-devel (I think these were already installed)
  3. cat /etc/modprobe.d/nouveau-blacklist.conf (just to verify that nouveau was blacklisted)
  4. systemctl start dkms
  5. systemctl enable dkms
  6. chmod +x NVIDIA-Linux-x86_64-550.54.14.run
  7. ./NVIDIA-Linux-x86_64-550.54.14.run
  8. nvidia-smi

NVIDIA-SMI 550.54.14 Driver Version: 550.54.14 CUDA Version: 12.4

  1. lsmod | grep nvidia
    nvidia_uvm 4943872 0
    nvidia_drm 126976 3
    nvidia_modeset 1359872 5 nvidia_drm
    nvidia 54149120 68 nvidia_uvm,nvidia_modeset
    drm_kms_helper 274432 1 nvidia_drm
    drm 806912 7 drm_kms_helper,nvidia,nvidia_drm
    video 77824 2 asus_wmi,nvidia_modeset

LinuxGuy1997: No. There were no errors when I followed the steps in the wiki page.

Sorry I know the solution may not be precise but I erased and installed the drivers a number of times. However, I think the reason was dkms not running.

Thank you
All the best.