HID&RS232 touch screen driver installation for RedHat 9.0 and XFree86 4.3.0
(C) 2006 Chang-Hsieh Wu

==============================================================================
QUICKSTART GUIDE
==============================================================================
1. setup xfree driver
   a. decompress xfhiddrv_drv.tar.gz
      #gzip -d xfhiddrv_drv.tar.gz
      #tar xvf xfhiddrv_drv.tar 
   b. Copy xfhiddrv_drv.o to /usr/X11R6/lib/modules/input/ or other place where 
      your X is installed.
      #cp   xfhiddrv_drv.o /usr/X11R6/lib/modules/input
   c. Add the following lines into XF86Config(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.  Set "ServerLayout"  section
      as the following.

#	InputDevice    "DevInputMice" "AlwaysCore"
        InputDevice    "Touchscreen0" "SendCoreEvents"


   d. Add the a new "InputDevice" Section as the following.
      I. HID device:
Section "InputDevice"
	Identifier  "Touchscreen0"
	Driver      "xfhiddrv"
	Option      "Device" "/dev/usb/hiddev0"
	Option      "ScreenNo" "0"
        Option      "Rotation" "0"
	Option      "SwapY" "0"
        Option      "DebugLevel" "0"
	Option      "AlwaysCore"
	Option      "UpSound" "0"
	Option      "DownSound" "1"
	Option      "AutoRightClick" "1"
	Option      "TouchMode" "2"
EndSection

      * In red hat 9.0 "Device" item use "/dev/usb/hiddev0", but in fedora core 5 use "/dev/hiddev0"
      II. RS232 device:
Section "InputDevice"
	Identifier  "Touchscreen0"
	Driver      "xfhiddrv"
	Option      "Device" "/dev/ttyS0"
	Option      "ScreenNo" "0"
        Option      "Rotation" "0"
	Option      "SwapY" "0"
        Option      "DebugLevel" "0"
	Option      "AlwaysCore"
	Option      "UpSound" "0"
	Option      "DownSound" "1"
	Option      "AutoRightClick" "1"
	Option      "TouchMode" "2"
EndSection

    In the item of "Device", you must depend on your computer. So, it can be the value, 
such as the followings.
        "/dev/usb/hiddevx"  x=0,1,..2, n (HID device)
        "/dev/ttySx"        x=0,1,..2, n (RS232 device)

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

2. Setup and run Linear Utility:
   I. Linearity Utility:
   a. installation 
      step 1. decompress LinearAp.tar.gz 
         #gzip -d LinearAp.tar.gz
         #tar xvf LinearAp.tar.gz 
      step 2. copy linearity utility to /usr/local/bin
         #cp ./LinearAp /usr/local/bin
   b. Run linearity utility
      I. HID device
      #./LinearAp  /dev/usb/hiddevx n
      II. RS232 device
      #./LinearAp  /dev/usb/ttySx n
      where x=0,1,2...n, n = 4 or 9 <default>   
      
      
