Differences between version 2 and predecessor to the previous major change of HowToXFree86TouchScreenHOWTO.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Friday, June 7, 2002 1:07:51 am | by perry | Revert |
Older page: | version 1 | Last edited on Friday, June 7, 2002 1:07:51 am | by perry | Revert |
@@ -13,9 +13,9 @@
----
''This document describes how to set up a touch screen input device under XFree86. As the author had only the opportunity to work with devices
-from EloTouch(R) and MicroTouch(R) this HOWTO is rather specific for these
+from !
EloTouch(R) and !
MicroTouch(R) this HOWTO is rather specific for these
devices.''
----
@@ -73,11 +73,11 @@
Section "Files"
...
-ModulePath "/usr/X11R6/lib/modules"
+!
ModulePath "/usr/X11R6/lib/modules"
...
-EndSection
+!
EndSection
To get the module loaded by the X server there has to be a section like this:
@@ -86,9 +86,9 @@
Section "Module"
Load "xf86Elo.so"
-EndSection
+!
EndSection
Now the more tricky part. X needs to know some parameters about the device.
@@ -97,21 +97,21 @@
Section "Xinput"
-SubSection "Elographics"
-#the entry for a MicroTouch device would be SubSection "MicrotouchFinger"
+!
SubSection "Elographics"
+#the entry for a !
MicroTouch device would be !
SubSection "!
MicrotouchFinger"
Port "/dev/ttyS1" # for a device at serial port 2
-DeviceName "TouchScreen" #could be any unambiguous name
+!
DeviceName "!
TouchScreen" #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
+!
UntouchDelay 10 #not supported with !
MuTouch
+!
ReportDelay 10 #not supported with !
MuTouch
+!
AlwaysCore #activates the device on startup
+!
EndSubSection
+!
EndSection
The values for the entries MinimumXPosition etc. are of course specific
@@ -148,9 +148,9 @@
This mapping can be done by trial and error or by reading the raw output
of the device (needs some serial port programming, see "The Linux Serial
-Programming HOWTO"). For the types EloTouch and MicroTouch exists a
+Programming HOWTO"). For the types !
EloTouch and !
MicroTouch exists a
rudimentary calibration tool (written by the author of this document,
it can be found at
ftp://metalab.unc.edu/pub/linux/X11/xutils/touchcal-0.1.tar.gz).
----
@@ -165,12 +165,12 @@
where<devicename> is the name defined in XF86Config
with the line
-DeviceName ".....", in this example it would be TouchScreen.
+!
DeviceName ".....", in this example it would be !
TouchScreen.
-To get the device working on startup use the AlwaysCore option in
+To get the device working on startup use the !
AlwaysCore option in
the touch screen section (see above)
----
!!4. Using touch screen and mouse in parallel
@@ -181,19 +181,19 @@
as in the Pointer-section. The following example is for a
PS/2-mouse:
Section "Xinput"
-SubSection "Mouse"
+!
SubSection "Mouse"
Protocol "PS/2"
Port "/dev/mouse" #could also be /dev/psaux
-DeviceName "Mouse"
-AlwaysCore
-EndSubSection
+!
DeviceName "Mouse"
+!
AlwaysCore
+!
EndSubSection
...
-EndSection
+!
EndSection
Several people pointed this out, especially the usage of the
-AlwaysCore option. Thanks to them all.
+!
AlwaysCore option. Thanks to them all.
----
!!5. Configuration under XFree86 4
@@ -205,43 +205,43 @@
-Section "InputDevice"
+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
+Option "!
UntouchDelay" "10"
+Option "!
ReportDelay" "10"
+Option "!
SendCoreEvents" "yes"
+!
EndSection
Noteable differences between this and the version 3 config are that you
specify a Device, *not* a Port, otherwise you get an error.
-Also, AlwaysCore from v3 has been replaced with SendCoreEvents.
+Also, !
AlwaysCore from v3 has been replaced with !
SendCoreEvents.
-You must also add to the ServerLayout section, despite that X might
+You must also add to the !
ServerLayout section, despite that X might
say:
"(II) XINPUT: Adding extended input device "TOUCHSCREEN" (type:
Elographics Touch Screen)"
-Section "ServerLayout"
+Section "!
ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
-InputDevice "Generic Keyboard"
+!
InputDevice "Generic Keyboard"
...
-InputDevice "ELO touchscreen"
-EndSection
+!
InputDevice "ELO touchscreen"
+!
EndSection
----
!!6. Suggested reading