Linux Touch Screen HOWTO: 在 XFree86 4 之下進行設定

Next Previous Contents

## 5. 在 XFree86 4 之下進行設定

(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

> `

## 5.1 其它的例子

### 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" 可以是 "finger" 或 "stylus" Since Microtouch was bought by 3M-Touch, 參照 http://www.3M.com/3MTouchSystems/downloads/legacy.jhtml#Linux

## 5.2 附錄

依據 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"
>     ...

> `

Next Previous Contents