File INSTALL_USB of Package x11-input-tpk
==============================================================================
INSTALLATION GUIDE for the USB touchscreen driver
==============================================================================
This install will require the following files:
SR232 touch utilities found in "utilities_GTK2.0"
a. Calib_3PUSB
b. LinearUSB
XFree86 input driver found in "XFree86_driver"
a. xfdrvtouch_drv.o
Kernel Modual USB driver found in "kernel_driver"
a. xfdrvtouch_drv.o
After compiling these files (See the REAME about this if you have not already)
Install them as outlined below
==============================================================================
Binary Installation
==============================================================================
1. Install USB Linux char driver
a. make a device node(Don't type '#')
#rm -f /dev/tpk0
#mknod -m 666 /dev/tpk0 c 180 128
b. copy touch.o to /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/usb
#cp ./touch.o /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/usb
c. dependent the module
#depmod -a
2. Xinput Driver installation
a. copy default calibration file to /etc
#cp touch.calib /etc
b. Copy xfdrvtouch_drv.o to /usr/X11R6/lib/modules/input/ or other place where
your X is installed.
#cp xfdrvtouch_drv.o /usr/X11R6/lib/modules/input
c. Add the following lines into XF86Config(maybein /etc or /etc/X11)file.
If your system will not have a mouse, then use "CorePointer" instead of
"SendCoreEvents" in the "ServerLayout" section.
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
...
InputDevice "Touchscreen0" "SendCoreEvents"
EndSection
Section "InputDevice"
Identifier "Touchscreen0"
Driver "xfdrvtouch"
Option "Device" "/dev/tpk0"
Option "ScreenNo" "0"
Option "Rotation" "0"
Option "SwapY" "0"
Option "DebugLevel" "0"
Option "AlwaysCore"
Option "UpSound" "1"
Option "DownSound" "1"
Option "AutoRightClick" "1"
Option "TouchMode" "2"
EndSection
Notes:
1. Rotation: 0=0 degree, 1=90 degree, 2=180 degree, 3=270 degree.
2. SwaY: 0--> y=y 1--> y=MAX_Y-y.
3. UpSound: 0=don't play sound when lift 1= play sound when lift.
4. DownSound: 0=don't play sound when first down 1= play sound when first down.
5. AutoRightClick: 0=don't generate right button automatically. 1= generate it.
6. TouchMode: 2=mouse mode, 3= button mode.
d. Press Ctrl+Alt+Backspace to restart X server.
3. Setup and run TPK Touch Utilities:
I. Linearity Utility:
a. installation
Copy linearity utility to /usr/local/bin
#cp ./LinearUSB /usr/local/bin
b. Run linearity utility
#LinearUSB /dev/tpk0 n
where n = 5 or 9 <default>
II. Calibration Utility:
a. installation
Copy calibration utility to /usr/local/bin
#cp ./Calib_3PUSB /usr/local/bin
b. Run calibration utility
Calib_3PUSB /dev/tpk0
.