You are not logged in.

#1 2015-10-10 00:25:06

samkostka
Member
From: Smallest State, Longest Name
Registered: 2015-09-07
Posts: 18

Automatically apply kernel patch every upgrade?

Hi everyone, I have an acer C720 Chromebook with the Celeron 2957U processor.  This means it has a trackpad that by default is not activated by the kernel, since it is on I2C and I2C is not enumerated by ACPI.  However, someone has made a kernel patch to get the linux kernel to activate it anyway, hosted on Github here: https://github.com/GalliumOS/linux-patc … elan.patch.  My question is in 2 parts: 1) How can I apply this?  I've already read the instructions on the Arch wiki, but I'm having trouble fully understanding them.  And my second question is, How can I make this patch be reapplied every time the linux kernel updates?  I'd kind of like to not have to manually re-enable my touchpad with every kernel update.  Thanks!

Offline

#2 2015-10-10 00:38:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Automatically apply kernel patch every upgrade?

Take the linux PKGBUILD and add this patch to it (there are already a couple of others, so it should be self evident). Change the pkgbase as per the comment and build the new kernel. Then add it to your boot{loader,manager}. Use ABS or Asp for this.

When a new kernel arrives, rinse and repeat.

If you wanted to, you could script this. See the script I use, for example.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-10-10 00:39:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Automatically apply kernel patch every upgrade?

1) https://wiki.archlinux.org/index.php/Ke … ompilation
2) Keep your PKGBUILD.  Then when there is a new kernel, just rerun `makepkg -i` or treat it like any other PKGBUILD you wish to update.

(edit: too slow)

To address what I suspect might be a misunderstanding, though: you can't apply a patch to a kernel installed from the binary repos.  You must build your own kernel - you can use the ABS to use the repo kernel as a starting point, but you must build it yourself.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2015-10-10 01:25:10

samkostka
Member
From: Smallest State, Longest Name
Registered: 2015-09-07
Posts: 18

Re: Automatically apply kernel patch every upgrade?

Thanks to both of you for the help; I have no clue how I missed the fairly detailed tutorial on the wiki here: https://wiki.archlinux.org/index.php/Ke … ild_System.  I guess I didn't read closely enough.  I'll go ahead and set up an Arch/Chrome OS dualboot probably tomorrow.

Offline

Board footer

Powered by FluxBB