I have a Gvision L15AX with a
serial touchscreen.
Setting up the elo drivers was more difficult for me than it needed to be. I tried to use the drivers provided by Elo with no success. At first I was confused as to the drivers I needed but found a hardware chipset/ driver list for touch screens here:
http://touch-base.com/documentation/...ontrollers.htm
So I needed the elo drivers and I downloaded them from here:
http://www.elotouch.com/Support/Downloads/dnld.asp
They didn't work for me. I followed the walk through and had no luck. I wasn't even successful at removing them.
So with a fresh install of Debian Etch (the Xserver graphics were messed up in Lenny) I installed the elographics package.
Code:
aptitude install xserver-xorg-input-elographics
I knew by touching the touch screen with
that my touch screen was on /dev/ttyS1.
Then I edited /etc/X11/xorg.conf
The options are available through:
My Y axis was flipped so I had to invert the max and min values. I would just change the values a little and then type ctrl+alt+backspace to restart X to test the new settings.
Important to know is that the minimum X,Y coordinates are for the top left and the maximum x,y coordinates for the bottom right. (So you:
touch the top-left to see how close your minimum values are and
touch the bottom-right to see how close your maximum values are.)
There's a picture here:
http://tldp.org/HOWTO/XFree86-Touch-Screen-HOWTO-1.html
(and some xorg.conf examples)
Code:
Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Identifier "ELO touchscreen"
Driver "elographics"
Option "Device" "/dev/ttyS1"
Option "MinX" "300"
Option "MaxX" "3800"
Option "MinY" "3800"
Option "MaxY" "300"
Option "UntouchDelay" "10"
Option "ReportDelay" "10"
Option "SendCoreEvents" "yes"
Option "ScreenNumber" "0"
Option "ButtonNumber" "1"
EndSection
Section "Device"
Identifier "ATI Technologies Inc ATI Default Card"
Driver "vesa"
BusID "PCI:1:5:0"
EndSection
Section "Monitor"
Identifier "15LCD(ANA)"
Option "DPMS"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc ATI Default Card"
Monitor "15LCD(ANA)"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "720x400" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "ELO touchscreen" "SendCoreEvents"
EndSection
Section "DRI"
Mode 0666
EndSection
I am very happy with the people that provided the Debian elographics package and wish I had know to try that first.
You can check to see what's going on with 'od' but I didn't know how to decipher the output.
Code:
od -w8 -d </dev/ttyS1
There's also touchcal available on Sourceforge but it didn't compile for me.
http://touchcal.sourceforge.net/