I can’t get the nvidia drivers to work on Ubuntu 22.04 (or 20.04 before that). I’ve tried pretty much all the possible driver versions (470, 510, 525, 535, 545, …). The drivers install fine, the modules load, nvidia-smi
works, but X doesn’t load.
$ sudo X :0
Fatal server error:
[ 924.220] (EE) NVIDIA: A GPU exception occurred during X server initialization
[ 924.220] (EE)
[ 924.220] (EE)
nvidia-bug-report.log.gz (473.9 KB)
The problems started when I ran a do-release-upgrade
from 20.04 to 22.04, but I could not get back to a working configuration. Finally, I did a fresh install of Ubuntu 20.04 LTS, but this did not help.
In the current configuration, I’m on the 5.15 kernel (Ubuntu 22.04 LTS). But I’ve also been on the
$ sudo dmesg | grep -i nvidia
[ 1.073599] nvidia-gpu 0000:0b:00.3: enabling device (0000 -> 0002)
[ 2.429527] nvidia-gpu 0000:0b:00.3: i2c timeout error e0000000
[ 5.541281] nvidia: loading out-of-tree module taints kernel.
[ 5.541291] nvidia: module license 'NVIDIA' taints kernel.
[ 5.590959] nvidia-nvlink: Nvlink Core is being initialized, major device number 510
[ 5.597811] nvidia 0000:0b:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 5.617433] audit: type=1400 audit(1708689239.795:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=800 comm="apparmor_parser"
[ 5.617439] audit: type=1400 audit(1708689239.795:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=800 comm="apparmor_parser"
[ 5.643667] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input6
[ 5.643703] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input7
[ 5.643745] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input8
[ 5.643776] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input9
[ 5.643804] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input10
[ 5.643841] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input11
[ 5.643877] input: HDA NVidia HDMI/DP,pcm=12 as /devices/pci0000:00/0000:00:03.1/0000:0b:00.1/sound/card0/input12
[ 5.644638] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 525.147.05 Wed Oct 25 20:27:35 UTC 2023
[ 5.656984] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 525.147.05 Wed Oct 25 20:21:31 UTC 2023
[ 5.674943] [drm] [nvidia-drm] [GPU ID 0x00000b00] Loading driver
[ 11.938134] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:0b:00.0 on minor 0
[ 12.108434] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[ 12.111661] nvidia-uvm: Loaded the UVM driver, major device number 508.
$ nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.147.05 Driver Version: 525.147.05 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| 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:0B:00.0 On | N/A |
| 24% 64C P0 78W / 250W | 1MiB / 8192MiB | 100% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+