https://github.com/libts/tslib/releases
tar xjf tslib-1.22.tar.bz2 ./configure --prefix=$PWD/tmp --host=arm-linux-gnueabihf make make install
将安装路径tmp目录下的bin、etc、lib目录拷贝到开发板中;
修改/etc/ts.conf,将“module_raw input”这行屏蔽掉;
修改/etc/profile,添加以下语句(涉及到dev目录的内容根据实际情况调整):
export TSLIB_TSDEVICE=/dev/input/event1 export TSLIB_CALIBFILE=/etc/pointercal export TSLIB_CONFFILE=/etc/ts.conf export TSLIB_PLUGINDIR=/lib/ts export TSLIB_CONSOLEDEVICE=none export TSLIB_FBDEVICE=/dev/fb0
重启设备;
执行命令进入校准:
# 电阻屏校准命令,可删除前面TSLIB_CALIBFILE指定的文件进行重新校准 ts_calibrate # 多点触摸电容屏校准命令 ts_test_mt