EDIT: see my second post as I managed to boot on a specific version of the kernel.
I can’t get the nvidia drivers to work with a Geforce 940M on Ubuntu 22.04 with linux kernel 6.5.0-26-generic and 6.2.0-39-generic. The laptop is a Asus Zenbook UX303, so it has also the Intel graphics (HD Graphics 520).
Each time I try to install an other driver, the screen seems to be freezed just after Plymouth asks for a passphrase to decrypt the disk, or, sometimes, I can get to a terminal. I tried various GRUB options like nomodeset i915.nomodeset nouveau.modeset=0
, etc. Only acpi=off
allowed me to get to a slow graphical interface.
When logged in, nvidia-smi
failed because it couldn’t communicate with the driver or gave me this:
Failed to initialize NVML: Driver/library version mismatch
I tried this:
- a standard
ubuntu-drivers install
(which defaults to 535) - the same command with various versions (470 and 550, this one with the PPA
graphics-drivers
) - a manual install, as presented in https://ubuntu.com/server/docs/nvidia-drivers-installation following the Building your own kernel modules using the NVIDIA DKMS package part
With no success.
This is the output of ubuntu-drivers devices
:
== /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001347sv00001043sd00001B1Dbc03sc02i00
vendor : NVIDIA Corporation
model : GM108M [GeForce 940M]
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-470 - distro non-free
driver : nvidia-driver-470-server - distro non-free
driver : nvidia-driver-545 - distro non-free
driver : nvidia-driver-525 - distro non-free
driver : nvidia-driver-525-server - distro non-free
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-535 - distro non-free recommended
driver : nvidia-driver-535-server - distro non-free
driver : nvidia-driver-418-server - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin
I managed to generate two bug-reports (with different kernel/driver versions but not sure which one is which right now …
nvidia-bug-report-1.log.gz (137.0 KB)
nvidia-bug-report-2.log.gz (107.8 KB)
I’m a bit lost about what to do now, any ideas?
Tell me if something isn’t clear, I’ll do my best to clarify this :)