$ git clone https://gitlab.manjaro.org/packages/core/linux56
Patch, can be found in the repository.
Put the patch file in linux56
folder.
Open PKGBUILD
, and add 'brightness.patch'
on a new line at line 71, right before the ")".
Git diff:
# '0012-bootsplash.patch'
! '0013-bootsplash.patch'
+ 'brightness.patch')
# sha256sums=(
At line 226, add a new line and paste this:
msg "Add brightness patch"
patch -Np1 -i "${srcdir}/brightness.patch"
Git diff:
# patch -Np1 -i "${srcdir}/vfs-ino.patch"
+
+ msg "Add brightness patch"
+ patch -Np1 -i "${srcdir}/brightness.patch"
#
# if [ "${CARCH}" = "x86_64" ]; then
Be careful to indentation!
Save.
$ makepkg -g
Makepkg will download build sources, like Linux kernel.
Copy lines from the output, from sha256sums=(
to the very last )
.
Paste them into PKGBUILD, replacing the previous sha256sums
array (lines 73-115)
$ makepkg -o
$ cd src/linux-5.6/
$ make modules_prepare
$ make -j$(nproc) M=drivers/gpu/drm modules
$ mkdir /tmp/staging/
$ make M=drivers/gpu/drm INSTALL_MOD_PATH=/tmp/staging modules_install
$ modprobe amdgpu
$ modprobe drm
# cp -r /tmp/staging/lib/modules/5.6.18-1-MANJARO/extra/* /lib/modules/5.6.18-1-MANJARO/kernel/drivers/gpu/drm/
5.6.18-1-MANJARO
as it depends on the Manjaro kernel version you chose