
                           Linux Touch Screen HOWTO

@: Christoph Baumann, cgb@debian.org
Ķ: ӼC expns@yahoo.com

   v3.0, 2002-07-06
     _________________________________________________________________

   ogHOWTOyzpbLinuxWϥĲN.
     _________________________________________________________________

1. 

     * 1.1 @

2. ]wdevice

3. E]

4.  touch screen MƹPB

5. b XFree86 4 Ui]w

     * 5.1 䥦Ҥl
     * 5.2 

6. Touch Screens on Fujitsu LifeBooks

7. ĳ\Ū
     _________________________________________________________________

1. 

   Ҥl]wsOqLfserial port i檺. p: /dev/ttyS0 
    /dev/ttyS1. (wﴣUSB devices T!) The GNU Free
   Documentation License applies to this document.

1.1 @

   @ Christoph Baumann bu@ϥ EloTouch(R) M MicroTouch(R)q
   ~, oHOWTONO۩Loǳ]ƪ ϥ/s g.

2. ]wdevice

   Touch screen ]wOqLXF86ConfigɤXinputӧ. (q`O
   /etc/X11/XF86Config Ϊ̬O /etc/XF86Config). ˬdw骺XʼҲլO
   _sb. Ӧb /usr/X11R6/lib/modules/ (ڨϥΪҲլO xf86Elo.so
   M xf86MuTouch.so , ̤OOӤPӪҲ).{bݤ@
   UXF86Config,@ݰ_ӹo:
       ______________________________________________________________

Section "Files"
...
ModulePath "/usr/X11R6/lib/modules"
...
EndSection
       ______________________________________________________________

   pGnNҲձi X server ,@o:
       ______________________________________________________________


Section "Module"
Load "xf86Elo.so"
EndSection
       ______________________________________________________________

   {bFتɭԤF. X ݭn]ƪ@ǰѼ. oݰ_ӹOo(Q
   AѧhӸ`аѷ "man XF86Config" ):
       ______________________________________________________________

Section "Xinput"
 SubSection "Elographics"
#the entry for a MicroTouch device would be SubSection "MicrotouchFinger"
  Port "/dev/ttyS1" # for a device at serial port 2
  DeviceName "TouchScreen" #iHHN]wWcould be any unambiguous name
  MinimumXPosition 300
  MaximumXPosition 3700
  MinimumYPosition 300
  MaximumYPosition 3700
  UntouchDelay 10 #not supported with MuTouch
  ReportDelay 10  #not supported with MuTouch
  AlwaysCore #activates the device on startup
 EndSubSection
EndSection
       ______________________________________________________________

   MinimumXPosition Ow骺Ӹ`]w( ]wtouch screen bܳ]ƤW
   m). ƭȱNܮy (0,0) M (xmax,ymax) Mg Touch screen ]
   W(xmax M ymax M Xserver ϰ, p 1024x768).Ϩ:
       ______________________________________________________________

 --------------touch screen ϰ-----------------
 I                                              I
 I  ########### iϰ ###############  I
 I  #x                                       #  I
 I  # (0,0)                                  #  I
 I  # (MinimumXPosition,MinimumYPosition)    #  I
 I  #                                        #  I
 I  #                                        #  I
 I  #                                        #  I
 I  #                                        #  I
 I  #                                        #  I
 I  #                                        #  I
 I  #                                        #  I
 I  #     (MaximumXPosition,MaximumYPosition)#  I
 I  #                             (xmax,ymax)#  I
 I  #                                       x#  I
 I  ##########################################  I
 I                                              I
 ------------------------------------------------
       ______________________________________________________________

   oӬMgiHqLи,Ϊ̰ѷӵwXƾڧ (ݭng@Ǧb
   serial port 譱{programming, ѷ: "The Linux Serial Programming
   HOWTO"). @̼gF@EloTouch M MicroTouch ~շǵ{, ibo̤U
   :

   [1]ftp://metalab.unc.edu/pub/linux/X11/xutils/touchcal-0.1.tar.gz

3. E]

   iJ X, b׺ݤWJ:
       ______________________________________________________________

xsetpointer < devicename>
       ______________________________________________________________

   < devicename> OXF86Config ]wɤDeviceName ".....", oӨҤl
   O TouchScreen. btouch screen section (see above) ]w AlwaysCore
   ۰ʿE.

4.  touch screen MƹPB

    touch screen MƹPB AݭnNƹ]w[JXinput-section. o
   ]wMPointer-sectionth. The following example is for a
   PS/2-mouse:
       ______________________________________________________________

Section "Xinput"
   SubSection "Mouse"
      Protocol "PS/2"
      Port "/dev/mouse" #could also be /dev/psaux
      DeviceName "Mouse"
      AlwaysCore
   EndSubSection
...
EndSection
       ______________________________________________________________

   \hHXFĳ,רO AlwaysCore Ϊk.ڷP¥L!!

5. b XFree86 4 Ui]w

   (from Lee Monamy) ELO touch screen XF86Config-4]w:
       ______________________________________________________________

Section "InputDevice"
        Identifier "ELO touchscreen"
        Driver "elographics"
        Option  "Device"        "/dev/ttyS0"
        Option  "MinimumXPosition"      "300"
        Option  "MaximumXPosition"      "3700"
        Option  "MinimumYPosition"      "300"
        Option  "MaximumYPosition"      "3700"
        Option  "UntouchDelay"  "10"
        Option  "ReportDelay"   "10"
        Option  "SendCoreEvents"        "yes"
EndSection
       ______________________________________________________________

   ȱo`NOoӳ]wM version 3 ]wDeviceP, *not* a Port,
   otherwise you get an error.P version3  AlwaysCore Q
   SendCoreEvents N.

   A]n[JServerLayout,κXH: "(II) XINPUT: Adding extended
   input device "TOUCHSCREEN" (type: Elographics Touch Screen)"
       ______________________________________________________________

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen  "Default Screen"
        InputDevice "Generic Keyboard"
...
        InputDevice "ELO touchscreen"
EndSection
       ______________________________________________________________

5.1 䥦Ҥl

  from Dirk Mueller (for Microtouch SMT3 Series):
       ______________________________________________________________

Section "InputDevice"
        Identifier  "MicroTouchFinger"
        Driver      "mutouch"
        Option      "Type" "finger"
        Option      "Device" "/dev/ttyS0"
        Option      "ScreenNo" "0"
        Option      "MinimumXPosition" "0"
        Option      "MaximumXPosition" "16383"
        Option      "MinimumYPosition" "0"
        Option      "MaximumYPosition" "16383"
EndSection
       ______________________________________________________________

   Option "Type" iHO "finger"  "stylus" Since Microtouch was bought
   by 3M-Touch, ѷ [2]
   http://www.3M.com/3MTouchSystems/downloads/legacy.jhtml#Linux

5.2 

   ̾ Wong Yeow Sen, ]w option Wrb XFree86 4.2 (at least with
   Red Hat 7.3)ҧ. pGAշǦ~tиոճo:
       ______________________________________________________________

...
        Option  "MinX"      "100"
        Option  "MaxX"      "4000"
        Option  "MinY"      "100"
        Option  "MaxY"      "4000"
...
       ______________________________________________________________

6. Touch Screens on Fujitsu LifeBooks

   ( Joerg Hau )

   iHbUAnT: Harald Hoyer's Linux Touch Panel Drivers for
   the Fujitsu Lifebooks B112/B142/B2130, [3]
   http://parzelle.de/Linux/Lifebook/. O, uwXFree 3.x åBS
   s (dead?).

   Kenan Esau's Lifebook Series B Touchscreen driver, which is the
   adaptation of Harald's driver to XFree 4.x. [4]
   http://stlx01.stz-softwaretechnik.de/~ke/lifebook/lifebook.html.

   ڦbFujitsu LifeBook B142W ϥ Kenan's Xʵ{( [5]
   http://www.mysunrise.ch/users/joerg.hau/linux/b142.htm ), and it works
   like a charm.

7. ĳ\Ū

     * XF86Config  Manpage
     * [6]http://www.elotouch.com/Support/linux.asp 
     * [7]http://www.microtouch.com/mthtml/05a1_drivers.htm
     * [8]http://www.hof-berlin.de/tablet/tablet.html (PChrister
       Olofsson No URL H)
     * Aۤv touch screen U :-)

References

   1. ftp://metalab.unc.edu/pub/linux/X11/xutils/touchcal-0.1.tar.gz
   2. http://www.3M.com/3MTouchSystems/downloads/legacy.jhtml#Linux
   3. http://parzelle.de/Linux/Lifebook/
   4. http://stlx01.stz-softwaretechnik.de/~ke/lifebook/lifebook.html
   5. http://www.mysunrise.ch/users/joerg.hau/linux/b142.htm
   6. http://www.elotouch.com/Support/linux.asp
   7. http://www.microtouch.com/mthtml/05a1_drivers.htm
   8. http://www.hof-berlin.de/tablet/tablet.html
