步骤一 : 添加Weston 校准支持 ,并重启板子. vi /etc/xdg/weston/weston.ini 不存在添加内容如下在末尾. [libinput] touchscreen_calibrator=true 步骤二: 终端调用校准命令 weston-touch-calibrator "DPI-1" --debug -v 输出如下: could not load cursor 'dnd-move' could not load cursor 'dnd-copy' could not load cursor 'dnd-none' Configure calibrator window to size 800x480 Down[0] (0.156738, 0.210938) Finish[0] Conv[0] (0.150000, 0.100000) Down[1] (0.814209, 0.223633) Finish[1] Conv[1] (0.850000, 0.129167) Down[2] (0.202148, 0.802246) Finish[2] Conv[2] (0.200000, 0.800000) Down[3] (0.661865, 0.752197) Finish[3] got all touches Conv[3] (0.700000, 0.750000) calibration test error: -0.010711, 0.000734 Calibration values: 1.064632 0.002799 -0.017459 0.021535 1.182161 -0.152738 步骤四: 拷贝结果(1.064632 0.002799 -0.017459 0.021535 1.182161 -0.152738)到校准文 /etc/udev/rules.d/ws-calibrate.rules (文件不存在创建)。 SUBSYSTEM=="input", ATTRS{name}=="tsc2007", ENV{LIBINPUT_CALIBRATION_MATRIX}="1.064632 0.002799 -0.017459 0.021535 1.182161 -0.152738", ENV{ID_INPUT_KEY}="1" 步骤五: 测试或重启测试. |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-9 02:11
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.