PenMount 6000 for USB Linux X Window drivers & utilities 
Version: 1.0

Files:
Driver/                -- Penmount driver
Utility                -- Penmount calibration utility
                          Penmount right click emulation utility
xorg.conf.sample       -- xorg.conf sample

Attention:
If the touch function is not correcr after you installed the PenMount driver,
we recommend you to delete /tmp/penmount_cmd and /tmp/penmount_dat in advance,
then refer to readme file to install PenMount driver or review PenMount driver contents again .



**Pleasae Select "Ignore", 
  when the "New Hardware Checking" find a new "USB MOUSE" while booting Linux with PENMOUNT USB.

A. 
  1. Login system with "root", and check your XFree86 version
     # cd /root         
  
  2.Please plug in the PenMount USB controller in advance, then issuing more /proc/bus/input/devices should list something similiar to the following:

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=14e1 ProdID=5000 Rev=a5.b5
S:  Manufacturer=Dialogue Inc
S:  Product=PenMount USB
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 50mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=penmountusb
E:  Ad=81(I) Atr=03(Int.) MxPS=   5 Ivl=10ms

* More /proc/bus/input/devices gives you

I: Bus=0003 Vendor=14e1 Product=5000 Version=a5b5
N: Name="Dialogue Inc PenMount USB"
P: Phys=usb-0000:00:1d.0-1/input0
H: Handlers=event2 js0			# please record the event number of "Handlers"
B: EV=b
B: KEY=10000 0 0 0 0 0 0 0 0
B: ABS=3

Now you can proceed with the configuration of XFree86.

             
B. XFree86 4.3.x Driver Module installation procedures:  
  
  1. copy penmount driver "penmount_drv.o" to "/usr/X11R6/lib/modules/input".
     # cp Driver/penmount_drv.o /usr/X11R6/lib/modules/input


  2. Edit X window configuration file to load driver. You can refer to "XF86Config.sample".       
     
     a. # vi /etc/X11/XF86Config
	or
	# vi /etc/X11/xorg.conf
                                          
     b. In the Section "ServerLayout", add a statement :

        InputDevice    "Penmount" "AlwaysCore"

     c. Add a Section "InputDevice" :

        Section "InputDevice"
        
	Identifier  "PenMount"
	Driver      "penmount"
	Option      "Protocol"	   "Auto"
	Option      "Device"	   "/dev/input/event2"	# this event number must be the same with "Handlers"
	Option      "PMode"        "1"
	Option	    "MinX"	   "10"
	Option	    "MaxX"	   "1000"
	Option	    "MinY"	   "10"
	Option	    "MaxY"	   "1000"
	Option      "Beep"         "1"		#  0 = no beep, 1 = beep enabled
        Option      "PressVol"     "100" 	#  volume of beep (press event)
        Option      "PressPitch"   "880" 	#  pitch of beep (press event)
        Option      "PressDur"     "15" 	#  length of beep in 10ms (press event)
        Option      "ReleaseVol"   "0"		#  volume of beep (release event)
        Option      "ReleasePitch" "1200"	#  pitch of beep (release event) 
        Option      "ReleaseDur"   "10"		#  length of beep in 10ms (release event)	
        EndSection        


C. Utilities Installation procedures:

  1. Copy the file under utitliy/ into the "/usr/local/pencal" directory.
     # mkdir /usr/local/pencal
     # cp * /usr/local/pencal


  2. Input "startx" to start X window.
     # startx

  3. Issue one of the following commands to calibrate your touch screen:
     # cd /usr/local/pencal
     # ./adv-calib [4|9|16]
       ./adv-calib 4  (=calibration 4 point)
       ./adv-calib 9  (=calibration 9 point)
       ./adv-calib 16 (=calibration 16 point)

  4. Issue the following command to display the right click button icon:
     # ./right-click-emulator

May 13,2006
