Cannot get nvidia driver (520, 515, 515-open, or 510) working in Ubuntu 22.10

OKOKOKOKO I got it working.

Thank you so much for your help @generix.

Heres what I did, line by line.

 sudo apt install --reinstall linux-image-generic
 sudo apt install --reinstall linux-headers-generic

Next,

        sudo apt remove --purge '^nvidia-.*'
        sudo apt remove --purge '^libnvidia-.*'
        sudo rm /etc/X11/xorg.conf | true
        sudo rm /etc/X11/xorg.conf.d/90-nvidia-primary.conf | true
        sudo rm /usr/share/X11/xorg.conf.d/10-nvidia.conf | true
        sudo rm /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf | true
        sudo rm /etc/modprobe.d/nvidia-kms.conf | true
        sudo rm /lib/modprobe.d/nvidia-kms.conf | true
        sudo apt update -y && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo apt clean -y && sudo apt autoclean -y

Rebooted.

Installed nvidia-driver-520 from the additional drivers tab of ubuntu.

Rebooted

nvidia-smi
Thu Oct 27 18:42:58 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 520.56.06    Driver Version: 520.56.06    CUDA Version: 11.8     |
|-------------------------------+----------------------+----------------------+
| 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  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
| 33%   38C    P0    32W / 225W |    826MiB /  8192MiB |     17%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2389      G   /usr/lib/xorg/Xorg                214MiB |
|    0   N/A  N/A      2713      G   /usr/bin/gnome-shell              195MiB |
|    0   N/A  N/A      3024      G   ...3/usr/lib/firefox/firefox      237MiB |
|    0   N/A  N/A      3036      G   ...b/thunderbird/thunderbird      145MiB |
|    0   N/A  N/A      3225      G   ...mail/bridge/proton-bridge        2MiB |
|    0   N/A  N/A      3567      G   ...AAAAAAAAA= --shared-files       26MiB |
+-----------------------------------------------------------------------------+

Works! Once again, if you have patreon I would be happy to donate.

8 Likes