Switch to LTS kernel on Arch Linux

Current setup:

  • Arch Linux
  • Nvidia proprietary driver
  • Syslinux bootloader

Switch to latest kernel

Install latest kernel

pacman -S linux linux-headers nvidia

Note that /etc/mkinitcpio.d/linux-lts.preset is removed

Edit bootloader

/boot/efi/EFI/syslinux/syslinux.cfg
LABEL arch MENU LABEL Arch Linux - LINUX ../vmlinuz-linux-lts + LINUX ../vmlinuz-linux # https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting APPEND ... nvidia_drm.modeset=1 nvidia_drm.fbdev=1 - INITRD ../initramfs-linux-lts.img + INITRD ../initramfs-linux.img

Edit pacman hook

/etc/pacman.d/hooks/nvidia.hook
[Trigger] - Target=nvidia-lts + Target=nvidia - Target=linux-lts + Target=linux

Ensure nvidia modules are loaded early

/etc/mkinitcpio.conf
# https://wiki.archlinux.org/title/NVIDIA#Early_loading MODULES=(... nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Rebuild initramfs

mkinitcpio -p linux

EFI Update

In both cases you may want to update your EFI files. See Automatically update EFI files after kernel update.