I’m developing an application in toradex colibri imx7 board. In that, I’m facing an issue on touchscreen. In that, the orientation was wrongly pointed and I need to do the calibration for it. From my observation, the touch was tilted to 270 degree and flipped with Y-direction. I tried the calibration setup from the below link.
As per the document, I can do the one process at a time either I can tilt to some degrees (90, 180, and 270) or I can do change of direction by (x, y and xy). I can’t understand how to do both in the configuration setup.
I also tried the calibration by using “xinput_calibrator” command. That is also not helping to solve the problem. I captured the statement while executing the command as below.
root@colibri-imx7-emmc:/sys/class/pwm/pwmchip1# xinput_calibrator Calibrating EVDEV driver for “AD7879 Touchscreen” id=7
** current calibration values (from XInput): min_x=1586, max_x=1591 and min_y=2794, max_y=2726** INFO: width=640, height=480
Doing dynamic recalibration:
** Swapping X and Y axis…**
** Setting calibration data: 1588, 1588, 2749, 2749**
** → 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)** Section “InputClass”
** Identifier “calibration”**
** MatchProduct “AD7879 Touchscreen”**
** Option “Calibration” “1588 1588 2749 2749”**
** Option “SwapAxes” “1”** EndSection
Kindly help me to get the right position for calibration setup.
Kindly share more details on software and hardware version which you are testing. From logs it seems like you are using old BSP. Here we will encourage you to test with our latest BSP which is BSP 5.4.0.
Additionally to understand further issue kindly share display datasheet and how touch panel signal are connected.
Hi @ritesh.tx ,
I also tried with the latest BSP 5 with version of Yocto 5.5 dunfell. There also I experience the same.
I followed the below link for calibration process. I need to update the both y-direction change and the 270 degree angle rotate to achieve the correct position for my touch display.
I tried “weston-touch-calibrator” from that latest BSP.
Kindly share datasheet and information how display touch signals are connected with Colibri. We quickly tested rotation with our 7 inch resistive display with below command and it works fine.
Hi Ritesh, I tried all possible combination. Details are here
ENV{LIBINPUT_CALIBRATION_MATRIX}=“1 0 0 0 1 0” # default
ENV{LIBINPUT_CALIBRATION_MATRIX}=“0 -1 1 1 0 0” # 90 degree clockwise
ENV{LIBINPUT_CALIBRATION_MATRIX}=“-1 0 1 0 -1 1” # 180 degree clockwise
ENV{LIBINPUT_CALIBRATION_MATRIX}=“0 1 0 -1 0 1” # 270 degree clockwise
ENV{LIBINPUT_CALIBRATION_MATRIX}=“-1 0 1 1 0 0” # reflect along y axis
I am using Imx7 with 5.7.2 torizon. I am using Toradex LCD 7" but still not getting right touch value.
If I select default then it just reverse at Y axis and if i put 180 degree value then X axis revert means in first if I press top then bottom execute and in 180 degree id i press left right work.
TDX Wayland with XWayland 5.7.2+build.21 (dunfell) colibri-imx7-emmc-14954899 ttymxc0
Colibri-iMX7-eMMC_Reference-Multimedia-Image
HI @Rudra,
This post is very old and already solved.
I request you to create a new post (you can give reference to this post if you want)
a. Share the hardware you are using
b. Share the steps you tried
c. Share the issue you are facing