For the benefit of anyone else who might be struggling to calibrate a touchscreen under Ubuntu 11.04 this is what I did.
The driver is evdev, this is installed by default. Settings are found in /usr/share/X11/xorg.conf.d/10-evdev.conf
You'll need to be root to edit the file.
You can use
Code:
Option "InvertX" "true"
or
Code:
Option "InvertY" "true"
if you need to.
In a terminal window type "sudo evtest /dev/input/eventX"
Try various numbers for "X", each one will be a different input device, my touchscreen was event5 yours may well be different.
Now watching the output of evtest, touch the four corners of the screen one at a time make a note of the coordinates. Note the lowest and highest value each for the X and Y axes.
In 10-evdev.conf create the option
Code:
Option "Calibration" "minx maxx miny maxy"
Replacing minx maxx miny maxy with the figures you got from evtest.
I wasted a lot of time on this, trying all sorts of calibration utilities, none of which worked. I couldn't believe how simple it is and that nobody had written a guide.
I'm using a 3M MicroTouch EXII but this should work for any touchscreen as far as I can see.
Don't blame me if it doesn't I'm very new to Linux.
Bookmarks