9

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?

8
  • You read a tutorial which explains how to install a custom kernel in Linux.
    – paladin
    Apr 26, 2022 at 10:55
  • Yes, but will the system work because 22.04 comes with kernel version 5.15?
    – Harry
    Apr 26, 2022 at 11:17
  • 2
    I'd install 20.04 if my hardware is older. Will be supported until 2025
    – kanehekili
    Apr 26, 2022 at 11:36
  • @kanehekili You are right. Maybe I should stick to 20.04
    – Harry
    Apr 26, 2022 at 12:37
  • 2
    i downgraded to 5.13 with no problems. touchpad is working again. i used mainline. also needed to set the default kernel in grub to 5.13 .. using GRUB_DEFAULT .. because 5.15 is still installed.
    – ruthless
    Jun 11, 2022 at 12:42

2 Answers 2

14

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
1
  • 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". Dec 24, 2022 at 8: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.

2
  • I use it in arm64 , kunpeng910 server. OK!
    – 杨贤文
    Feb 18, 2023 at 15:37
  • Following the instructions found at 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
    yesterday

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .