export QT_LOGGING_RULES=qt.qpa.input=false # 打印触屏信息
export QT_DEBUG_PLUGINS=1
export TSLIB_ROOT=/opt/tslib
export QT_ROOT=/opt/qt-5.14.2
export TSLIB_CALIBFILE=/opt/tslib/etc/pointercal
export PATH=/opt/tslib/bin:$PATH
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_TSEVENTTYPE=input
export TSLIB_CONFFILE=/opt/tslib/etc/ts.conf
export TSLIB_PLUGINDIR=/opt/tslib/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
#export QWS_MOUSE_PROTO=tslib:/dev/input/event0
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:$QT_ROOT/lib:$TSLIB_ROOT/lib:$TSLIB_ROOT/lib/
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0:rotate=270:invertx #如果时电容屏,暂时不适用ts ,配置好正确的旋转
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_QPA_FONTDIR=$QT_ROOT/lib/fonts
export QT_QPA_GENERIC_PLUGINS=tslib
#export PATH=${USB_DIR}/:$PATH
if [ ! -f $TSLIB_CALIBFILE ]; then
echo "calibrate lcd"
ts_calibrate
sync
fi