(from Lee Monamy) ELO touch screen 的XF86Config-4设定:
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
值得注意的是这个设定和 version 3 设定Device的不同, *not* a Port, otherwise you get an error.同样 version3 的 AlwaysCore 被 SendCoreEvents 取代.
你也要加入到ServerLayout,不用管X的信息: "(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
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" 可以是 "finger" 或 "stylus" Since Microtouch was bought by 3M-Touch, 参照 http://www.3M.com/3MTouchSystems/downloads/legacy.jhtml#Linux
依据 Wong Yeow Sen, 设定的 option 名字在 XFree86 4.2 (at least with Red Hat 7.3)有所改变. 如果你的校准有误差请试试这个:
...
Option "MinX" "100"
Option "MaxX" "4000"
Option "MinY" "100"
Option "MaxY" "4000"
...