Hi.
I have an imx7d board running with a yocto-built imx-linux-zeus version operating system (with weston implementation of wayland). Everything's working fine except for touchscreen calibration. I can calibrate touchscreen via weston-touch-calibrator application without any problem. However, after reboot touch screen calibration reverts to the default calibration values. I couldn't find any calibration matrix on the user space. How can I make the calibration permanent?
I appreciate any help you can provide..
Solved! Go to Solution.
Hello ahmetcihan,
You need to be in kernel mode and modified the weston.ini, this will be done one time.
idle-time=0 |
require-input=false |
xwayland=true |
[libinput] |
touchscreen_calibrator=true |
calibration_helper=/usr/bin/save-calibration.sh |
[shell] |
panel-position=top |
locking=false |
allow-zap=true |
num-workspaces=1
Regards
Hello ahmetcihan,
You need to be in kernel mode and modified the weston.ini, this will be done one time.
idle-time=0 |
require-input=false |
xwayland=true |
[libinput] |
touchscreen_calibrator=true |
calibration_helper=/usr/bin/save-calibration.sh |
[shell] |
panel-position=top |
locking=false |
allow-zap=true |
num-workspaces=1
Regards
Thank you. It's working now. In addition, my save-calibration.sh file is as;
#!/bin/bash
echo 'SUBSYSTEM=="input", KERNEL=="event[0-9]*",
ENV{ID_INPUT_TOUCHSCREEN}=="1",
ENV{LIBINPUT_CALIBRATION_MATRIX}="'$2 $3 $4 $5 $6 $7'"' >> /etc/udev/rules.d/touchscreen.rules