qt4 系统无法调用屏幕校准文件
来源:互联网 发布:如何删除淘宝空间图片 编辑:程序博客网 时间:2024/05/17 07:30
平台:Linux2.6.30.4 TQ2440 Qt4
问题:构建文件系统支持qt4时,即使删除,但每次启动时没有校准的情况下总会自动生成,屏幕与触摸屏之间也对不上
******************************************************************************************************************************
解决:
#天嵌Qt开发手册提供的/bin/qt4
#!/bin/sh
echo Start Qt-4.5 > /dev/console
export set HOME=/root
export set QTDIR=/opt/qt-4.5
export set QPEDIR=/opt/qt-4.5
export set QWS_DISPLAY="LinuxFB:/dev/fb0"
export set QWS_DISPLAY="LinuxFB:mmWidth130:mmHeight100:0"
export set QWS_KEYBOARD="TTY:/dev/tty1"
if [ -f /sys/devices/virtual/input/input1/uevent ] ; then#问题所在input1
export set TSLIB_TSDEVICE=/dev/event1#event1
export set TSLIB_CALIBFILE=/etc/pointercal
export set TSLIB_CONFFILE=/etc/ts.conf
export set TSLIB_PLUGINDIR=/lib/ts
export set QWS_MOUSE_PROTO="TSLIB:/dev/event1 Intellimouse:/dev/mouse0" #event1
else
export set QWS_MOUSE_PROTO="Intellimouse:/dev/mouse0"
if [ -f /etc/pointercal ] ; then
echo only use mouse > console
else
echo "1 0 1 0 1 1 65536" >/etc/pointercal
fi
fi
export set QT_PLUGIN_PATH=$QTDIR/plugins/
export set QT_QWS_FONTDIR=$QTDIR/lib/fonts/
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/plugins/imageformats:$LD_LIBRARY_PATH
if [ -f /etc/pointercal ] ; then
$QPEDIR/bin/hello_cn -qws 1>/dev/null 2>/dev/null
else
ts_calibrate
# mousecalibration
$QPEDIR/bin/hello_cn -qws 1>/dev/null 2>/dev/null
fi
***************************************************************************************************************
#天嵌提供的文件系统root_qt4.5的/bin/qt4
#!/bin/sh
echo Start Qt-4.5 > /dev/console
export set HOME=/root
export set QTDIR=/opt/qt-4.5
export set QPEDIR=/opt/qt-4.5
export set QWS_DISPLAY="LinuxFB:/dev/fb0"
export set QWS_DISPLAY="LinuxFB:mmWidth130:mmHeight100:0"
export set QWS_KEYBOARD="TTY:/dev/tty1"
if [ -f /sys/devices/virtual/input/input0/uevent ] ; then#input1
export set TSLIB_TSDEVICE=/dev/event0#event0
# export set TSLIB_CALIBFILE=/etc/pointercal
export set TSLIB_CONFFILE=/etc/ts.conf
export set TSLIB_PLUGINDIR=/lib/ts
export set QWS_MOUSE_PROTO="TSLIB:/dev/event0 Intellimouse:/dev/mouse0"#event0
else
export set QWS_MOUSE_PROTO="Intellimouse:/dev/mouse0"
if [ -f /etc/pointercal ] ; then
echo only use mouse > console
else
echo "1 0 1 0 1 1 65536" >/etc/pointercal
fi
fi
export set QT_PLUGIN_PATH=$QTDIR/plugins/
export set QT_QWS_FONTDIR=$QTDIR/lib/fonts/
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/plugins/imageformats:$LD_LIBRARY_PATH
if [ -f /etc/pointercal ] ; then
echo 1
$QPEDIR/bin/hello_cn -qws 1>/dev/null 2>/dev/null
echo hello
else
echo hello
ts_calibrate
#mousecalibration
echo ts
$QPEDIR/bin/hello_cn -qws 1>/dev/null 2>/dev/null
fi
********************************************************************************************
仍然不理解:
input1&0,是输入子系统,但不明白它们分别对应哪个,在那里对应上?
还望各路大侠指点。
- qt4 系统无法调用屏幕校准文件
- 调用setting的校准屏幕功能
- 定制WinCE系统的屏幕校准界面
- 定制WinCE系统的屏幕校准界面
- 发一个android系统手机的屏幕校准软件
- Wince Linux 屏幕校准
- wm屏幕校准
- Android屏幕校准
- wince校准屏幕
- Ubuntu 屏幕颜色校准
- 调用系统屏幕保护
- MTK8321 GPS无法校准
- 调用触摸屏校准程序
- 给android增加屏幕校准
- 给android增加屏幕校准
- ok6410 开发板屏幕校准
- 飞凌TE6410屏幕校准步骤
- 给android增加屏幕校准
- Java IO完全总结
- 设计模式之工厂设计模式(二:抽象工厂模式)
- Codeforces Round #128 (Div. 2)
- 深刻理解Python中的元类(metaclass)
- Android中解析XML
- qt4 系统无法调用屏幕校准文件
- 中央机构之组织架构图
- android中 httpClient的3种超时时间
- Set Matrix Zeroes
- N皇后问题 【回溯法】
- Codeforces Round #129 (Div. 2)
- opencv实现导向滤波(GuidedFilter)
- java UUID生成唯一标识符
- Python逻辑行与物理行