📄 onetouch.html
字号:
<html lang="en"><head><title>Onetouch</title><meta http-equiv="Content-Type" content="text/html"><meta name=description content="Onetouch"><meta name=generator content="makeinfo 4.1"><link href="http://texinfo.org/" rel=generator-home></head><body><h1>Onetouch</h1><p><hr>Node:<a name="Top">Top</a>,Next:<a rel=next href="#General%20Information">General Information</a>,Previous:<a rel=previous href="#dir">(dir)</a>,Up:<a rel=up href="#dir">(dir)</a><br><h2></h2><p>This file documents Onetouch, support software for Onetouch touch panelsunder Linux and XFree86.<ul><li><a href="#General%20Information">General Information</a>: <li><a href="#Device%20Support">Device Support</a>: <li><a href="#XFree%20Configuration">XFree Configuration</a>: <li><a href="#Calibration">Calibration</a>: <li><a href="#Support%20Tools">Support Tools</a>: </ul><p><hr>Node:<a name="General%20Information">General Information</a>,Next:<a rel=next href="#Device%20Support">Device Support</a>,Previous:<a rel=previous href="#Top">Top</a>,Up:<a rel=up href="#Top">Top</a><br><h2>General Information</h2><p>The package supports serial Onetouch touch panels under GNU/Linux andXFree86. The latest version of this driver can be downloaded from:<ul><li><a href="ftp://ftp.gnudd.com/pub/onetouch">ftp://ftp.gnudd.com/pub/onetouch</a><li><a href="http://www.gnudd.com/software/#onetouch">http://www.gnudd.com/software/#onetouch</a></ul><p>The latest source tree can be accessed from my CVS server, instructionsare available at <a href="http://www.gnudd.com/software/#cvs">http://www.gnudd.com/software/#cvs</a> . Thepackage name to use is <code>onetouch</code>. As an alternative, you can use<var>viewcvs</var> at <a href="http://cvs.gnudd.com">http://cvs.gnudd.com</a>. The latest CVS snapshotcan also be downloaded from <a href="ftp://ftp.gnudd.com/pub/onetouch">ftp://ftp.gnudd.com/pub/onetouch</a>or the mirror site <a href="ftp://ftp.linux.it/pub/People/rubini/onetouch">ftp://ftp.linux.it/pub/People/rubini/onetouch</a> .<p><hr>Node:<a name="Device%20Support">Device Support</a>,Next:<a rel=next href="#XFree%20Configuration">XFree Configuration</a>,Previous:<a rel=previous href="#General%20Information">General Information</a>,Up:<a rel=up href="#Top">Top</a><br><h2>Device Support</h2><p>The driver has been designed to run under XFree86 version 4.x. Ithas been tested on 4.1 and 4.2.<p>In order to use the touch screen in X, you should install in yoursystem the "onetouch_drv" module, part of this distribution.<p>The compiled module (<code>onetouch_drv.o</code>) should becopied in the moduledirectory of your X server, usually or <code>/usr/X11R6/lib/modules/input</code>. When the file is in place, a proper <code>XF86Config</code> will arrange forits loading.<p>In order to recompile the moduleyou need access to the complete X source tree, and you cancompiling issuing:<br><pre>make XFREE_SOURCE=<location-of-source> onetouch_drv.o</pre><p>The "location of source" above should be the full path name to thedirectory called "xc" after you uncompress the source tar file.<p><code>XFREE_SOURCE</code> can be definedin your environment if you prefer. Note that if the variableis defined, calling <var>make</var> without arguments willcompile the module.<p>To compile <var>onetouch</var> you'll most likely need to compile X first(by issuing <code>make World</code> and waiting a huge lot of time). A freshlyuncompressed source tree lacks the proper header files for compilationto succeed; since one of the errors happens inside an X header, youcan only fix it by compiling X first - I can't fix things in my source.<p><hr>Node:<a name="XFree%20Configuration">XFree Configuration</a>,Next:<a rel=next href="#Calibration">Calibration</a>,Previous:<a rel=previous href="#Device%20Support">Device Support</a>,Up:<a rel=up href="#Top">Top</a><br><h2>XFree Configuration</h2><ul><li><a href="#XFree%204.x">XFree 4.x</a>: <li><a href="#Generic%20X%20Configuration">Generic X Configuration</a>: </ul><p><hr>Node:<a name="XFree%204.x">XFree 4.x</a>,Next:<a rel=next href="#Generic%20X%20Configuration">Generic X Configuration</a>,Previous:<a rel=previous href="#XFree%20Configuration">XFree Configuration</a>,Up:<a rel=up href="#XFree%20Configuration">XFree Configuration</a><br><h3>XFree 4.x</h3><p>In order to use a Onetouch device with XFree 4, you need to add an<code>InputDevice</code>section to your <code>XF86Config</code>. The following example showshow it looks like. The options that are shown commented are notimplemented in this version of the module, and are ignoredif specified.<br><pre>Section "InputDevice"Identifier "Touchscreen0"Driver "onetouch"Option "Device" "/dev/ttyS0"Option "BaudRate" "9600"#Option "CalibrationFile" "/etc/onetouch.calib"Option "Smoothness" "9"Option "TappingDelay" "0"Option "JitterDelay" "50"Option "DebugLevel" "0"Option "SendCoreEvents"EndSection</pre><p>Moreover, you need to add an <code>InputDevice</code> line in the<code>ServerLayout</code> section. After the addition,the section will most likely look like this:<br><pre>Section "ServerLayout"Identifier "Simple Layout"Screen "Screen 1"InputDevice "Mouse1" "CorePointer"InputDevice "Keyboard1" "CoreKeyboard"InputDevice "Touchscreen0"EndSection</pre><p>Note that if your system has no mouse device, you can removethe <code>InputDevice "Mouse1"</code> line and add <code>"CorePointer"</code>to the touch screen line.<p>The meaning of individual options is as follows:<dl><br><dt><code>Identifier "Touchscreen0"</code><dd>The identifier string is mandatory, and appears, literally, inthe <code>InputDevice</code> directive within the <code>ServerLayout</code>section that is usually found at the end of the configuration file.<br><dt><code>Driver "onetouch"</code><dd>The name of the driver is mandatory. It is used to load theassociated module. In this case the file <code>onetouch_drv.o</code>.<br><dt><code>Option "Device" "/dev/ttyS0"</code><dd>The device name is mandatory. It states where input data iscollected from.<br><dt><code>Option "BaudRate" "9600"</code><dd>The transmission rate for serial ports. It defaults to 9600.<br><dt><code>Option "CalibrationFile" "/etc/onetouch.calib"</code><dd>The option is not currently implemented, the calibrationfilename is hardwired<br><dt><code>Option "Smoothness" "9"</code><dd>The smoothness of the pointer. The default value is 9. The greaterthe value the smoother the motion. If you need to do handwritingor similar "fast" interaction, you should set the smoothness to 0.<br><dt><code>Option "TappingDelay" "0"</code><dd>Optional selection of tapping mode. By default (tapping delay set to 0), any touchevent is reported as a button press. In tapping mode the firsttouch event is used to move the pointer, and button press isonly reported when the user taps on the device. If the delay,measured in milliseconds, between pen-up and pen-down is greaterthan the selected value, the pen-down even is considered motion. I personallyprefer tapping mode when testing the device, as it allows meto use the common point-and-click semantics instead ofclick-only; this is especially true if your touchscreen is notplaced over the image but in side of it (as you guess, I do that).<br><dt><code>Option "JitterDelay" "50"</code><dd>The debouncing time lapse, measured in milliseconds. If a pen-down event occurs immediately after pen-up (within thistime lapse), then both events are discarded. Debouncing hasbeen contributed by Chris Howe <chris@howeville.com>, and defaultsto 50ms.<br><dt><code>Option "DebugLevel" "0"</code><dd>The level of messages spit out by the driver. The directiveis optional and it defaults to 0.<br><dt><code>Option "SendCoreEvents"</code><dd>The directive instructs X to use the touch screen as a coreinput device (like the main mouse). This module can currentlyonly work as a core device.</dl><p><hr>Node:<a name="Generic%20X%20Configuration">Generic X Configuration</a>,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -