There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Kernel Maintenance By a Novice.

been using Arch for years but i am still a novice, yesterday i had found that in order for something to work on my system i will need to edit a few lines in kernel which i did, then removed unnecessary modules > intel, > nvidia, compiled. it worked great but with Arch and its rolling release i am dreading the next update and having to go through this again.
what methods are there to automate this process?

nmtake ,

Although I haven’t used Arch for a long time, I guess wiki.archlinux.org/title/Kernel#Compilation and wiki.archlinux.org/title/…/Arch_build_system will work.

moreeni ,

You could write a bash script to automate this process. Pacman supports hooks for updates, so after kernel updates you could set it up to automatically run the script.

squid_slime OP ,

not looked in to pacman hooks but will need to now lol any i made a script that downloads, unzips and patches then compiles so mostly hands free.

Static_Rocket ,
@Static_Rocket@lemmy.world avatar

What modifications were required? The good part of a rolling release is that upstreaming things means you only have to deal with manual fixes for like 2 or 3 updates.

squid_slime OP ,

set LINK_TRAINING_ATTEMPTS from 5 to 10 in drivers/gpu/drm/amd/display/dc/link/link_dpms.c and set LINK_TRAINING_RETRY_DELAY from 50 to 100 in drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c.

i doubt this will be added to kernel as its a fix for an issue that isn’t wide spread.

imecth ,

Use diff patches and automate with some bash scripting.

squid_slime OP ,

cheers, I’m using sed to patch the files then auto mated compiling

Static_Rocket ,
@Static_Rocket@lemmy.world avatar

That wouldn’t be accepted as is, but those sound like tunables. They could be exposed as kernel parameters. May be worth submitting the patch as an RFC just to call attention to it.

squid_slime OP ,

thank you i will read up on how to submit this kind of stuff.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines