In my experience with Elo (and likely other) touch screens, if the display is rotated and this is accounted for in the display settings, the display looks correct but touch events are inverted. Tested with Ubuntu 16.04. Info from here.
Edit /usr/share/X11/xorg.conf.d/10-evdev.conf
, changing:
Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
to
Section "InputClass"
Identifier "evdev touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "SwapAxes" "True"
Option "InvertX" "True"
EndSection
Reboot or restart the X server with sudo restart lightdm
for the changes to take effect. Don't forget to change back if you rotate the screen to its original orientation.
Different screens and orientations necessetate different combinations of:
Option "InvertX" "True"
Option "InvertY" "True"
Option "SwapAxes" "True"