[RESOLVED] Do I need kernel HWE if I already have kernel 6.8.0-31-generic? Ubuntu 22.04 LTS

Just set up my AMD 7040 yesterday. Testing it with Ubuntu 22.04 LTS. Followed directions on FW site. The Install OEM D Kernel failed because the kernel D is not available. My Ubuntu came with kernel 6.8.0-31-generic.

This command failed:

sudo apt update && sudo apt upgrade -y && sudo snap refresh && sudo apt-get install linux-oem-22.04d -y

Because of this, I decided not to execute step 2, which is:

latest_oem_kernel=$(ls /boot/vmlinuz-* | grep '6.5.0-10..-oem' | sort -V | tail -n1 | awk -F'/' '{print $NF}' | sed 's/vmlinuz-//') && sudo sed -i.bak '/^GRUB_DEFAULT=/c\GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux '"$latest_oem_kernel"'"' /etc/default/grub && sudo update-grub && sudo apt install zenity && mkdir -p ~/.config/autostart && [ ! -f ~/.config/autostart/kernel_check.desktop ] && echo -e "[Desktop Entry]\nType=Application\nExec=bash -c \"latest_oem_kernel=\$(ls /boot/vmlinuz-* | grep '6.5.0-10..-oem' | sort -V | tail -n1 | awk -F'/' '{print \\\$NF}' | sed 's/vmlinuz-//') && current_grub_kernel=\$(grep '^GRUB_DEFAULT=' /etc/default/grub | sed -e 's/GRUB_DEFAULT=\\\"Advanced options for Ubuntu>Ubuntu, with Linux //g' -e 's/\\\"//g') && [ \\\"\\\${latest_oem_kernel}\\\" != \\\"\\\${current_grub_kernel}\\\" ] && zenity --text-info --html --width=300 --height=200 --title=\\\"Kernel Update Notification\\\" --filename=<(echo -e \\\"A newer OEM D kernel is available than what is set in GRUB. <a href='https://github.com/FrameworkComputer/linux-docs/blob/main/22.04-OEM-D.md'>Click here</a> to learn more.\\\")\"\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-enabled=true\nName[en_US]=Kernel check\nName=Kernel check\nComment[en_US]=\nComment=" > ~/.config/autostart/kernel_check.desktop

I did see Jorg_Mertin’s post that recommended
to “Install the HWE kernel. Works out of the box. sudo apt install linux-generic-hwe-22.04”

Two questions

  1. Should I install the HWE kernel if uname -r tells me that I am running kernel 6.8.0-31-generic.

  2. Should I do the command that starts with “latest_oem_kernel” even if I did NOT update my kernel. Everything with the laptop seems fine so far.

Thanks,
Nigel

I rather think you installed Ubuntu 24.04 then :slight_smile: it uses 6.8.x by default.
In that case though, you don´t have to install the hwe kernel anymore. You can though :wink:

Thanks Jorg
What about this question? Can you advise me on it?

“Should I do the command that starts with “latest_oem_kernel” even if I did NOT update my kernel.”

The actual command on the Framework Ubuntu install page was:latest_oem_kernel=$(ls /boot/vmlinuz-* | grep ‘6.5.0-10…-oem’ | sort -V | tail -n1 | awk -F’/’ ‘{print $NF}’ | sed ‘s/vmlinuz-//’) && sudo sed -i.bak ‘/^GRUB_DEFAULT=/c\GRUB_DEFAULT=“Advanced options for Ubuntu>Ubuntu, with Linux '”$latest_oem_kernel"’"’ /etc/default/grub && sudo update-grub && sudo apt install zenity && mkdir -p ~/.config/autostart && [ ! -f ~/.config/autostart/kernel_check.desktop ] && echo -e “[Desktop Entry]\nType=Application\nExec=bash -c "latest_oem_kernel=$(ls /boot/vmlinuz-* | grep ‘6.5.0-10…-oem’ | sort -V | tail -n1 | awk -F’/’ ‘{print \$NF}’ | sed ‘s/vmlinuz-//’) && current_grub_kernel=$(grep ‘^GRUB_DEFAULT=’ /etc/default/grub | sed -e ‘s/GRUB_DEFAULT=\"Advanced options for Ubuntu>Ubuntu, with Linux //g’ -e ‘s/\"//g’) && [ \"\${latest_oem_kernel}\" != \"\${current_grub_kernel}\" ] && zenity --text-info --html --width=300 --height=200 --title=\"Kernel Update Notification\" --filename=<(echo -e \"A newer OEM D kernel is available than what is set in GRUB. Click here to learn more.\")"\nHidden=false\nNoDisplay=false\nX-GNOME-Autostart-enabled=true\nName[en_US]=Kernel check\nName=Kernel check\nComment[en_US]=\nComment=” > ~/.config/autostart/kernel_check.desktop

Best,
Nigel

Not required.
If you can use the regular kernel, this is not necessary as it just informs you that a new kernel has arrived that you have to manually install.

1 Like

Thanks so much.
Nigel

1 Like

Hi @Nigel_Atkinson , Welcome to the community :slight_smile:
looks like everything is already sorted, thanks to @Jorg_Mertin :pray: