What is the XanMod Kernel?

XanMod is a general-purpose Linux kernel distribution that provides custom settings, patches, and optimizations designed to deliver a stable, smooth, and responsive system experience. It is primarily built for 64-bit (amd64) Debian-based distributions (including Ubuntu and its derivatives) but can be compiled for other platforms.


Key Characteristics of XanMod


Installation and Compatibility

Users can install XanMod via the official APT repository on Debian and Ubuntu systems. The project provides multiple package variants (e.g., linux-xanmod-x64v3) tailored to different CPU architectures.

IMPORTANT: While XanMod offers significant performance benefits, proprietary DKMS modules such as NVIDIA drivers, OpenZFS, VirtualBox, and VMware may not immediately support the latest kernel versions, potentially causing compatibility issues until updates are released.


Is XanMod better than Linux Mint default kernel?

XanMod is better than the Linux Mint default kernel specifically for performance-oriented tasks like gaming, multimedia production, and high-performance workstations, whereas the default kernel is superior for general stability and broad hardware support.

The choice depends on your specific use case and tolerance for risk:

Feature

Linux Mint Default Kernel

XanMod Kernel

Primary Focus

Stability & Broad Hardware Support Performance & Low Latency

Best For

General use, servers, reliability Gaming, multimedia, high-performance workstations

Updates

Conservative, thoroughly tested Aggressive, less exhaustive testing

Secure Boot

Supported Not Supported (Must be disabled)

Official Support

Fully supported by Mint Not supported; use at own risk

The decision between XanMod and the Linux Mint default kernel hinges on a trade-off between performance gains and system stability, particularly concerning hardware drivers.

In essence, XanMod can offer a tangible performance boost for specific workloads, but this comes with the responsibility of managing potential driver incompatibilities. The default kernel provides a reliable and hassle-free experience out of the box.


Install the XanMod Kernel on Linux Mint

Installing the XanMod Kernel on Linux Mint can significantly improve system performance, especially for desktop responsiveness, gaming, and I/O-intensive tasks. It offers a preemptive kernel with optimized CPU scheduling and enhanced I/O throughput, making it ideal for users seeking lower latency and smoother performance compared to the default kernel. However, it does not support Secure Boot, and some hardware (like NVIDIA GPUs or VirtualBox) may require additional setup.

IMPORTANT: XanMod does not support Secure Boot. Proprietary drivers (NVIDIA, VirtualBox, VMware) may require manual recompilation after kernel updates.

Prerequisites

Before You Begin

  1. Check your current kernel: uname -r
  2. Save it for rollback purposes: uname -r > ~/kernel-original.txt
  3. Ensure Timeshift is configured before running this command and create a restore point (recommended): sudo timeshift --create --comments "before-xanmod"

Installation Steps

  1. Update the system
    sudo apt update && sudo apt upgrade -y
    sudo reboot
  2. Install required tools
    sudo apt install dirmngr lsb-release ca-certificates software-properties-common apt-transport-https curl gnupg -y
  3. Import the XanMod GPG key
    wget -qO - https://dl.xanmod.org/archive.key | sudo gpg --dearmor -vo /etc/apt/keyrings/xanmod-archive-keyring.gpg
  4. Add the XanMod repository
    echo "deb [signed-by=/etc/apt/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/xanmod-release.list
  5. Update the package list
    sudo apt update
  6. Check CPU compatibility level
    wget https://dl.xanmod.org/check_x86-64_psabi.sh && chmod +x check_x86-64_psabi.sh && ./check_x86-64_psabi.sh
  7. Install the appropriate kernel version
    • x64v1: sudo apt install linux-xanmod-x64v1
    • x64v2: sudo apt install linux-xanmod-x64v2
    • x64v3: sudo apt install linux-xanmod-x64v3
    • x64v4: sudo apt install linux-xanmod-x64v4
  8. Install microcode updates (recommended)
    • AMD: sudo apt install amd64-microcode
    • Intel: sudo apt install intel-microcode
  9. Update GRUB and reboot
    sudo update-grub
    sudo reboot
  10. Verify installation
    uname -r (output should contain "xanmod")

Once installed, you’ll likely notice faster application launches, reduced input lag, and improved gaming performance, especially with Wine/Proton. For specialized needs, consider installing linux-xanmod-rt (real-time) for ultra-low latency in audio production or competitive gaming.


Uninstall XanMod and Revert to the Default Linux Mint Kernel

  1. Boot via GRUB
    Hold Shift during boot → "Advanced options for Linux Mint" → Select a kernel without "xanmod" in the name to boot into.
  2. Remove XanMod packages
    sudo apt remove --purge linux-image-*xanmod* linux-headers-*xanmod* linux-xanmod*
    sudo apt autoremove
    sudo update-grub
  3. (Optional) Remove the repository
    sudo rm /etc/apt/sources.list.d/xanmod-release.list
    sudo apt update