\documentclass[letterpaper,english]{article}
\nonstopmode
\akai
\usepackage{linuxdoc-sgml}
\usepackage{qwertz}
\usepackage{url}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{null}
\def\addbibtoc{
\addcontentsline{toc}{section}{\numberline{\mbox{}}\relax\bibname}
}%end-preamble
\setcounter{page}{1}
\title{Linux Touch Screen HOWTO}
\author{§@ªÌ: Christoph Baumann, {\ttfamily cgb@debian.org}\\ 
Ä¶ªÌ: ³¯±Ó¼C {\ttfamily expns@yahoo.com}}
\date{v3.0, 2002-07-06 }
\abstract{³o½gHOWTO´y­z¦p¦ó¦bLinux¤W¨Ï¥ÎÄ²ºN«Ì.}


\begin{document}
\maketitle
\tableofcontents

\section{¤¶²Ð}

¨Ò¤l·í¤¤ªº³]©w³s±µ¬O³q¹L¦ê¦æ¤fserial port ¶i¦æªº. ¤ñ¦p:
/dev/ttyS0 ©ÎªÌ /dev/ttyS1. (Åwªï´£¨ÑUSB devices ªº¸ê°T!)
The GNU Free Documentation License applies to this document.


\subsection{Ãö©ó§@ªÌ}

§@ªÌ Christoph Baumann ¦b¤u§@¤¤¨Ï¥Î EloTouch(R) ©M MicroTouch(R)¤½¥qªº²£«~,
³o­ÓHOWTO´N¬O·½¦Û©ó¥L¹ï³o¨Ç³]³Æªº ¨Ï¥Î/¬ã¨s ªº¸gÅç. 


\section{³]©wdevice}

Touch screen ªº³]©w¬O³q¹LXF86Config¤åÀÉ¤¤ªºXinput³¡¤À¨Ó§¹¦¨.
(³q±`¬O /etc/X11/XF86Config ©ÎªÌ¬O /etc/XF86Config). 
­º¥ýÀË¬dµwÅéªºÅX°Ê¼Ò²Õ¬O§_¦s¦b.
¥¦­ÌÀ³¸Ó¦b /usr/X11R6/lib/modules/ (§Ú¨Ï¥Îªº¼Ò²Õ¬O xf86Elo.so ©M xf86MuTouch.so ,
¥¦­Ì¤À§O¬O¨â­Ó¤£¦P²£°Óªº¼Ò²Õ).²{¦b¬Ý¤@¤UXF86Config,À³¦³¤@³¡¤À¬Ý°_¨Ó¹³³o¼Ë:
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
Section "Files"
...
ModulePath "/usr/X11R6/lib/modules"
...
EndSection
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


¦pªG­n±N¼Ò²Õ±¾¶i X server ,À³¦³¤@³¡¤À¹³³o¼Ë: 

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}

Section "Module"
Load "xf86Elo.so"
EndSection
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


²{¦b¨ì¤F³ÌÃö«Øªº®É­Ô¤F.
X »Ý­n³]³Æªº¤@¨Ç°Ñ¼Æ. 
³o³¡¤À¬Ý°_¨Ó¹³¬O³o¼Ë(·QÁA¸Ñ§ó¦hªº²Ó¸`½Ð°Ñ·Ó "man XF86Config" ): 

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
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" #¥i¥HÀH·N³]©w¦WºÙcould 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
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


MinimumXPosition µ¥µ¥¬OµwÅéªº²Ó¸`³]©w(
³]©wtouch screen ¦bÅã¥Ü³]³Æ¤Wªº¦ì¸m). ¼Æ­È±NÅã¥Ü®y¼Ð (0,0) ©M (xmax,ymax) ¬M®g¨ì Touch screen ³]³Æ¤W(xmax ©M ymax ¨ú¨M©ó Xserver
ªº¼ü¹õ°Ï°ì, ¤ñ¦p 1024x768).¹Ï¨Ò:

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
 --------------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
 ------------------------------------------------
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


³o­Ó¬M®g¥i¥H³q¹L¤ÏÂÐ¸ÕÅç,©ÎªÌ°Ñ·ÓµwÅé¿é¥Xªº¼Æ¾Ú§¹¦¨ (»Ý­n¼g¤@¨Ç¦b serial port ¤è­±ªºµ{¦¡programming, 
°Ñ·Ó: "The Linux Serial Programming HOWTO").
§@ªÌ¼g¤F¤@­ÓEloTouch ©M MicroTouch ²£«~ªº®Õ·Çµ{¦¡, ¥i¦b³o¸Ì¤U¸ü:

\onlynameurl{ ftp://metalab.unc.edu/pub/linux/X11/xutils/touchcal-0.1.tar.gz}


\section{¿E¬¡³]³Æ}

¶i¤J X, ¦b²×ºÝ¤W¿é¤J:
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
xsetpointer < devicename> 
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}
 

$<$ devicename$>$ ¬OXF86Config ³]©w¤åÀÉ¤¤ªºDeviceName ".....", ³o­Ó¨Ò¤l¤¤¥¦¬O TouchScreen. 
¦btouch screen section (see above) ³]©w AlwaysCore Åý¥¦¦Û°Ê¿E¬¡.




\section{¨Ï touch screen ©M·Æ¹«¦P¨B}

 ¨Ï touch screen ©M·Æ¹«¦P¨B
§A»Ý­n±N·Æ¹«ªº³]©w¥[¤JXinput-section. ³o­Ó³]©w©MPointer-section®t¤£¦h. 
The following example is for a PS/2-mouse: 
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
Section "Xinput" 
   SubSection "Mouse" 
      Protocol "PS/2" 
      Port "/dev/mouse" #could also be /dev/psaux 
      DeviceName "Mouse" 
      AlwaysCore 
   EndSubSection
...
EndSection 
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


³\¦h¤H´£¥X¤F«ØÄ³,¤×¨ä¬O AlwaysCore ªº¥Îªk.§Ú·PÁÂ¥L­Ì!!




\section{¦b XFree86 4 ¤§¤U¶i¦æ³]©w}

(from Lee Monamy) 
ELO touch screen ªºXF86Config-4³]©w:

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
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
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
\end{tscreen}


­È±oª`·Nªº¬O³o­Ó³]©w©M version 3 ³]©wDeviceªº¤£¦P,
*not* a Port, otherwise you get an error.¦P¼Ë version3 ªº AlwaysCore  ³Q SendCoreEvents ¨ú¥N. 

§A¤]­n¥[¤J¨ìServerLayout,¤£¥ÎºÞXªº«H®§: "(II) XINPUT: Adding extended input device "TOUCHSCREEN" (type: Elographics Touch Screen)"
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
Section "ServerLayout"
        Identifier      "Default Layout"
        Screen  "Default Screen"
        InputDevice "Generic Keyboard"
...
        InputDevice "ELO touchscreen"
EndSection
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
 
\end{tscreen}





\subsection{¨ä¥¦ªº¨Ò¤l}


\subsubsection{from Dirk Mueller (for Microtouch SMT3 Series): }

\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
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
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
 
\end{tscreen}


Option "Type" ¥i¥H¬O "finger" ©Î "stylus" Since Microtouch was bought by 3M-Touch,
°Ñ·Ó \onlynameurl{ http://www.3M.com/3MTouchSystems/downloads/legacy.jhtml\#Linux}


\subsection{ªþ¿ý}

¨Ì¾Ú Wong Yeow Sen, ³]©wªº option ¦W¦r¦b XFree86 4.2 (at least with Red Hat 7.3)¦³©Ò§ïÅÜ. 
¦pªG§Aªº®Õ·Ç¦³»~®t½Ð¸Õ¸Õ³o­Ó: 
\begin{tscreen}
\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
...
        Option  "MinX"      "100"
        Option  "MaxX"      "4000"
        Option  "MinY"      "100"
        Option  "MaxY"      "4000"
...
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}
 
\end{tscreen}





\section{Touch Screens on Fujitsu LifeBooks}

(¥Ñ Joerg Hau ´£¨Ñ) 

¥i¥H¦b¤U­±§ä¨ì§A­nªº¸ê°T:
Harald Hoyer's Linux Touch Panel Drivers for the Fujitsu Lifebooks B112/B142/B2130,
\onlynameurl{http://parzelle.de/Linux/Lifebook/}.
¤£©¯ªº¬O, ¥¦¥u°w¹ïXFree 3.x ¨Ã¥B¨S¦³§ó·s (dead?). 



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

 §Ú¦bFujitsu LifeBook B142¤W ¨Ï¥Î Kenan's ªºÅX°Êµ{¦¡(
\onlynameurl{http://www.mysunrise.ch/users/joerg.hau/linux/b142.htm} ),
and it works like a charm.


\section{«ØÄ³¾\Åª}

\begin{itemize}
\item XF86Config ªº Manpage 
\item         \onlynameurl{http://www.elotouch.com/Support/linux.asp }
\item         \onlynameurl{http://www.microtouch.com/mthtml/05a1\_drivers.htm}
\item         \onlynameurl{http://www.hof-berlin.de/tablet/tablet.html}
(·PÁÂChrister Olofsson ±N³o­Ó URL ±Hµ¹§Ú) 
\item §A¦Û¤vªº touch screen ¤â¥U :-) 
\end{itemize}


\end{document}
