14
November
2025
15:56

Removing the Xanmod kernel from a Linux operating system

14 November 2025 15:56

The Linux Green 21 "Xanmod" kernel is incompatible with the NVIDIA 390 driver. Therefore, I removed it, and the NVIDIA driver installed itself into the stock Linux 6.2 kernel.

Introduction

The modified Xanmod kernel is installed alongside the Russian Linux Green operating system. According to its users, using Xanmod provides a performance boost on modern processors.

My experience shows that the Xanmod kernel is not suitable for the NVIDIA graphics card driver, as the dkms module builder returns errors when installing the NVIDIA driver into the Xanmod kernel.

To display on the screen the used kernel with command line:

uname -r

On my Linux Green 21 OS I have the following output:
6.12.15-x64v1-xanmod1

Removing Kernel Xanmod

sudo apt remove linux-headers-*-x64v1-xanmod1 linux-image-*-x64v1-xanmod1
sudo apt remove linux-xanmod-*
sudo apt autoremove

Installing a stock Linux kernel

For Linux Green 21 (based on Linux Mint 21), I chose kernel 6.2 because searching for "nvidia" in the Synaptic package manager reveals packages for nVidia:390 and kernel 6.2.
This means the stock kernel 6.2 is compatible with the nVidia 390 driver.

To install kernel 6.2 I used the utility mainline.

sudo add-apt-repository ppa:cappelikan/ppa
sudo apt update
sudo apt install mainline
mainline list
mainline check
mainline install 6.2

But you can install kernel 6.2 in another way:

sudo apt install linux-headers-6.2.0-060200-generic linux-modules-6.2.0-060200-generic linux-image-unsigned-6.2.0-060200-generic

Reboot

sudo reboot

Installing the nVidia driver

See article Installing the NVidi video card drivera вместо Nouveau in Ubuntu OS. For nVidia GT610 I used these commands:

sudoapt update
sudo apt install ubuntu-drivers
ubuntu-drivers list

sudo ubuntu-drivers install

sudo ubuntu-drivers install nvidia:390

Installation of the nVidia driver went without problems, because... DKMS worked without errors.

Reboot

sudo reboot

Result

After starting the OS, the monitor resolution is set to maximum.
The animation when turned on (the appearance of the desktop from a black background) has become smooth. Also, in special utilities it is clear that in Mesa используется драйвер nvidia.

Enable hardware acceleration



Related publications