Permanent calibration problem on weston

cancel
Showing results for 
Search instead for 
Did you mean: 

Permanent calibration problem on weston

Jump to solution
2,319 Views
ahmetcihan
Contributor III

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..

0 Kudos
1 Solution
2,303 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

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

 

View solution in original post

2 Replies
2,304 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

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

 

2,291 Views
ahmetcihan
Contributor III

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

0 Kudos