I have an Eragon410 board from eInfochips driving a EIC-LCD-1080P LCD display.
I flashed Linaro Linux onto the board from the images provided by eInfochips,
giving me version 16.06, aka Debian GNU/Linux 8 linaro-alip, “jessie”.
I am having touch-screen calibration difficulties after rotating the GUI display
on my LCD using xrandr. I put the command “xrandr -o right” (with supporting
syntax) in a .desktop file in etc/xdg/autostart/ and the GUI always comes up
successfully rotated on the LCD after bootup, since a horizontal view is needed
for the end application.
This system uses the Goodix Capacitive TouchScreen with the evdev driver.
evdev_drv.so is in /usr/lib/xorg/modules/input/.
10-evdev.conf is in /usr/share/X11/xorg.conf.d/, along with 99-calibration.conf.
I am able to edit the numbers in the following line (defaults shown):
Option “Calibration” “3 271 0 1237”
and get the mouse pointer to respond according to the touchscreen, but need to
calibrate exactly. When the screen is not rotated, in vertical view, the above
defaults give correct calibrated touchscreen results.
The system has xinput_calibrator, which is not returning correct results for me
when I put them into 99-calibration.conf and restart.
Device “Goodix Capacitive TouchScreen” id=7
xinput_calibrator --device 7 --misclick 200
I get through the program after about six tries, touching the red targets in
each corner successively. Most of the time it says “Misclick detected;
I get this output
linaro@linaro-alip:~$ xinput_calibrator --device 7 --misclick 200
Calibrating EVDEV driver for “Goodix Capacitive TouchScreen” id=7
current calibration values (from XInput): min_x=214, max_x=218 and min_y=1128, max_y=1141
Doing dynamic recalibration:
Swapping X and Y axis…
Setting calibration data: 215, 215, 1140, 1140
–> Making the calibration permanent <–
copy the snippet below into ‘/etc/X11/xorg.conf.d/99-calibration.conf’ (/usr/share/X11/xorg.conf.d/ in some distro’s)
MatchProduct “Goodix Capacitive TouchScreen”
Option “Calibration” “215 215 1120 1140”
Option “SwapAxes” “1”
When I put the Calibration and SwapAxes numbers into 99-calibration.conf,
touching anywhere on the screen keeps the mouse pointer hard on the left edge of
my horizontal display.
If I manually change the Calibration numbers to “3 271 1200 5”, for example, I
get the mouse pointer more or less in line horizontally, and higher and lower
vertically when I touch higher and lower on my horizontal display, although the
vertical results are far off.
How can I get this system to return correct calibration results?