ERROR: NVIDIA driver 470 is not loaded - Ubuntu 20.04

Hello,

Nvidia drivers seem not to load even though the card itself is recognized by the OS and the recommended driver 470 is installed.

nvidia-smi

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

dkms status

nvidia, 470.74, 5.11.0-38-generic, x86_64: installed

I found several related topics, but I could not manage to find a solution.

Those are the results that I got when checking the current status (attaching nvidia-bug-report.log as well):

uname -r

5.11.0-38-generic

lspci -v | grep VGA

00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 05) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller: NVIDIA Corporation Device 2520 (rev a1) (prog-if 00 [VGA controller])

And below the attempts that I followed:

  • Disabling security boot.
  • Reinstalling driver 470 and reboot.
  • Deleting the blacklist-nvidia.conf

Any support would be highly appreciated!

nvidia-bug-report.log.gz (2.4 MB)

Unfortunately, your log is spammed with the error message

[ 3.781927] kernel: NVRM: request_mem_region failed for 0M @ 0x0. This can
NVRM: occur when a driver such as rivatv is loaded and claims
NVRM: ownership of the device’s registers.
[ 3.781952] kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 3.781953] kernel: NVRM: None of the NVIDIA devices were initialized.

so I can’t see the underlying problem. Please check if setting the kernel parameter
pci=realloc
works around the issue.
If that doesn’t help, please create a dmesg output instantly after rebooting
sudo dmesg >kernel.txt

Solved setting pci=realloc!
Just fixed before reading your answer, cause I found this post where you had already provided the solution:

Thanks a lot!
I’ve just joined to answer myself linking that post :-)