USB touch screen driver installation for Mandrake 9.0 and xfree86 4

0. Copy all need package files to your target computer.

1. Install USB Linux char driver
   a. make a device node(Don't type '#')
      #rm -f /dev/idtk?
      #mknod -m 666 /dev/idtk0 c 180 128
   b. copy touch.o.gz to /lib/modules/2.4.20-8/kernel/drivers/usb
      #cp ./touch.o.gz /lib/modules/2.4.20-8/kernel/drivers/usb
   d. dependent the module
      #depmod -a
     
2. 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 XF86Config4(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/idtk0"
              Option      "ScreenNo" "0"
              Option      "Rotation" "0"
              Option      "SwapY" "0"
              Option      "DebugLevel" "0"
              Option      "AlwaysCore"
      EndSection

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

         
3. Setup and run Touch Utility:
   I. Linearity Utility:
   a. installation 
      step 1. decompress LinearUSB_GTKX.X.tar.gz(X is dependent on your choice.)
         #gzip  LinearUSB_GTK2.0.tar.gz
         #tar xvf linearUSB_GTK2.0.tar
      step 2. copy linearity utility to /usr/local/bin
         #cp ./LinearUSB /usr/local/bin
   b. Run linearity utility
      #LinearUSB /dev/idtk0 n
      where n = 5 or 9 <default>   
      
   II. Calibration Utility:
   a. installation 
      step 1. decompress Calib_3PUSB_GTKX.X.tar.gz(X is dependent on your choice.)
         #gzip  Calib_3PUSB_GTK2.0.tar.gz
         #tar xvf Calib_3PUSB_GTK2.0.tar
      step 2. copy calibration utility to /usr/local/bin
         #cp ./Calib_3PUSB /usr/local/bin
   b. Run calibration utility
      #Calib_3PUSB /dev/idtk0 