La cosa piu' semplice e sicura che tu possa fare e' di applicare la patch all'ultima release del kernel.
Ho appena provato ad applicare la patch a 3.12, 3.12.9 e 3.13 ma non va:
Codice:
jack@nostromo:~/Desktop/linux-3.12.9$ patch -p1 < ../alps.patch
patching file drivers/input/mouse/alps.c
Hunk #2 succeeded at 85 (offset -19 lines).
Hunk #3 succeeded at 126 (offset -20 lines).
Hunk #4 FAILED at 340.
Hunk #5 succeeded at 410 (offset -71 lines).
Hunk #6 succeeded at 504 with fuzz 1 (offset -71 lines).
Hunk #7 succeeded at 526 (offset -72 lines).
Hunk #8 FAILED at 625.
Hunk #9 succeeded at 635 (offset -104 lines).
Hunk #10 succeeded at 643 (offset -104 lines).
Hunk #11 succeeded at 657 (offset -104 lines).
Hunk #12 succeeded at 794 (offset -174 lines).
Hunk #13 succeeded at 1246 (offset -174 lines).
Hunk #14 succeeded at 1366 (offset -174 lines).
Hunk #15 succeeded at 1391 (offset -174 lines).
Hunk #16 succeeded at 1793 (offset -274 lines).
Hunk #17 FAILED at 2264.
Hunk #18 succeeded at 1950 (offset -322 lines).
Hunk #19 succeeded at 1958 (offset -322 lines).
Hunk #20 succeeded at 1974 with fuzz 2 (offset -322 lines).
Hunk #21 FAILED at 2305.
Hunk #22 FAILED at 2374.
Hunk #23 succeeded at 2105 (offset -332 lines).
5 out of 23 hunks FAILED -- saving rejects to file drivers/input/mouse/alps.c.rej
patching file drivers/input/mouse/alps.h
Hunk #1 FAILED at 18.
Hunk #2 succeeded at 61 (offset -5 lines).
Hunk #3 succeeded at 69 (offset -5 lines).
Hunk #4 succeeded at 80 (offset -5 lines).
Hunk #5 succeeded at 157 (offset -5 lines).
Hunk #6 succeeded at 175 (offset -5 lines).
Hunk #7 succeeded at 193 (offset -5 lines).
Hunk #8 succeeded at 210 (offset -6 lines).
1 out of 8 hunks FAILED -- saving rejects to file drivers/input/mouse/alps.h.rej
Secondo questo messaggio:
http://www.spinics.net/lists/linux-input/msg29128.html
La patch si applica a linux-next, che ti puoi scaricare con
Codice:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
A questo punto applica la patch
Codice:
$ cd linux-next
$ patch -p1 < /path/alla/patch/alps.patch
copiati il config del kernel attuale
Codice:
$ cp /boot/config-3.X ./.config
configura i sorgenti(semplicemente tieni premuto enter, tutte quelle domande le puoi ignorare)
e compilati il kernelioQuando ha finito installa il .deb, crea gli initrd e riavvia. Se tutto va bene, dovrebbe funzionare.