UbuntuHelp:EloTouchScreen
来自Ubuntu中文
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
ELO Touch-screen Driver Configuration
Ubuntu includes an Xorg xserver input driver in the package xserver-xorg-input-elographics for Dapper, Feisty, Gutsy, Hardy, Intrepid and Jaunty (for x86 and x86_64). This will work with many of the ELO touch-screen drivers, both serial and USB. E271-2210 and E271-2200 devices are supported. E281-2310 and compatible devices are supported with some features unavailable.
Installation
sudo apt-get install xserver-xorg-input-elographics
Note: Version 1.1.0-3 has a bug that is triggered when axis minimum and maximum values are inverted. Until the package is updated a patched version (1.1.0-3ubuntu1) is available from my PPA.
Configuration
Edit `/etc/X11/xorg.conf` and add a new !InputDevice section similar to this one. This example comes from a screen test on a laptop that is configured so the external graphics device is on X screen 1 (note the screenNo option) rather than the default screen 0.
Section "InputDevice" Identifier "ELO Touchscreen" Driver "elographics" Option "Device" "/dev/ttyUSB0" Option "AlwaysCore" Option "screenNo" "1" Option "MinX" "4100" Option "MaxX" "0" Option "MinY" "0" Option "MaxY" "4100" Option "UntouchDelay" "5" Option "ReportDelay" "1" EndSection
Note: edit the Device value (/dev/ttyUSB0) to match the input device name the touch-screen input has. In this case, the device is a serial touch-screen connected via a serial-to-USB converter. You may have to invert the minimum and maximum X- and Y-scale values if the input values from the touch-screen are inverted. Use `man elographics" to see all the options and defaults. Add the input device to the !ServerLayout section so it looks similar to this:
Section "ServerLayout" Identifier "Default Layout" Screen 0 "Screen0" 0 768 Screen 1 "Screen1" Above "Screen0" InputDevice "Synaptics Touchpad" InputDevice "ELO Touchscreen" EndSection
Save the file and log-out to restart the X server.
Calibration
Manual calibration is required. It is a case of repeatedly changing the minimum and maximum X and Y axis values in xorg.conf, restarting and testing. An alternative is to build and then run touchcal from a non-X terminal to determine minimum and maximum values to use in xorg.conf.