问题描述
我使用的是用 yocto 准备的嵌入式 linux 操作系统,它具有 weston (wayland) 实现。我可以使用 weston-touch-calibrator 校准触摸屏,但校准会在重新启动后恢复默认值。我看不到校准值,也找不到校准矩阵。如何永久校准设备?
感谢您提供的任何帮助..
解决方法
我解决了这个问题。让我在这里添加它,以便它可以帮助其他人; 将这些行添加到 /etc/xdg/weston/weston.ini
[...]
[libinput]
touchscreen_calibrator=true
calibration_helper=/usr/bin/save-calibration.sh
[...]
将其写入 save-calibration.sh ;
#!/bin/bash
# Store the transformation arguments for the resistive touchscreen as udev rule
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
更改文件的权限;
chmod 777 /usr/bin/save-calibration.sh
没关系..