Hello, I have the same problem as others at Ubuntu 18.04.
I’d read a lot of advices above, ensured that secureboot is off, removed all nvidia stuff and installed driver again, updated kernel to latest, but still have an error with driver installation and running, and I have no idea why.
The errors look like other’s, for example:
$ 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.
So please, can you help me to find what I’m doing wrong?
At first the install of cuda failed with a message “cuda depending on cuda” (sorry it’s vague…). That was a problem of conflict between cuda packages. I fixed this with:
sudo apt autoclean
Hopefully this way of installing will be more stable for next Ubuntu updates…
Same issue on a new Dell laptop with Ubuntu 18.04 installed by Dell. The NVIDIA driver worked a few weeks, then stopped. I suspect a recent Ubuntu update messed up things.
$ 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.
No /etc/modprobe.d/blacklist-nvidia.conf
Tried to remove existing NVIDIA driver, reboot and reinstall driver, and reboot
Tried the driver 440, 450 and 460. Nothing worked.
There doesn’t seem to be any kernel module installed. I guess either the kernel headers or the dkms link to them is missing, please try installing the headers
I am struggling so much to get an external monitor connected via HDMI to work with my laptop (MSI GS65 Stealth running ubuntu 18.04), if you could please help me i would be forever grateful.
I tried to provide as much details as i could bellow, also i attached the bug report, if you need any additional info i will be more than happy to provide it, thanks in advance!
adnane@adnane:~$ nvidia-settings
ERROR: Unable to load info from any available system
(nvidia-settings:7370): GLib-GObject-CRITICAL **: 10:41:24.964: g_object_unref: assertion ‘G_IS_OBJECT (object)’ failed
** Message: 10:41:24.966: PRIME: No offloading required. Abort
** Message: 10:41:24.966: PRIME: is it supported? no
adnane@adnane:~$ nvidia-smi
Thu Mar 11 10:44:05 2021
±----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce RTX 2060 Off | 00000000:01:00.0 Off | N/A |
| N/A 55C P0 32W / N/A | 0MiB / 5934MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+
adnane@adnane:~$ uname -a
Linux adnane 5.4.0-66-generic #74~18.04.2-Ubuntu SMP Fri Feb 5 11:17:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
adnane@adnane:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
I seem to have the same problem (Ubuntu 18.04, kernel 5.3.0-62 or 5.4.0-66, nvidia Quatro M3000M card, nouveau blacklists, but no nvidia drivers work. The display is unclaimed and shows as “llvmpipe” in Settings > Details)
Which I guess makes sense because I have grub line GRUB_CMDLINE_LINUX_DEFAULT="nouveau.modeset=1"?
(I also commented #blacklist nvidiafb in /etc/modprobe.d/blacklist-framebuffer.conf hoping that would help.)
But most importantly… nvidia-smi Failed to initialize NVML: Driver/library version mismatch
Some nvidia drivers fail to claim the graphics card, and llvmpipe takes over and I still get atleast desktop. Other driver versions…I just get a blank black screen after grub and have to reboot into recovery mode.
No luck with adding nvidia to /etc/initramfs-tools/modules. Still get blank screen.
I suspect the problem is with the driver/library version mismatch, possibly involving dkms.
Months ago, I tried to install the nvidia driver from a .run script downloaded from the nvidia website. I haven’t gotten any nvidia driver to work since.
cat /proc/driver/nvidia/version NVRM version: NVIDIA UNIX x86_64 Kernel Module 460.32.03 Sun Dec 27 19:00:34 UTC 2020 GCC version: gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu~18.04)
dpkg -l grep nvidia-driver ii nvidia-driver-460-server 460.32.03-0ubuntu0.18.04.01 amd64 NVIDIA Server Driver metapackage
I’ll have to revert back to nouveau. I wanted to try nvidia again because nouveau can’t wake my main screen after suspend/resume.
Update: well, now nouveau driver freezes on the login screen. :/