How to get the latest Linux kernel on your Ubuntu box
- Reference: 1678109705
- News link: https://www.theregister.co.uk/2023/03/06/ubuntu_latest_kernel_kde/
- Source link:
Here at Vulture Towers, we are working on a review of a machine with a 12th-generation Intel chip, and that's caused issues in some Linux distros. Back in 2021, we [1]reported on work on kernel 5.16 to add Alder Lake support . Ubuntu 22.04 LTS shipped with kernel 5.15, though. The latest release, 22.10, [2]includes the ageing kernel 5.19 , which you also get in the latest update to "Jammy", [3]22.04.2 .
Kubuntu 22.10 comes with kernel 5.19, which is already past its end of life
In both 22.04 and 22.10, we experienced issues on our Alder Lake box: under Wayland, flickering bands of noise across the screen, and under X11, slow, hesitant mouse pointer movement. More recent distros, such as openSUSE Tumbleweed, had no such problems with kernel 6.1 or 6.2. The good news is that it's quite easy to upgrade just your kernel without the hassle of updating to a new version of the whole OS… and kernel upgrades keep the previous version around (until you run sudo apt autoremove , anyway), so if something doesn't work right, you can reboot into the old kernel and remove the new one. It's fairly safe.
One option is to [4]install a third-party kernel such as Liquorix . This is straightforward, and alternative kernel builds such as this or [5]XanMod are performance-tuned for desktop use.
The Mainline tool makes it easy to pick the upstream kernel you want – and the different icon makes the stock kernels easily distinguishable
You can do it without leaving the relative safety of Ubuntu itself, though, via the [6]Mainline PPA. This is Ubuntu's version of the current, upstream kernel, without the modifications that Canonical normally makes. It works fine, and pretty much all programs shouldn't notice any difference at all, but heed the warning on that page:
Support (BEWARE: there is none)
The mainline kernel builds are produced for debugging purposes and therefore come with no support. Use them at your own risk.
The steps are pretty easy, and several [7]sites will walk you through it. All you do is add the repository: sudo add-apt-repository ppa:cappelikan/ppa
Refresh the package list, as usual: sudo apt update
Then install the new mainline tool, which puts a friendly graphical wrapper around choosing which kernel to install: sudo apt install mainline
Once it's installed, run it from your app launcher – its full name is the Ubuntu Mainline Kernel Installer – and you can choose your desired kernel. It does the rest: downloads it, installs it, adds it to your GRUB boot menu, and then you just reboot to try it. In testing, we found that it made all the issues with 5.15 and 5.19 vanish on our Alder Lake box. X11 became perfectly smooth, and all the graphical glitches in Wayland vanished. (Just for reference, they did with the Liquorix kernel as well, and we couldn't see any difference in performance.)
Presto, a few minutes later, our Kubuntu (virtual) box is running the latest and greatest kernel 6.2
If you don't see any benefit, the Mainline tool makes it easy to go back to any specific older version, or back to the stock kernel if you prefer, and there is guidance on installation in [8]some of the tutorials, too.
[9]Can we interest you in a $10 pocket calculator powered by Android 9?
[10]Linux Mint 21.2 and Cinnamon 5.8 desktop take shape
[11]My God, it's full of tabs: Vivaldi's coolest new features shine on phones and cars
[12]Fedora 38 will still support framebuffer X11 and NIS+
KDE Plasma
For the screenshots in this story, we chose Kubuntu in order to demonstrate another easy upgrade. KDE Plasma 5.27 is out, and it's [13]expected to be the final release in the KDE 5.x series – KDE Plasma 6 should arrive at some point, but it's not yet clear when. As such, Plasma 5.27 is a long-term support release, so it's worth upgrading to it. If you don't want to wait, you can install it now on Kubuntu 22.10. The procedure is much as it was when we [14]described how to install Plasma 5.25 on Kubuntu Jammy . Just add the Kubuntu-backports PPA: sudo add-apt-repository ppa:kubuntu-ppa/backports
Then do a full upgrade, however you normally prefer to do this.
It takes rather longer, but after entering one line and a couple of clicks, Kubuntu is running the last Plasma 5 desktop
There's also an [15]experimental build for Kubuntu 22.04, although it's not recommended for production use just yet. We suspect that a more complete version may yet follow, though.
At least one Ubuntu remix, Tuxedo OS, already has it. [16]We looked at Tuxedo OS 1.0 in October, and Tuxedo Computers has now [17]released Tuxedo OS 2.0, with kernel 6.1 and KDE Plasma 5.27 – so it certainly can be made to work on the basis of Ubuntu Jammy. If you're ready to do a clean install, this is an option that's available right now. ®
Get our [18]Tech Resources
[1] https://www.theregister.com/2021/12/01/linux_5_16_alder_lake/
[2] https://www.theregister.com/2022/10/25/linux_kernel_51917_ubuntu/
[3] https://fridge.ubuntu.com/2023/02/24/ubuntu-22-04-2-lts-released/
[4] https://www.theregister.com/2022/02/25/friday_foss_fest_liquorix_kernel/
[5] https://xanmod.org/
[6] https://wiki.ubuntu.com/Kernel/MainlineBuilds
[7] https://sleeplessbeastie.eu/2021/11/01/how-to-install-mainline-linux-kernel-on-ubuntu-based-distribution/
[8] https://ubuntuhandbook.org/index.php/2020/08/mainline-install-latest-kernel-ubuntu-linux-mint/
[9] https://www.theregister.com/2023/03/03/android_pocket_calculator/
[10] https://www.theregister.com/2023/03/02/linux_mint_212/
[11] https://www.theregister.com/2023/03/02/vivaldi_5_7/
[12] https://www.theregister.com/2023/03/01/fedora_38_legacy_tech/
[13] https://www.theregister.com/2023/02/16/kde_plasma_527_gnome_44/
[14] https://www.theregister.com/2023/02/16/kde_plasma_527_gnome_44/
[15] https://launchpad.net/~kubuntu-ppa/+archive/ubuntu/experimental
[16] https://launchpad.net/~kubuntu-ppa/+archive/ubuntu/experimental
[17] https://www.tuxedocomputers.com/en/Tailor-made-operating-system-TUXEDO-OS-2-finished-and-ready-for-use-.tuxedo
[18] https://whitepapers.theregister.com/
Re: Latest Kernal
I stopped doing this years ago, after finding the process way too much faff, and it becoming impossible to build a kernel that would even boot, on Ubuntu. I'm now running Liquorix, which works fine, but perhaps what I might try next is custom-building, using their config as a starting point and stripping out more unnecessary stuff. Interesting that the vmlinuz image, and the modules dir, are much smaller with the Liquorix kernel, compared to the 'canned' Ubuntu kernels.
Would love to see how quickly a kernel compiles on my 12-thread Ryzen, compared with the old single-core Athlon 64 I used to use, way back in the day!
Re: Latest Kernal
-> I'm running Linux kernel 6.1.13 on Linux Mint 20. I grab the sources from the Linux kernel archive and compile it. I started doing it years ago when my wifi chipset was dropping the connection - using the latest and greatest kernel fixed it. Then later I moved to a new CPU with GPUs that weren't supported by the stock kernel.
And that is why there will never be a "year of the Linux desktop".
Grandma to Eddie, her grandson: Eddie, my wifi doesn't work. It keeps dropping the connection.
Eddie to Grandma: Have you tried getting the latest kernel sources and seeing if there is a fix? You will have to use ethernet or another machine then copy the source to your laptop, plus install build-essentials to get started.
Grandma to Eddie: What the eff are you talking about? I'm too old for this. You told me Linux is better than Windows.
Re: Latest Kernal
VOT - Presumably you under the mistaken impression that this is SOP for anyone using Linux?
Re: Latest Kernal
Or, if you run Slackware's -current:
Kernel 6.1.15 as of Saturday.
KDE 5.27 since February 15th.
Both available using slackpkg in the usual manner.
Re: Latest Kernal
Perhaps worth mentioning that Mr Volkerding's configs are generally pretty useful as a starting point for those who wish to experiment.
Icon: I'm usually OK with defaults
Let One Hundred Flowers Bloom: Mao Tse Tung...................NOT!!!
Please....give us all a break......there are FAR TOO MANY Linux choices out there:
- Link: https://distrowatch.com/
This El Reg commentard happens to like Fedora/XFCE.......currently somewhere around Linux 6.1.11......give or take.
....RedHat Retail from RH5.1 to RH9....and then Fedora from FC5 to F37....they all were (and currently are) good enough to suit anyone!!
....Except for the abomination called GNOME...............hence XFCE being used here at White Hat Mansions.................
Re: Let One Hundred Flowers Bloom: Mao Tse Tung...................NOT!!!
@ac
The article was about mainline kernels and presumably aimed at the small cohort of people who have very recent hardware and who therefore need to take advantage of recent updates from within the Ubuntu ecosystem.
Thanks.
Mainline v. UKUU?
I've used UKUU in the past to update kernels with moderate success and some notable failures. Does anyone have experience with both kernel update tools and be willing to explain the differences (if any) and/or their experience? I'm curious as I'm thinking of ditching my Radeon setup and giving Intel Arc a shot on my home pc but only kernel 6.1 and newer offer Arc support and Zorin 16.2 is still using 5.15.
Why do instructions of this sort always include `sudo apt update` when `add-apt-repository` has, for some years now, done this automatically?
Latest Kernal
I'm running Linux kernel 6.1.13 on Linux Mint 20. I grab the sources from the Linux kernel archive and compile it. I started doing it years ago when my wifi chipset was dropping the connection - using the latest and greatest kernel fixed it. Then later I moved to a new CPU with GPUs that weren't supported by the stock kernel.
I've got it set up such that it takes just a few minutes to set it up to compile, and then just a single command to install it once the compile has finished.
I usually take the current stable kernel but wait until it has received a number of revisions. I have never had any problems even though I've done this dozens of times.