Use mainline to easily upgrade your kernel

Use mainline to easily upgrade your kernel

Table of Contents

When I installed Xubuntu 22.04, I was shocked to see that Bluetooth wasn’t working. I’ve got a pretty standard and well-supported Bluetooth chipset, Intel Wireless-AC 3168 Bluetooth, so this threw me for a loop. After blaming and apologizing to Blueman, I found a hint on the Arch Linux forum. The kernel version on 22.04, 5.15.0.18.18, is currently broken with several Intel Bluetooth chipsets. Reports in that same thread said the issue was resolved in 5.15.4, so I set out to upgrade my kernel… something I haven’t had to do in a really long time. It was surprisingly easy. Here’s a guide to upgrade your kernel.

Upgrading my kernel

The good news is that upgrading your kernel no longer requires compiling it yourself. Did I mention that it’s been a really long time since I’ve had to do this? After searching for a bit, I came across suggestions to use a utility called Ukuu (the “Ubuntu Kernel Update Utility”). However, this project is no longer free. Instead, you should now use a project called mainline.

Fair warning now… installing alternative kernels could leave your system worse than you started. Like the version currently available in Xubuntu 22.04, kernel updates can have regressions and will be less tested than those in the standard Ubuntu repositories. You have been warned!

Installing mainline

To easily install the latest version of mainline and stay up-to-date, use the cappelikan PPA. Fire up a terminal and enter the following commands:

sudo add-apt-repository ppa:cappelikan/ppa
sudo apt update
sudo apt install mainline

Once installed, you will find Ubuntu Mainline Kernel Installer in your application menu.

Using mainline

The application interface is pretty straightforward. Select a kernel version, click Install, and it will be installed!
The application interface is pretty straightforward. Select a kernel version, click Install, and it will be installed!

From here, everything is easy. Select your desired kernel version (I opted for 5.15.24) and click Install. The kernel and my NVIDIA kernel modules were successfully installed. Upon rebooting, everything, including my Bluetooth, was functional!

Your mileage may vary, but this was the last thing I needed to be running at 100% with Xubuntu 22.04. Here’s hoping this helps somebody else with unexplainable Bluetooth issues. 😉

comments powered by Disqus

Related Posts

Xubuntu 18.04 "Bionic Beaver" Released

Xubuntu 18.04 "Bionic Beaver" Released

Xubuntu 18.04 LTS has been released and will be supported for three years. Check out the visual tour to see the latest updates in action.

Read More
FOSS Roundup #3 - Back at it with Xubuntu

FOSS Roundup #3 - Back at it with Xubuntu

This week's roundup features the retirement of Clutter, official OBS Flatpak support, improved device support with libinput, and more!

Read More
Install Xubuntu 19.10 on a Raspberry Pi 4

Install Xubuntu 19.10 on a Raspberry Pi 4

An in-depth guide to install Xubuntu 19.10 "Eoan Ermine" on the Raspberry Pi 4 single-board, ARM-based personal computer.

Read More