Update kernel version in linux mint 21

I have recently moved to linux mint 21 but encountered some issues with my newer hardware. My current desktop box consists of a custom build:

  • ASUS ROG Strix X570-I
  • AMD Ryzen 9 5950X
  • 64GB Corsair Vengeance
  • AMD Radeon RX 6600
  • Samsung 980 PRO 2TB PCIe NVMe Gen 4 M.2 Internal SSD Memory Card

I encountered issues with the performance of the btrfs file system as well as other drivers such as amdgpu and bluetooth drivers which prompted me to search for a solution. I ran across some reddit posts suggesting to upgrade to a kernel version later than 5.17 which included many performance enhancements. The stock kernel version included with mint 21 is from the 5.15 branch so I went searching for a solution. I found a post on linuxhint.com for ubuntu 22.04 which also worked perfectly on mint 21. I wanted to capture these notes here in the event I ever decide to reload the box.

  1. Update current install to latest versions
    sudo apt update && sudo apt upgrade -y
  2. Add the cappelikan repository
    sudo add-apt-repository ppa:cappelikan/ppa -y
  3. Install the mainline package which provides access to the most recent ubuntu linux kernels
    sudo apt update && sudo apt install mainline -y
  4. You can now update the kernel using the graphical /usr/bin/mainline-gtk tool or if you prefer the command line, /usr/bin/mainline.

At the time of this article, I chose to go with the latest version of 5.18 as 5.19 has just been released and I like to let new releases soak a bit before I venture into using them.

$ /usr/bin/mainline --list-installed
mainline 1.0.15
Distribution: Linux Mint 21
Architecture: amd64
Running kernel: 5.18.15-051815-generic
----------------------------------------------------------------------
Found installed: 5.15.0-43.46
Found installed: 5.15.0-41.44
Found installed: 5.15.0.43.44
Found installed: 5.18.15-051815.202207291649
----------------------------------------------------------------------
----------------------------------------------------------------------
$

I’m happy to say this is working just fine and all of my issues have been resolved.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.