Non-offical Xorg related patches
Disclaimer: These patches are written with best intentions and under
my current knowledge, however, side effects or new bugs might be
introduced to your programs. By applying these patches you accept the
risk of inflicting instability or damage to hardware or software and
release me from any responsibility or warranty.
-
xorg-1.4-kdrive-rotation.patch
Description: This patch fixes mouse and touchscreen issues of the KDrive Xserver when rotating
the display.This patche is againsy xorg-xserver 1.4 source, however, as of Dec. 22 2007 the GIT
should also be patchable.
-
xorg-1.4-kdrive-rotation+ts-longtouch.patch
Description: This patch fixes mouse and touchscreen issues of the KDrive Xserver when
rotating the display. Additionally it introduces the option to use long touching the display
to generate Button 3 (right mouse button) events. This is for tslib driver usage!
To enable longtouch, add longtouch=<TIME> to the tslib driver options on
calling
the Kdrive server. <TIME> is in milliseconds and specifies how long a touch needs to last
till a
ButtonDown 3 event is generated. If touching the screen is released earlier, ButtonDown 1, followed
by ButtonUp 1 events are generated, hence a Button 1 Click event is generated. The default
value
for
longtouch is zero, which means, without explicitly specifying this option on start up,
long touch is disabled -> old touchscreen behaviour
Additionally you can speficiy option tolerance=<PIXEL>. Inside a box of <PIXEL>
(in
screen pixels) around the
touch position, any stylus movement will be ignored till long touch timeout is reached or touch
ends. If moving outside this box, the long touch timer will be stopped and ButtonDown 1 event
generated, thus implementing left mouse button dragging. The default value for
tolerance is 5 screen pixels.
Example:
Xfbdev -mouse mouse,2,device=/dev/input/mouse1 -mouse tslib,3,device=/dev/input/touchscreen,longtouch=500,tolerance=3
This starts KDrive with a possible mouse on /dev/input/mouse1 and utilizing touchscreen device
/dev/input/touchscreen, whereas a ButtonDown3 mouse event is generated after 1/2 second and
movements beyond 3 pixels from touch position will cancel Button 3 timer, switching to Button 1
dragging.
Note: When using mouse and touchscreen simultaniously, make sure to specify the right mouse
device and not /dev/input/mice, since this might cause the mouse to interfere with touchscreen
button handling and always generate a ButtonDown 1 event when touching the screen!
This patche is againsy xorg-xserver 1.4 source, however, as of Dec. 22 2007 the GIT
should also be patchable.
-
xf86-input-evtouch-0.8.7-misc.patch
Description: This is a patch for the evtouch input driver (
http://stz-softwaretechnik.com/~ke/touchscreen/evtouch.html).
Changes (for full description see ChangeLog file after patching (-: ):
- Changed code to compile a working driver for both
XInput ABI 0.x and 2.0 (Xorg 1.4.0)
- changed rotation (due to segfault on xorg + fbdev)
- drag support
- tap "tolerance"
- added generic ts-adc touchscreen device to udev rules file
Feel free to send comments, critics, suggestions to harryrat@postnuklear.de
To apply simply change into the toplevel directory of the source to be modified and enter:
patch -p1 < <PATH_TO_PATCH>
All patches are available under the GNU GPL, I hope they might be useful for you (-:
- Harald Radke
Last update: 12-31-2007