NVIDIA Qardo T2000 GPU Ubuntu 22 Dell 5540 Laptop

Last Modified: Sat, 21 Jan 2023 05:28:38 +0000 ; Created: Sat, 21 Jan 2023 05:28:38 +0000

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver Dell laptop

I tried the Ubuntu nouveau as well as the ubuntu-drivers nvidia-driver-525 and nvidia-driver-525-open without success. Setting prime-select nvidia made no difference. None of my applications would use the NVIDIA GPU in preference of the integrated Intel. nvidia-smi would not recogonize the gpu

Solution:

# clean-out any previous attempts

sudo apt-get remove --purge '^nvidia-.*' -y; sudo apt-get remove --purge '^libnvidia-.*' -y; sudo apt-get remove --purge '^cuda-.*' -y
sudo apt-get purge bumblebee -y

sudo apt-get -y autoremove

Download the latest Linux driver from NVIDIA. https://www.nvidia.com/download/index.aspx

sudo apt install build-essential libglvnd-dev pkg-config
# If you already tried the NVIDIAinstallers blacklisting method you can skip this

sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo update-initramfs -u
/sbin/reboot
# after reboot and logging back in

sudo telinit 3

sudo bash NVIDIA-Linux-x86_64-*.run

sudo /sbin/reboot
sudo apt install nvidia-prime
sudo prime-select nvidia

# should be for the last time
/sbin/reboot
nvidia-smi

References

https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux