【发布时间】:2021-04-19 12:58:28
【问题描述】:
我正在使用一个用 yocto 准备的嵌入式 linux 操作系统,它具有 weston (wayland) 实现。我可以使用 weston-touch-calibrator 校准触摸屏,但重新启动后校准会恢复默认值。我看不到校准值,也找不到校准矩阵。如何永久校准设备?
感谢您提供的任何帮助..
【问题讨论】:
标签: touchscreen wayland weston
我正在使用一个用 yocto 准备的嵌入式 linux 操作系统,它具有 weston (wayland) 实现。我可以使用 weston-touch-calibrator 校准触摸屏,但重新启动后校准会恢复默认值。我看不到校准值,也找不到校准矩阵。如何永久校准设备?
感谢您提供的任何帮助..
【问题讨论】:
标签: touchscreen wayland weston
我解决了这个问题。让我在这里添加它,以便它可以帮助其他人; 将这些行添加到 /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
没关系..
【讨论】: