There are several alternatives:
- Download a pre-compiled kernel from the Manjaro repos.
- Download a source kernel from the Manjaro repos and compile it. This should optimize the binaries for your chipset.
- Download a source kernel from https://www.kernel.org/ and compile it. Optimized, but harder to configure :-/
See https://wiki.manjaro.org/index.php/Manjaro_Kernels
$ sudo mhwd-kernel -i linux62
- Download a kernel (you can see the available kernes at https://gitlab.manjaro.org/packages/core). None of the following commands are run as root:
$ git clone https://gitlab.manjaro.org/packages/core/linux62
- Configure the kernel:
$ cd linux62
$ nano config # Notice that there are two entries to modify
##########
# Before #
##########
CONFIG_PREEMPT_BUILD=y
# CONFIG_PREEMPT_NONE is not set
<--------- here
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y <----------- here
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
#########
# After #
#########
CONFIG_PREEMPT_BUILD=y
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_SCHED_CORE=y
$ updpkgsums
$ makepkg -s
This also updates GRUB's configuration files.
$ makepkg -i