Code: Select all
mkdir sometempdir
cd sometempdir
tar -xjf /usr/portage/distfiles/xorg-x11-6.8.2-patches-0.1.2.tar.bz2
cd patch/
nano 9999_all_mouse-accel-fix.patchCode: Select all
diff -Naur xc/programs/Xserver/hw/xfree86/common/xf86DGA.c xc/programs/Xserver/hw/xfree86/common/xf86DGA.c
--- xc/programs/Xserver/hw/xfree86/common/xf86DGA.c 2004-04-23 21:20:32.000000000 +0200
+++ xc.gentoo/programs/Xserver/hw/xfree86/common/xf86DGA.c 2004-11-15 01:16:48.000000000 +0100
@@ -905,8 +905,8 @@
de.u.u.type = e->u.u.type + *XDGAEventBase;
de.u.u.detail = e->u.u.detail;
de.u.event.time = e->u.keyButtonPointer.time;
- de.u.event.dx = dx;
- de.u.event.dy = dy;
+ de.u.event.dx = 2 * dx; /* for the id bug */
+ de.u.event.dy = 2 * dy; /* for the id bug */
de.u.event.pad1 = DGAMouseX;
de.u.event.pad2 = DGAMouseY;
xf86eqEnqueue ((xEvent *) &de);
Code: Select all
rm /usr/portage/distfiles/xorg-x11-6.8.2-patches-0.1.2.tar.bz2
cd ..
tar -cjf xorg-x11-6.8.2-patches-0.1.2.tar.bz2 patch/
cp xorg-x11-6.8.2-patches-0.1.2.tar.bz2 /usr/portage/distfiles/Code: Select all
MD5 61782b11027ce300d7634d024accc3c7 xorg-x11-6.8.2-patches-0.1.2.tar.bz2 150386Code: Select all
emerge xorg-x11Code: Select all
* Applying various patches (bugfixes/updates) ...
* 0119_all_exports-lib-v2.patch ...
[...]
* 9999_all_mouse-accel-fix.patch ... [ ok ]
* Done with patching
hmm... didn't work for me, I got this message a few times. it doesn't find the fime, also after inspecting the patch it just seems that it doubles the sensitivity or something, perhaps this makes mouseacc feel less, because the acceleration threshold isn't reached ?***** 9999_all_mouse-accel-fix.patch *****
==========================================
PATCH COMMAND: patch -p0 -g0 < /var/tmp/portage/xorg-x11-6.8.2-r1/work/patch/9999_al
l_mouse-accel-fix.patch
==========================================
patching file xc/programs/Xserver/hw/xfree86/common/xf86DGA.c
Hunk #1 FAILED at 905.
1 out of 1 hunk FAILED -- saving rejects to file xc/programs/Xserver/hw/xfree86/commo
n/xf86DGA.c.rej
==========================================
PATCH COMMAND: patch -p1 -g0 < /var/tmp/portage/xorg-x11-6.8.2-r1/work/patch/9999_al
l_mouse-accel-fix.patch
==========================================
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur xc/programs/Xserver/hw/xfree86/common/xf86DGA.c
|xc/programs/Xserver/hw/xfree86/common/xf86DGA.c
|--- xc/programs/Xserver/hw/xfree86/common/xf86DGA.c 2004-04-23
|21:20:32.000000000 +0200
|+++ xc.gentoo/programs/Xserver/hw/xfree86/common/xf86DGA.c 2004-11-15
|01:16:48.000000000 +0100
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
==========================================