Package Details: linux-xanmod 5.19.14-1

Git Clone URL: (read-only, click to copy)
Package Base: linux-xanmod
Description: The Linux kernel and modules with Xanmod patches
Upstream URL:
Licenses: GPL2
Submitter: Yoshi2889
Maintainer: figue (figuepluto, jfigueras)
Last Packager: figue
Votes: 105
Popularity: 2.61
First Submitted: 2017-02-14 09:40 (UTC)
Last Updated: 2022-10-06 06:31 (UTC)

Pinned Comments

figue commented on 2021-07-03 09:51 (UTC) (edited on 2021-07-03 09:58 (UTC) by figue)

@qontinuum yes, probably I'll need to make a new package called linux-xanmod-edge and leave this package in the stable branch. Thanks for your suggestion.

Edit: done.

figue commented on 2021-06-10 20:47 (UTC) (edited on 2021-06-10 20:48 (UTC) by figue)

Starting from 5.12.10, upstream moved config files to a folder, and it provides a config for gcc or clang. So I added a new variable :)

So you can set $_compiler to "gcc" or "clang" (default is gcc).

figue commented on 2018-12-14 00:50 (UTC) (edited on 2021-06-10 20:45 (UTC) by figue)

This package have several variables to enable/disable features.

## The following variables can be customized at build time. Use env or export to change at your wish
##   Example: env _microarchitecture=98 use_numa=n use_tracers=n use_pds=n makepkg -sc
## Look inside '' to choose your microarchitecture
## Valid numbers between: 0 to 99
## Default is: 0 => generic
## Good option if your package is for one machine: 98 (Intel native) or 99 (AMD native)
if [ -z ${_microarchitecture+x} ]; then

## Disable NUMA since most users do not have multiple processors. Breaks CUDA/NvEnc.
## Archlinux and Xanmod enable it by default.
## Set variable "use_numa" to: n to disable (possibly increase performance)
##                             y to enable  (stock default)
if [ -z ${use_numa+x} ]; then

## For performance you can disable FUNCTION_TRACER/GRAPH_TRACER. Limits debugging and analyzing of the kernel.
## Stock Archlinux and Xanmod have this enabled. 
## Set variable "use_tracers" to: n to disable (possibly increase performance)
##                                y to enable  (stock default)
if [ -z ${use_tracers+x} ]; then

## Choose between GCC and CLANG config (default is GCC)
if [ -z ${_compiler+x} ]; then

# Compile ONLY used modules to VASTLYreduce the number of modules built
# and the build time.
# To keep track of which modules are needed for your specific system/hardware,
# give module_db script a try:
# This PKGBUILD read the database kept if it exists
# More at this wiki page --->
if [ -z ${_localmodcfg} ]; then

Personally I'm running now xanmod kernel compiled with this:

env _microarchitecture=98 use_numa=n use_tracers=n use_ns=y _localmodcfg=y makepkg -sic

Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):

Code involved:

  for _myconfig in "${startdir}/myconfig" "${XDG_CONFIG_HOME}/linux-xanmod/myconfig" ; do
    if [ -f "${_myconfig}" ]; then
      if grep -q 'scripts/config' "${_myconfig}"; then
        # myconfig is a partial file. Executing as a script
        msg2 "Applying myconfig..."
        bash -x "${_myconfig}"
        # myconfig is a full config file. Replacing default .config
        msg2 "Using user CUSTOM config..."
        cp -f "${_myconfig}" .config

Latest Comments

1 2 3 4 5 6 .. 42 Next › Last »

figue commented on 2022-07-19 16:19 (UTC)

@sk21 depends on what you change. If it's already done by a PKGBUILD variable, you can launch your paru with your custom variables (add to your .bashrc or directly from terminal).

sk21 commented on 2022-07-19 03:26 (UTC)

how can i edit the PKGBUILD and make it permanent across updates? currently i download it using paru and edit it, but updating my system seems to revert to the defaults

figue commented on 2022-06-07 23:07 (UTC)

@That1Calculator unflagged:

Current Stable (STABLE) 5.17.13-xanmod1 2022-06-06

That1Calculator commented on 2022-06-07 21:10 (UTC)

@figue I flagged it out of date because 5.18.2 is out, not for 5.17.3

figue commented on 2022-05-09 20:18 (UTC)

@vegancookies as far as I know, Xanmod uses graysky's patches:

Check his repo.

vegancookies commented on 2022-05-09 12:36 (UTC)

Does this not work well with Kaby Lake? It lists all intel CPU's in the i3 i5 and i7 line ups up until 8th generation with the exception of the 7th generation? Is this a mistake?

arglebargle commented on 2022-02-06 19:27 (UTC) (edited on 2022-02-06 19:39 (UTC) by arglebargle)

@BitGaming - Things are a little confusing right now since the most recent LTS kernel is the same as the previous stable release.

Xanmod kernel branches breaks down like this:

  • xanmod-edge always tracks the newest stable branch
  • xanmod tracks the previous stable branch (oldstable in debian terminology)
  • xanmod-lts tracks the newest lts branch prior to oldstable

Following those rules you get:

  • xanmod-edge -> 5.16 ( stable)
  • xanmod -> 5.15 (oldstable)
  • xanmod-lts -> 5.10 (newest LTS prior to oldstable)

I suspect -lts will promote to 5.15 as soon as 'xanmod' moves to 5.16, which should happen when 5.17 is released in a couple of months.

Anyway, there you go.

enihcam commented on 2022-02-04 02:39 (UTC)

@BlitGaming I forwarded your question here:

figue commented on 2022-02-02 08:37 (UTC)

@enihcam done. Will be merged in next release.

@BlitGaming Check you can see the current version of every branch. This package is the latest STABLE branch. Edge, TT, RT, LTS are in separated packages here in AUR.

BlitDev commented on 2022-02-02 08:27 (UTC)

Why is the xanmod of branch 5.15 used? The last branch is 5.16, and it's not "linux-xanmod-lts"