In my new laptop with dual boot (Ubuntu 22.04 with kernel 6.7 + Windows 11), I tried installing the most recent production-branch Nvidia driver (version 535) available for my GPU (GeForce 4070). While no error seems to be thrown during installation, when I try nvidia-smi
I get the infamous error:
NIDIA-SMI has failed because it couldn't communicate with theNVIDIA driver. Make sure that the latest NVIDIA driver is installedand running.
To solve that, I have gone through dozens of previous questions/answers asked here in the past. I tried:
disabling Secure Boot as suggested in this question.
purging + reinstalling as suggested in this prior question:
sudo apt-get remove --purge '^nvidia-.*'sudo apt-get remove --purge '^libnvidia-.*'sudo apt-get remove --purge '^cuda-.*'sudo apt install nvidia-driver-535
(I also tried purging and then installing via Software & Updates, or purging and then installing via the terminal at Ubuntu recovery terminal as root).
issuing
prime-select nvidia
as suggested in this question.making sure I have Wayland disabled, as suggested in multiple places.
Nothing helped. What else could I try?