Avoiding HWE Kernel (22.04)
Jeffrey Walton
noloader at gmail.com
Sat Apr 20 14:08:39 UTC 2024
On Sat, Apr 20, 2024 at 9:26 AM Felix Natter via ubuntu-users <
ubuntu-users at lists.ubuntu.com> wrote:
> Dear Ubuntu Experts,
>
> I would like to have a stable Ubuntu 22.04 experience
> as I need to roll it out on a number of workstations.
>
> Hence: Shall I avoid a HWE kernel (6.5.0) over stable 5.15.x?
>
> On the sand box test machine I have a AMD Ryzen Gaming Motherboard with
> a "NVIDIA Corporation GA106 [Geforce RTX 3050]" for which I configured
> Ubuntu 22.04 using [x] 3rd party drivers and intalled the 535 NVIDIA
> drivers using:
> sudo ubuntu-drivers autoinstall
> (is that recommended?)
>
> I _think_ I had the stable 5.15.x kernel from the start, and
> the upgrades switched to HWE, maybe due to Mainboard / GPU (see above) /
> NVIDIA driver? Maybe simply in a newer 22.04.x point release?
>
> In order to test the stable kernel, is the following procedure [1] ok?
>
> sudo apt install linux-image-generic // Install GA
> // Reboot into the newly-installed older kernel
> // test the 5.15 kernel with NVIDIA, two screens etc.
> sudo apt remove linux-generic-hwe-22.04 // Remove HWE
> sudo apt autoremove
>
> Or shall I keep the HWE kernel in any case when using fairly
> new Mainboards and NVIDIA GPUs (we usually use GTX
> 1050)?
>
> [1]
> https://askubuntu.com/questions/1494378/how-to-select-ga-non-hwe-kernel-during-ubuntu-desktop-22-04-lts-installation
>
To run the regular kernel, and not the HWE kernel:
1. export hwe_ver=22.04
2. remove the packages linux-headers-generic-hwe-${hwe_ver}
linux-image-generic-hwe-${hwe_ver}
3. install the packages linux-image-generic linux-headers-generic
You can perform the remove and install at the same time, and then reboot.
I also perform the following so Apt treats the kernel as automatically
installed. It eases management of upgrades and automatic removals.
4. apt-mark auto linux-image-* linux-modules-*
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240420/5a30b120/attachment.html>
More information about the ubuntu-users
mailing list