Nvidia-smi shows no devices were found although driver is installed

Hello forum,
I have installed nvidia drivers and dpkg shows the version but nvidia-smi show no devices found. Is there any problem? How to resolve this?

any suggesion?
nvidia-bug-report.log (2.0 MB)
Palit NE6406T019T1-1061J (GeForce RTX 4060 Ti JetStream 16GB)
I attach the resultingnvidia-bug-report.log file to this thread.
Thank for your help.

Hello @yukitoro4649 and welcome to the NVIDIA developer forums.

There are several things that might be going wrong with your setup, so here are a few suggestions:

  • Disable secure boot OR clean reinstall the driver and use proper authorization steps (installing a MOK with the Linux kernel)
  • Check if your kernel headers are the correct version
  • blacklist the nouveau driver
  • disable the Intel integrated graphics

If all fails I recommend looking for other users here on the forums with a similar symptoms and try the various approaches how to address it. It can happen quite easily to overlook a step in the installation process and end up with a misconfigured system that does not recognize the GPU.

"Thank you for your previous response.

I want to provide an update and seek further assistance. Previously, I was only able to boot my computer in recovery mode. However, after updating the kernel, I can now boot normally without using the recovery mode.

Despite this progress, I encountered a new issue. After removing the existing package, I reinstalled the driver, but I received an error message.

I am trying to use a Palit NE6406T019T1-1061J (GeForce RTX 4060 Ti JetStream 16GB) graphics card. Considering it’s a less common model, could this be causing the issue?Additionally, I am concerned because the output of ‘ubuntu-drivers devices’ does not include a model field.

I appreciate any help you can offer in resolving this matter."

Hi again.

Please run sudo nvidia-bug-report.sh and attach the resulting zipped log file here.

Thanks.

nvidia-bug-report.log (2.2 MB)
Thank you very much for your prompt response. I am attaching the nvidia-bug-report.log file. Best regards, and I appreciate your time and assistance.
I apologize, but I was unable to attach the zipped log file. Instead, I am attaching the unzipped file for your review

-> The target kernel has CONFIG_MODULE_SIG set, which means that it supports cryptographic signatures on kernel modules. On some systems, the kernel may refuse to load modules without a valid signature from a trusted key. This system also has UEFI Secure Boot enabled; many distributions enforce module signature verification on UEFI systems when Secure Boot is enabled. Would you like to sign the NVIDIA kernel module? (Answer: Install without signing)
ERROR: The kernel module failed to load. Secure boot is enabled on this system, so this is likely because it was not signed by a key that is trusted by the kernel. Please try installing the driver again, and sign the kernel module when prompted to do so.
ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA device(s), or no NVIDIA device installed in this system is supported by this NVIDIA Linux graphics driver release.

Especially those two details:

many distributions enforce module signature verification on UEFI systems when Secure Boot is enabled.
Would you like to sign the NVIDIA kernel module? (Answer: Install without signing)

(Answer: Install without signing)
Wrong answer.

As I mentioned in my earlier comment, either disable secure boot or follow installation instructions to the letter, including MOK authorization of the kernel module.

Also there is this:

-> 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.

I highly recommend reading some installation instructions for GPU drivers on an Ubuntu system before installing the driver and choosing one single approach. Everything else is asking for trouble.

Thanks.

Thank you for your advice.

I followed your instructions and attempted to reinstall the driver. However, I encountered an error during the kernel module build, preventing the installation from completing. After checking /var/log/nvidia-installer.log, I discovered the following error message: cc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’.

Based on a discussion I found on the Linux Mint forums([SOLVED] Nvidia driver failure on Vera because of gcc-11 on updated kernel 5.19.0-28-generic - Linux Mint Forums), I realized that the issue was related to the version of GCC. To address this, I executed the following commands to upgrade GCC to version 12, which successfully resolved the issue and allowed the driver installation to complete:

sudo apt-get install gcc-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
I deeply appreciate your precise and helpful advice in resolving this problem.

1 Like

Great to hear it worked out now!

Enjoy!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.