Rs232 touchscreen driver installation for Red Hat 9.0 and Xfree86 4

(C) 2003 Chang-Hsieh Wu <ideal.j491108@msa.hinet.net>

The files are licensed under terms and conditions
of GNU General Public licence v2, unless stated otherwise.
==============================================================================

This distribution contains two files:

rs232 touch utility - Application utility 
a. Calib_3P232
b. Linear232

xfree86 input driver
a. xfdrvtouch_drv.o


==============================================================================
QUICKSTART GUIDE (binary installation)
==============================================================================

Warning: the driver was compiled for 4.3.0-2 version shipped with RedHat 9.0.
It may or may not work for you. If it does not, contact with us.

1. Xinput Driver installation
   a. copy default calibration file to /etc
      #cp  touch.calib /etc
   b. decompress xfdrvtouch_drv.tar.gz
      #gzip -d xfdrvtouch_drv.tar.gz
      #tar xvf xfdrvtouch_drv.tar  
   c. 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
   d. 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/ttyS0"
              Option      "ScreenNo" "0"
              Option      "Rotation" "0"
              Option      "SwapY" "0"
              Option      "DebugLevel" "0"
              Option      "AlwaysCore"
              Option      "UpSound" "1"
              Option      "DownSound" "1"
              Option      "RightButtonON" "1"
      EndSection
      
      *note: "Device" item is dependent on user choice, COM1=/dev/ttyS0, COM2=/dev/ttyS1, ..., etc.

   e. Press Ctrl+Alt+Backspace to restart X server.    
 

2. Setup and run Touch Utility:
   I. Linearity Utility:
   a. installation 
      step 1. decompress Linear232_GTKX.X.tar.gz (X is dependent on your choice.)
         #gzip  Linear232_GTK2.0.tar.gz
         #tar xvf Linear232_GTK2.0.tar 
      step 2. 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 
      step 1. decompress Calib_3P232_GTKX.X.tar.gz (X is dependent on your choice.)
         #gzip  Calib_3P232_GTK2.0.tar.gz
         #tar xvf Calib_3P232_GTK2.0.tar
      step 2. 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, ...  