Hi everyone! Recently upgraded to Ubuntu 21.10 and after that:
One of the monitors stopped working
In Displays there’s only one Unknown display
xrandr says: Failed to get size of gamma for output default
Nvidia X server settings window is completely blank
While using nouveau drivers, both displays are recognized, so I’m using it as a workaround for now. But some graphical features work buggy with it, e.g. screen sharing in Google Meet, so I really would love to make Nvidia drivers work.
The i915 driver for your igpu is missing, it should be in the modules package of your kernel. Likely, ubuntu upgrade forgot to install it.
Please try a full system upgrade first, then check whats installed
dpkg -l |grep “5,13.0”
Thanks a lot for helping, system upgrade only upgraded google-chrome version.
The command you asked to execute outputs nothing, but I assume you meant dpkg -l | grep 5.13.0, so here it is:
➜ ~ dpkg -l |grep 5.13.0
ii linux-headers-5.13.0-19 5.13.0-19.19 all Header files related to Linux kernel version 5.13.0
ii linux-headers-5.13.0-19-generic 5.13.0-19.19 amd64 Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
ii linux-headers-generic 5.13.0.19.30 amd64 Generic Linux kernel headers
ii linux-image-5.13.0-20-generic 5.13.0-20.20 amd64 Signed kernel image generic
ii linux-libc-dev:amd64 5.13.0-21.21 amd64 Linux Kernel Headers for development
ii linux-modules-5.13.0-20-generic 5.13.0-20.20 amd64 Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
ii linux-modules-extra-5.13.0-20-generic 5.13.0-20.20 amd64 Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
ii ruby-minitest 5.13.0-1 all Ruby test tools supporting TDD, BDD, mocking, and benchmarking
ii strace 5.13-0ubuntu1 amd64 System call tracer
Sorry for the typo.
The i915 driver should be in the package
linux-modules-extra-5.13.0-20-generic
Please check if it’s there:
ls -l /lib/modules/5.13.0-20-generic/kernel/drivers/gpu/drm/i915/
Furthermore, the headers for the kernel is missing so the nvidia driver doesn’t compile but that’s only a sidequest since without the i915 driver it won’t work anyway.
It’s installed well, i915.ko. So I guess it’s just not included in the initrd. Please run
sudo update-initramfs -u
and reboot. Afterwards, please create a new nvidia-bug-report.log
But in the very end, it still uses 5.13.0-20-generic version:
update-initramfs: Generating /boot/initrd.img-5.13.0-20-generic
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/ubuntu--vg-swap_1)
I: Set the RESUME variable to override this.
Trying to select the on-demand PRIME profile
Error: no integrated GPU detected.
So I guess something really broken in my system :(
My bad, you don’t have an igpu, so the driver obviously isn’t needed. Please run
sudo apt install linux-headers-$(uname -r)
afterwards, please post the output of
dkms status
➜ ~ sudo apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package linux-headers-5.13.0-20-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'linux-headers-5.13.0-20-generic' has no installation candidate
I assume my package lists are wrong, right now trying to fix that
➜ ~ apt-cache search linux-image-5.13
linux-image-5.13.0-1004-kvm - Signed kernel image kvm
linux-image-5.13.0-1005-aws - Linux kernel image for version 5.13.0 on 64 bit x86 SMP
linux-image-5.13.0-1005-gcp - Signed kernel image GCP
linux-image-5.13.0-1006-azure - Signed kernel image azure
linux-image-5.13.0-1008-oracle - Signed kernel image oracle
linux-image-5.13.0-19-generic - Signed kernel image generic
linux-image-5.13.0-19-lowlatency - Signed kernel image lowlatency
linux-image-5.13.0-20-generic - Signed kernel image generic
And
➜ ~ apt-cache search linux-headers-5.13
linux-headers-5.13.0-1004-kvm - Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
linux-headers-5.13.0-1005-aws - Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
linux-headers-5.13.0-1005-gcp - Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
linux-headers-5.13.0-1006-azure - Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
linux-headers-5.13.0-1008-oracle - Oracle Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
linux-headers-5.13.0-19 - Header files related to Linux kernel version 5.13.0
linux-headers-5.13.0-19-generic - Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
linux-headers-5.13.0-19-lowlatency - Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
So there’s an image available, but no headers?
And my sourcelist is:
➜ ~ cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu impish main universe restricted multiverse
I was not able to install needed packages through apt, so I downloaded .deb files and installed manually. After that:
➜ ~ dpkg -l | grep 5.13.0
ii linux-headers-5.13.0-19 5.13.0-19.19 all Header files related to Linux kernel version 5.13.0
ii linux-headers-5.13.0-19-generic 5.13.0-19.19 amd64 Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
ii linux-headers-5.13.0-20 5.13.0-20.20 all Header files related to Linux kernel version 5.13.0
ii linux-headers-5.13.0-20-generic 5.13.0-20.20 amd64 Linux kernel headers for version 5.13.0 on 64 bit x86 SMP
ii linux-headers-generic 5.13.0.19.30 amd64 Generic Linux kernel headers
ii linux-image-5.13.0-19-generic 5.13.0-19.19 amd64 Signed kernel image generic
ii linux-image-5.13.0-19-lowlatency 5.13.0-19.19 amd64 Signed kernel image lowlatency
ii linux-image-5.13.0-20-generic 5.13.0-20.20 amd64 Signed kernel image generic
ii linux-libc-dev:amd64 5.13.0-21.21 amd64 Linux Kernel Headers for development
ii linux-modules-5.13.0-19-generic 5.13.0-19.19 amd64 Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
ii linux-modules-5.13.0-19-lowlatency 5.13.0-19.19 amd64 Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
ii linux-modules-5.13.0-20-generic 5.13.0-20.20 amd64 Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
ii linux-modules-extra-5.13.0-20-generic 5.13.0-20.20 amd64 Linux kernel extra modules for version 5.13.0 on 64 bit x86 SMP
ii ruby-minitest 5.13.0-1 all Ruby test tools supporting TDD, BDD, mocking, and benchmarking
ii strace 5.13-0ubuntu1 amd64 System call tracer
And after restarting the Nvidia drivers work:
➜ ~ nvidia-smi
Mon Nov 15 16:59:28 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.82.00 Driver Version: 470.82.00 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| 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 |
| 24% 47C P8 15W / 215W | 329MiB / 7974MiB | 4% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 3688 G /usr/lib/xorg/Xorg 141MiB |
| 0 N/A N/A 4128 G /usr/bin/gnome-shell 139MiB |
| 0 N/A N/A 4467 G ...se/Soft/Telegram/Telegram 2MiB |
| 0 N/A N/A 4783 G ...AAAAAAAAA= --shared-files 43MiB |
+-----------------------------------------------------------------------------+