-
Microtouch and Xorg
Hi all. I was wondering if anyone has any experience calibrating a Microtouch Serial/SMT3 touch screen device for Xorg. I was able to find a tool to calibrate elographics touch screens (from the author of the touch screen howto) but it is ineffective with microtouch.
Code:
# Section "InputDevice"
# Identifier "touchscreen0"
# Driver "microtouch"
# Option "Device" "/dev/ttyS0"
# Option "MinX" "1412"
# Option "MaxX" "15184"
# Option "MinY" "15372"
# Option "MaxY" "1230"
# Option "ScreenNumber" "0"
# Option "ReportingMode" "Scaled"
# Option "ButtonNumber" "1"
# Option "SendCoreEvents"
# EndSection
these are the default values from a sample xorg.conf file. Notice that the Min-Max values are reversed. MinY is roughly the same value as MaxX. With these values, at 600x480,800x600, and 1024x768, the calibration is off.
Code:
--------------touch screen area-----------------
I I
I ########visible monitor area############## I
I # # I
I # # I
I # # I
I # # I
I # *2 # I
I # # I
I # *1 # I
I # # I
I # # I
I # *3 # I
I # # I
I # # I
I # # I
I ########################################## I
I I
------------------------------------------------
*1 if I touch the screen in this position the cursor is aligned with the area that I touched. When touching the monitor anywhere else, the alignment progressively degrades from this point in any direction.
*2 the alignment is off.. the courser position is offset low and to the right of the point pressed
*3 High and left.
(this result is achieved at any resolution)
I have tried the trial an error approach with little success. I can't distinguish any pattern when changing the MinX & Y or MaxX & Y. Xorg provides little documentation (that i can find anyway) on thier microtouch driver. Prior to using this monitor, I had used an EloGraphics device that I was able to calibrate by using the touchcal program. Touchcal does not work with the microtouch device I am using though the author says it is compatable. I took a stab at trying to decipher the raw serial output of the device without success.
Any help would be appreciated.
Thanks