                                         Readme of 
			GeneralTouch Standard USB Surface Acoustic Wave
			     Version 1.0 Beta11 for linux (kernel 2.6.38 and newer)
			  Copyright 2012 General Touch Co. Ltd



=========================
Introducion
=========================

Touchscreen support the driver builted in linux, user can see the pointer moves when he touches the touchscreen.

User need use our calibration tool to get the calibration data which will be filled in the configuration file.

====================================
gencalib-32bit.tgz              the 32 bit calibration application

gencalib-64bit.tgz              the 64 bit calibration application            

cal.sh                          calibration script

cal.desktop                     a shotcut on the desktop for calibration script

writeconf.py                    the python program which write calibration data in the                                  configuration file

=========================
Calibration
=========================
1.plug in USB line and start the touchscreen


=============================================================================


2.  Calibrate and data fills in the configuration file , there are two ways: 

2.1 Manual installation
   If the system is 32 bit , unpick the gencalib-32bit.tgz;
   If the system is 64 bit , unpick the gencalib-64bit.tgz;
   Run the gencalib (like this "./gencalib")in the directory where you unpick the it.

2.1.1 The path of the configuration file is different as different linux version. Generally, the path of the configuration file is " /etc/X11/xorg.conf.d/10-evdev.conf".
(For the Ubuntu and Fedora, the path is " /usr/share/X11/xorg.conf.d/10-evdev.conf ")

2.1.2 Please find the "Section" as follows and add the calibration data(including four paramemters).

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "Calibration"  "1000 1000 4096 4096"
EndSection


2.1.3 Save it ,quit and reboot.

======================================================

2.2  Automatic installation( Run the calibration script )

2.2.1  Unpick the calibration application in the current path
       If the system is 32 bit , unpick the gencalib-32bit.tgz;
       If the system is 64 bit , unpick the gencalib-64bit.tgz;

2.2.2  Advise the permission of the configuration file as follows:
      sudo chmod 777 /usr/share/X11/xorg.conf.d/10-evdev.conf

2.2.3  Run the calibration script in the path where you unpicked the calibration application  as follows:
        ./cal.sh

2.2.4  reboot.


========================================================


==============Attention===================================================
1.Don't use root to run cal.sh or cal.desktop. If you did that,please redo step 2.2.2.

2.Python (which is normally built-in in main stream linux) is needed.

3. The path writed in the cal.sh or cal.desktop should be the same with the path of the calibration program , client can advise it depend on the the actual situation.
============================================================================

3. Log out the user or reboot the system , touchscreen can work normally.