Black screen after update of Linux from 5.8.0-59 to 5.11.0-25

Asked by Claudio Peretti

After quite 15 days not using Linux on a PC, running also Win 10, I restarted Ubuntu from GRUB and leave the computer doing the automatic updates. After the required restart: complete black screen. I had the some problem some time ago after updating Ubuntu from 20.04 to 21.xx. I succeeded in restoring the system retrofitting it to the original 20.04 LTS. Now it happens the same, but with the new Linux kernel.
I succeeded to have the system running using GRUB Customizer, with advanced Ubuntu settings and starting the computer with Linux 5.8.0-59 Generic.
Since, after the starting of Ubuntu with the latest Linus 5.11, I didn't see the logo of the NVIDIA graphic card, I presume that the new Linux 5.11 doesn't work with the graphic card driver. Mine is: NVIDIA Corp. GT215 (for GEForce GT320)
Other Info on my PC: it is a 64 bit with 4 HDD and Linux is running on a different HDD from WIN10.
CPU: Intel® Core™ i5 CPU 650 @ 3.20GHz × 4
GNOME Version: 3.36.8
RAM 8 GB
Total ROM: 5.2 TB

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes, what is the output of the following commands:

uname -a
lsb_release -crid
dpkg -l | grep ' linux-'
dpkg -l | grep -i 'nvidia'

Revision history for this message
Claudio Peretti (clauperetti) said :
#2

uname -a:
Linux claudio-ACER 5.8.0-59-generic #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

 lsb_release -crid: Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

dpkg -l | grep ' linux-':
i linux-base 4.5ubuntu3.6 all Linux image base package
ii linux-firmware 1.187.15 all Firmware for Linux kernel drivers
ii linux-generic-hwe-20.04 5.11.0.25.27~20.04.10 amd64 Complete Generic Linux kernel and headers
ii linux-headers-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Linux kernel headers for version 5.11.0 on 64 bit x86 SMP
ii linux-headers-5.4.0-42 5.4.0-42.46 all Header files related to Linux kernel version 5.4.0
ii linux-headers-5.4.0-42-generic 5.4.0-42.46 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii linux-headers-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Linux kernel headers for version 5.8.0 on 64 bit x86 SMP
ii linux-headers-generic-hwe-20.04 5.11.0.25.27~20.04.10 amd64 Generic Linux kernel headers
ii linux-hwe-5.11-headers-5.11.0-25 5.11.0-25.27~20.04.1 all Header files related to Linux kernel version 5.11.0
ii linux-hwe-5.8-headers-5.8.0-59 5.8.0-59.66~20.04.1 all Header files related to Linux kernel version 5.8.0
ii linux-image-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.4.0-42-generic 5.4.0-42.46 amd64 Signed kernel image generic
rc linux-image-5.8.0-45-generic 5.8.0-45.51~20.04.1+1 amd64 Signed kernel image generic
rc linux-image-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-49-generic 5.8.0-49.55~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-50-generic 5.8.0-50.56~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Signed kernel image generic
rc linux-image-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Signed kernel image generic
ii linux-image-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-20.04 5.11.0.25.27~20.04.10 amd64 Generic Linux kernel image
ii linux-libc-dev:amd64 5.4.0-80.90 amd64 Linux Kernel Headers for development
ii linux-modules-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
rc linux-modules-5.4.0-42-generic 5.4.0-42.46 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-45-generic 5.8.0-45.51~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-49-generic 5.8.0-49.55~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-50-generic 5.8.0-50.56~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii linux-modules-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii linux-modules-extra-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
rc linux-modules-extra-5.4.0-42-generic 5.4.0-42.46 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-45-generic 5.8.0-45.51~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-48-generic 5.8.0-48.54~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-49-generic 5.8.0-49.55~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-50-generic 5.8.0-50.56~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-53-generic 5.8.0-53.60~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
rc linux-modules-extra-5.8.0-55-generic 5.8.0-55.62~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii linux-modules-extra-5.8.0-59-generic 5.8.0-59.66~20.04.1 amd64 Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for A

dpkg -l | grep -i 'nvidia':
ii libcuda1-340 340.108-0ubuntu5.20.04.2 amd64 NVIDIA CUDA runtime library
ii nvidia-340 340.108-0ubuntu5.20.04.2 amd64 NVIDIA binary driver - version 340.108
ii nvidia-opencl-icd-340 340.108-0ubuntu5.20.04.2 amd64 NVIDIA OpenCL ICD
ii nvidia-settings 470.57.01-0ubuntu0.20.04.1 amd64 Tool for configuring the NVIDIA graphics driver
ii screen-resolution-extra 0.18build1 all Extension for the nvidia-settings control panel

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

There is a know incompatibility between the inux-image-generic-hwe-20.04 kernel and nvidia-340 in the Ubuntu repositories see Bug #1916640

You either have to stick to the 5.8.0-* version of the kernel (e.g. by removing all linux-hwe related packages)
or
you can install a modified version of the nvidia-340 packages from https://launchpad.net/~kelebek333/+archive/ubuntu/nvidia-legacy (standard disclaimer for PPAs applies of course)

Revision history for this message
Claudio Peretti (clauperetti) said :
#4

Thank you so much for your suggestions: unfortunately I am not an expert user of Linux, so I would like to know how can I implement your suggestion: "to stick to the 5.8.0-* version of the kernel (e.g. by removing all linux-hwe related packages)"
I am sure that there are good command lines to be used with Terminal, so I would be grateful if you give me this suggestion too.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

The commands depend on your current package status, so I have to ask for some output before.

I suggest to do some clean-up action as first step:

Open a terminal and execute the commands

dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge
sudo apt --purge autoremove

And then please execute the command

dpkg -l | grep 5.11.0

and copy/paste the output into the question document that we can see.

Revision history for this message
Claudio Peretti (clauperetti) said :
#6

In the meantime I tried to install the modified version of the nvidia-340 video driver and now Ubuntu starts correctly.
In addition, may be the system will run better, here is the output after I run your suggested commands:
claudio@claudio-ACER:~$ dpkg -l | grep 5.11.0
ii fwupd 1.5.11-0ubuntu1~20.04.2 amd64 Firmware update daemon
ii fwupd-signed 1.27.1ubuntu5+1.5.11-0ubuntu1~20.04.2 amd64 Linux Firmware Updater EFI signed binary
ii libfwupd2:amd64 1.5.11-0ubuntu1~20.04.2 amd64 Firmware update daemon library
ii libfwupdplugin1:amd64 1.5.11-0ubuntu1~20.04.2 amd64 Firmware update daemon plugin library
ii linux-generic-hwe-20.04 5.11.0.25.27~20.04.10 amd64 Complete Generic Linux kernel and headers
ii linux-headers-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Linux kernel headers for version 5.11.0 on 64 bit x86 SMP
ii linux-headers-generic-hwe-20.04 5.11.0.25.27~20.04.10 amd64 Generic Linux kernel headers
ii linux-hwe-5.11-headers-5.11.0-25 5.11.0-25.27~20.04.1 all Header files related to Linux kernel version 5.11.0
ii linux-image-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Signed kernel image generic
ii linux-image-generic-hwe-20.04 5.11.0.25.27~20.04.10 amd64 Generic Linux kernel image
ii linux-modules-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP
ii linux-modules-extra-5.11.0-25-generic 5.11.0-25.27~20.04.1 amd64 Linux kernel extra modules for version 5.11.0 on 64 bit x86 SMP

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#7

If the system runs well again (with the nvidia-340 package from the PPA), then I want to recommend to leave it as it is and not to go back to kernels with lower versions.

I just tried to find some further details and it seems that you would have to go back to the 5.4.0 family of the kernel, because installing the 5.8.0 kernel meta packages would probably again install an upgrade to 5.11.0.

Revision history for this message
Claudio Peretti (clauperetti) said :
#8

Thank you: problem solved!