File INSTALL_RS232 of Package x11-input-tpk
==============================================================================
INSTALLATION GUIDE for the RS232 (Serial) touchscreen driver
==============================================================================
This install will require the following files:
SR232 touch utilities found in "utilities_GTK2.0"
a. Calib_3P232
b. Linear232
XFree86 input driver found in "XFree86_driver"
a. xfdrvtouch_drv.o
After compiling these files (See the README about this if you have not already)
Install them as outlined below
==============================================================================
Binary Installation
==============================================================================
1. 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 xorg.conf(maybe in /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/ttyS0"
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. "Device" item is dependent on user choice, COM1=/dev/ttyS0, COM2=/dev/ttyS1, ..., etc.
2. Rotation: 0=0 degree, 1=90 degree, 2=180 degree, 3=270 degree.
3. SwaY: 0--> y=y 1--> y=MAX_Y-y.
4. UpSound: 0=don't play sound when lift 1= play sound when lift.
5. DownSound: 0=don't play sound when first down 1= play sound when first down.
6. AutoRightClick: 0=don't generate right button automatically. 1= generate it.
7. TouchMode: 2=mouse mode, 3= button mode.
d. Press Ctrl+Alt+Backspace to restart X server.
2. Setup and run TPK Touch Utilities:
I. Linearity Utility:
a. installation
Copy linearity utility to /usr/local/bin
#cp ./Linear232 /usr/local/bin
b. Run linearity utility
#Linear232 /dev/ttySx n
where x=0,1,2...n, 0=COM1, 1=COM2, ..., n = 5 or 9 <default>
II. Calibration Utility:
a. installation
Copy calibration utility to /usr/local/bin
#cp ./Calib_3P232 /usr/local/bin
b. Run calibration utility
#Calib_3P232 /dev/ttySx
where x=0,1,2...n, 0=COM1, 1=COM2, ...