This example uses the touchscreen that comes with i.MX51 EVK's parallel LCD
Download xserver-xorg-input-evtouch (xserver-xorg-input-evtouch_0.8.8-3build1_armel.deb) from https://launchpad.net/ubuntu/lucid/armel/xserver-xorg-input-evtouch/0.8.8-3build1
On i.MX51 EVK board, run “sudo dpkg –i xserver-xorg-input-evtouch_0.8.8-3build1_armel.deb” to install debian package.
Remove evdev config file:
sudo rm /usr/lib/X11/xorg.conf.d/05-evdev.conf
Change the content of 10-evtouch.conf to:
sudo vi /usr/lib/X11/xorg.conf.d/10-evtouch.conf
Section "InputClass" Identifier "touchscreen catchall" MatchIsTouchscreen "on" Driver "evtouch" Option "SwapY" "1" Option "MinX" "32" Option "MinY" "46" Option "MaxX" "1001" Option "MaxY" "967" EndSection
The MinX, MinY, MaxX and MaxY values can be changed to match the exact configuration of your touchscreen
Save above configuration and reboot the system.