linux icon indicating copy to clipboard operation
linux copied to clipboard

Make a short guide how to apply this :D

Open yixophoenix opened this issue 9 months ago • 15 comments

Basically title.

yixophoenix avatar Feb 24 '26 12:02 yixophoenix

What OS do you use?

Leon-Swains avatar Feb 24 '26 15:02 Leon-Swains

@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

infradragon avatar Feb 24 '26 17:02 infradragon

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)?

cybrnook avatar Feb 24 '26 19:02 cybrnook

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

Da-Boom avatar Feb 24 '26 22:02 Da-Boom

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:

  1. Run CachyOS Kernel Manager;
  2. Click on the "Configure" button;
  3. Select the tab called "patches";
  4. 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);
  5. 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.

Ruslan-Riazantsev avatar Feb 24 '26 23:02 Ruslan-Riazantsev

Thanks for this.

Could you explain also what that AUR way would be?

cybrnook avatar Feb 24 '26 23:02 cybrnook

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.

mkopec avatar Feb 24 '26 23:02 mkopec

Thanks to both of you, and truly excellent work @mkopec . Hopefully you aren't too overwhelmed.

cybrnook avatar Feb 24 '26 23:02 cybrnook

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.

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.

brumansniffer avatar Feb 25 '26 07:02 brumansniffer

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

mercuriete avatar Feb 25 '26 08:02 mercuriete

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`

Riotvan81 avatar Feb 25 '26 09:02 Riotvan81

I fixed this by running: gpg --keyserver hkps://pgp.surf.nl --recv-keys ABAF11C65A2970B130ABE3C479BE3E4300411886

nissel avatar Feb 25 '26 16:02 nissel

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.

yixophoenix avatar Feb 26 '26 07:02 yixophoenix

I fixed this by running: gpg --keyserver hkps://pgp.surf.nl --recv-keys ABAF11C65A2970B130ABE3C479BE3E4300411886

Thank you!

Riotvan81 avatar Feb 26 '26 09:02 Riotvan81

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

nfp0 avatar Feb 26 '26 18:02 nfp0