Make a short guide how to apply this :D
Basically title.
What OS do you use?
@yixophoenix There is an AUR package if you are on Arch, the pkgbuild lists all its dependancies and how to build the package (or you could just use makepkg or an AUR helper, assuming you are using Arch) https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=linux-mkopec-git
For the latest version of CachyOS, could you provide a more step by step guide (with copy and paste commands) on building/compiling this and then installing? I also would find that helpful.
Side question, does the AUR also contain the latest commits from this repo (is it pulling from the main branch when built), or just the commits up to the point in time when it was first initially created (4 days ago as of today)?
I would like a proper patch-set that follows existing patching instructions so that we can use it to apply to the latest kernel code. That way i can apply it to TKG or tytan652 or even Cachy's kernel. I currently only have an idea on how to compile the code as-is and not how i can add the mkopec patchset into another kernel base
For the latest version of CachyOS, could you provide a more step by step guide (with copy and paste commands) on building/compiling this and then installing? I also would find that helpful.
Side question, does the AUR also contain the latest commits from this repo (is it pulling from the main branch when built), or just the commits up to the point in time when it was first initially created (4 days ago as of today)?
I would like a proper patch-set that follows existing patching instructions so that we can use it to apply to the latest kernel code. That way i can apply it to TKG or tytan652 or even Cachy's kernel. I currently only have an idea on how to compile the code as-is and not how i can add the mkopec patchset into another kernel base
For CachyOS you could use the preinstalled solution - CachyOS Kernel Manager:
- Run CachyOS Kernel Manager;
- Click on the "Configure" button;
- Select the tab called "patches";
- Remove the "0001-cachyos-base-all.patch" because it causes issues during the build. It might be fixed later (or even now, but the last time I checked it was causing issues);
- Now you need to get the patch file for your build. There are two ways to do it:
- manually by doing "git diff" with the most recent branch against the official kernel (might be tricky to choose the correct kernel version to compare against),
- or by downloading the corresponding patch file from the artifacts in the Actions
After you downloaded the patch and added it as a local patch to CachyOS Kernel Manager you need to return to the tab called "Options" and press the "Build kernel" button. When the build is done your aur-helper would ask if you want to install it. Install and reboot.
P.S. It would be beneficial to have at least one fallback kernel or other back-up strategy in case something goes wrong.
P.P.S. The AUR way should be more easy and reliable, I presume. Let me know if I you have any more questions.
Thanks for this.
Could you explain also what that AUR way would be?
Side question, does the AUR also contain the latest commits from this repo (is it pulling from the main branch when built), or just the commits up to the point in time when it was first initially created (4 days ago as of today)?
The AUR package always pulls the latest version from branch hdmi_frl. If you have yay installed, it's literally just
yay -S linux-mkopec-git
If you use GRUB, you should now have a new boot option in the GRUB menu.
Thanks to both of you, and truly excellent work @mkopec . Hopefully you aren't too overwhelmed.
Side question, does the AUR also contain the latest commits from this repo (is it pulling from the main branch when built), or just the commits up to the point in time when it was first initially created (4 days ago as of today)?
The AUR package always pulls the latest version from branch hdmi_frl. If you have yay installed, it's literally just
yay -S linux-mkopec-gitIf you use GRUB, you should now have a new boot option in the GRUB menu.
On archlinux if youre on systemd-boot then you have to go into /boot directory and there you will see new vmlinuz-linux-mkopec-git and initramfs-linux-mkopec-git.img or something, now go into /boot/loader/entries make a copy of your current linux.conf and edit it, changing the linux to linux-mkopec-git or something.. its a manual work but it works.
Dont paste this text below into your conf file. Change values in 3 places (im going off memory, please check your /boot dir )
/boot/loader/entries/linux-mkopec-git.conf
# Created by: archinstall
# Created on: 2026-01-31_11-02-18
title Arch Linux (linux-mkopec-git) # <---------------- CHANGE HERE (name it to the one that is in the /boot dir)
linux /vmlinuz-linux-mkopec-git # <---------------- CHANGE HERE
initrd /initramfs-linux-mkopec-git.img # <---------------- CHANGE HERE
options root=PARTUUID=9c3f4a4c-567e-43c3-afb5-ed552678405e zswap.enabled=0 rw rootfstype=ext4 # <---------------- DONT CHANGE ANYTHING HERE. USE YOUR EXISTING CONFIGURATION.
you don't need git to have the diff.... just go to the PR and then write .path at the end of the url.
https://github.com/mkopec/linux/pull/10.patch
Seems to be an issue with your public key when using the AUR. Been like this for several days now. Thought i'd bring it up :) `:: (1/1) Parsing SRCINFO: linux-mkopec-git gpg: error reading key: No public key pub rsa4096 2011-09-23 [SC] 647F28654894E3BD457199BE38DBBDC86092693E uid [ unknown] Greg Kroah-Hartman [email protected] uid [ unknown] Greg Kroah-Hartman [email protected] uid [ unknown] Greg Kroah-Hartman (Linux kernel stable release signing key) [email protected] sub rsa4096 2011-09-23 [E]
:: PGP keys need importing: -> ABAF11C65A2970B130ABE3C479BE3E4300411886, required by: linux-mkopec-git :: Import? [Y/n] :: Importing keys with gpg... gpg: keyserver receive failed: No data -> problem importing keys`
I fixed this by running:
gpg --keyserver hkps://pgp.surf.nl --recv-keys ABAF11C65A2970B130ABE3C479BE3E4300411886
What OS do you use?
Mint
I have a 7900 xtx and an lg 27gp95r-b, I run 4k@144 and used to run over hdmi 2.1 in windows. This monitor has hdmi 2.1 but only dp 1.4 so if you use dp you have to use dsc since it doesn't have enough bandwidth.
Sorry for late reply, some irl stuff happened.
I fixed this by running:
gpg --keyserver hkps://pgp.surf.nl --recv-keys ABAF11C65A2970B130ABE3C479BE3E4300411886
Thank you!
For anyone interested in generating patches for the stable Linux kernel release, you just need to download this patch done by comparing the hdmi_frl_stable branch to the stable tag.
https://github.com/mkopec/linux/compare/stable...mkopec:linux:hdmi_frl_stable.patch