具本原因已弄清,现在结贴.
原因如下:
在板子根文件系统,/bin目录下有一个QT初始化的脚本qtopia,在终端下输入命令:
#cat /bin/qtopia
#!/bin/sh
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/local/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export QTDIR=/opt/qtopia
export QPEDIR=/opt/qtopia
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATH
export QWS_DISPLAY="linuxFB:mmWidth35:mmHeight45:0"
TS_INFO_FILE=/sys/devices/virtual/input/input0/uevent
if [ -e $TS_INFO_FILE -a "/bin/grep -q TouchScreen < $TS_INFO_FILE" ]; then
export QWS_MOUSE_PROTO="TPanel:/dev/input/event0 USB:/dev/input/mice"
if [ -e /etc/pointercal -a ! -s /etc/pointercal ] ; then
rm /etc/pointercal
fi
else
export QWS_MOUSE_PROTO="USB:/dev/input/mice"
>/etc/pointercal
fi
unset TS_INFO_FILE
export QWS_KEYBOARD=TTY:/dev/tty1
export KDEDIR=/opt/kde
export HOME=/root
exec $QPEDIR/bin/qpe 1>/dev/null 2>/dev/null
----------------------------------------------------------------------------------
TS_INFO_FILE=/sys/devices/virtual/input/input0/uevent
uevent,即user space event,就是内核向用户空间发出的一个事件通知,使
得应用程序能有机会对该event作出反应.
到文件系统里来找一找这个东东吧...
# cd /sys
# find -name uevent
未能找到/sys/devices/virtual/input/input0/uevent
但找到了/sys/class/input/input0/uevent
-----------------------------------------------------------
我不知道/sys/class/input/input0/uevent 这个路径是在哪定义的,所以我只有把根文件系统中的
qtopia脚本改一下了.修改脚本中的 TS_INFO_FILE=/sys/class/input/input0/uevent
改好,用新的文件系统就OK了....