10

I am currently on ubuntu 22.04 LTS release which comes with kernel version 5.15.0-27-generic. I want to downgrade to kernel version 5.13 because of touchpad problem in my lenovo thinkbook.

Is it possible to downgrade the baked in kernel in 22.04 LTS release? If yes, how do I achieve it?

Harry
  • 205

2 Answers2

13

You can try below actions to use pimlie / ubuntu-mainline-kernel.sh:

wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
chmod +x ubuntu-mainline-kernel.sh

search and find your wanted version

ubuntu-mainline-kernel.sh -r | grep 5.13

install that version kernel

ubuntu-mainline-kernel.sh -i v5.13.19

get all menuentries

grep 'menuentry |submenu ' /boot/grub/grub.cfg | cut -f2 -d "'"

change the grub configuration

vi /etc/default/grub from: GRUB_DEFAULT=0 to: GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.13.19-051319-generic"

update grub

update-grub

reboot

reboot now

verify

uname -r

  • To make it work in my case (Lenovo Legion 5 15ITH6) I had to disable secure boot in BIOS. Without that I was getting "error: bad shim signature". – Daniel Andrzejewski Dec 24 '22 at 08:13
0

In my case, after clean install of lubuntu-22 on Dell-Inspiron_5570, experienced "elantech touchpad problem" due to which "two finger scrolling" was not working. After 4-5 hectic days on the work dealing with the arrow keys on keyboard, I found it as kernel incompatibility. Then, tried installing different kernel versions following @xiaojueguan answer and found the version 5.15.0-58-generic to be working for me.

  • I use it in arm64 , kunpeng910 server. OK! – 杨贤文 Feb 18 '23 at 15:37
  • Following the instructions found at https://wiki.ubuntu.com/Kernel/LTSEnablementStack tell you how to downgrade from the HWE kernel stack to GA; see "To downgrade from HWE/OEM to GA kernel" as the 5.15 kernel is the GA kernel stack of Ubuntu (using the GA kernel stack will mean you get security fixes; using a specific kernel leaves backport security fixes to yourself to perform) – guiverc Feb 25 '24 at 07:26