I just installed Ubuntu 22.04 on a Lenovo Extreme Gen 5 laptop, and it started with the nouveau driver (which worked fairly well, but had some issues with an external USB-C monitor). So I installed nvidia-driver-515, which was recommended. Now the laptop won’t even detect the external monitor, and it seems like the Nvidia driver is not active:
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
I’ll attach the bug report, hoping someone can point me in the right direction. nvidia-bug-report.log.gz (76.5 KB)
There are a lot of AER errors flooding the logs, please check for a bios update first.
Regarding the driver, there are no kernel modules available/built. Please post the output of
cc -v
and
dpkg -l |grep nvidia
I have tried to go through the other posts, and think I’ve tried most of the suggested solutions.
BIOS update was the first I did when I got the laptop on Friday, so that’s up to date.
I don’t have cc installed, is it necessary?
$ cc -v
Command 'cc' not found, but can be installed with:
sudo apt install gcc # version 4:11.2.0-1ubuntu1, or
sudo apt install clang # version 1:14.0-55~exp2
sudo apt install pentium-builder # version 0.21ubuntu1
sudo apt install tcc # version 0.9.27+git20200814.62c30a4a-1
I had to go back to nouveau to get some work done, so now most of the nvidia packages have been removed:
$ dpkg -l | grep nvidia
rc libnvidia-compute-515:amd64 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
rc linux-modules-nvidia-515-5.15.0-47-generic 5.15.0-47.51 amd64 Linux kernel nvidia modules for version 5.15.0-47
ii linux-objects-nvidia-515-5.15.0-47-generic 5.15.0-47.51 amd64 Linux kernel nvidia modules for version 5.15.0-47 (objects)
ii linux-signatures-nvidia-5.15.0-47-generic 5.15.0-47.51 amd64 Linux kernel signatures for nvidia modules for version 5.15.0-47-generic
rc nvidia-compute-utils-515 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA compute utilities
rc nvidia-kernel-common-515 515.65.01-0ubuntu0.22.04.1 amd64 Shared files used with the kernel module
rc nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Prime
rc nvidia-settings 510.47.03-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
I’ll switch back to nvidia-driver and give you the updated list in a few hours.
Just to mention it, another challenge I have is that the latest Ubuntu kernel (5.15.0-47) doesn’t work (no network, because iwlwifi is missing), so I keep booting with the previous one (5.15.0-46). And I notice now that there are references to -47 in the nvidia package list. Not sure if that’s because I’m using the GUI tool for updating the drivers. Based on suggestions in another post, I purged all nvidia packages, then switched from nouvaeu to nvidia-driver in the GUI.
Btw, I’ve been trying with nvidia-driver-515, is it worth trying 510 or 470 (which also show up in the list) ?
$ dpkg -l | grep nvid
ii libnvidia-cfg1-515:amd64 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-515 515.65.01-0ubuntu0.22.04.1 all Shared files used by the NVIDIA libraries
ii libnvidia-compute-515:amd64 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-515:i386 515.65.01-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
ii libnvidia-decode-515:amd64 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-515:i386 515.65.01-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-egl-wayland1:amd64 1:1.1.9-1.1 amd64 Wayland EGL External Platform library -- shared library
ii libnvidia-encode-515:amd64 515.65.01-0ubuntu0.22.04.1 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-515:i386 515.65.01-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-515:amd64 515.65.01-0ubuntu0.22.04.1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-515:amd64 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-515:i386 515.65.01-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-515:amd64 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-515:i386 515.65.01-0ubuntu0.22.04.1 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii linux-modules-nvidia-515-5.15.0-47-generic 5.15.0-47.51 amd64 Linux kernel nvidia modules for version 5.15.0-47
ii linux-modules-nvidia-515-generic-hwe-22.04 5.15.0-47.51 amd64 Extra drivers for nvidia-515 for the generic-hwe-22.04 flavour
ii linux-objects-nvidia-515-5.15.0-47-generic 5.15.0-47.51 amd64 Linux kernel nvidia modules for version 5.15.0-47 (objects)
ii linux-signatures-nvidia-5.15.0-47-generic 5.15.0-47.51 amd64 Linux kernel signatures for nvidia modules for version 5.15.0-47-generic
ii nvidia-compute-utils-515 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA compute utilities
ii nvidia-driver-515 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA driver metapackage
ii nvidia-kernel-common-515 515.65.01-0ubuntu0.22.04.1 amd64 Shared files used with the kernel module
ii nvidia-kernel-source-515 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA kernel source package
ii nvidia-prime 0.8.17.1 all Tools to enable NVIDIA's Prime
ii nvidia-settings 510.47.03-0ubuntu1 amd64 Tool for configuring the NVIDIA graphics driver
ii nvidia-utils-515 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA driver support binaries
ii screen-resolution-extra 0.18.2 all Extension for the nvidia-settings control panel
ii xserver-xorg-video-nvidia-515 515.65.01-0ubuntu0.22.04.1 amd64 NVIDIA binary Xorg driver
Thank you for taking time to help out. After rebooting (with the latest 5.15.0-47 kernel) and without changing any kernel parameters, I’m now back to my original problem - the external USB-C monitor not detected. It’s what first happened, then I spent the whole of Thursday trying different forum suggestions to solve it, and ended up with the problem I described above. Anyway, here’s the outputs now:
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 2464 G /usr/lib/xorg/Xorg 4MiB |
±----------------------------------------------------------------------------+
$ uname -r
5.15.0-47-generic
Since my current (and original) problem is not exactly as described in this topic, I’m sure you will prefer me to create a new topic for my current problem - so I’ll do that
Hi,
Also, have the same trouble on Ubuntu 22.04.1 with the HWE kernel.
Fixed after switching to OEM kernel (5.17.0-1016-oem) - now running as expected.
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| 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 |
| N/A 57C P0 31W / N/A | 1096MiB / 8192MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 4015 C+G ...ome-remote-desktop-daemon 99MiB |
| 0 N/A N/A 4052 G /usr/bin/gnome-shell 435MiB |
| 0 N/A N/A 4422 G /usr/bin/Xwayland 7MiB |
| 0 N/A N/A 5507 G ...es=WebRTCPipeWireCapturer 254MiB |
| 0 N/A N/A 11106 G ...AAAAAAAAA= --shared-files 37MiB |
+-----------------------------------------------------------------------------+