在ARM上启动Qtopia-2.2.0: 使用USB鼠标的脚本:#!/bin/sh HOME=/root QTDIR=/opt/Qtopia QPEDIR=/opt/Qtopia QWS_MOUSE_PROTO="USB:/dev/input/mice" #使用mice可以实现鼠标热插拔,但是触摸屏还会有响应 #QWS_MOUSE_PROTO="USB:/dev/input/mouse1" #鼠标不能实现热插拔,但是触摸屏会停止响应 QWS_KEYBOARD="" QWS_SIZE="320x240" LD_LIBRARY_PATH=/opt/Qtopia/lib PATH=/opt/Qtopia/bin:$PATH export QTDIR QPEDIR LD_LIBRARY_PATH PATH HOME export QWS_MOUSE_PROTO QWS_KEYBOARD QWS_SIZE if [ -c /dev/tty0 ]; then echo -e -n '\033[?25l' > /dev/tty0 echo -e -n '\033[9]' > /dev/tty0 fi if [ -c /dev/vc/0 ]; then echo -e -n '\033[?25l' > /dev/vc/0 echo -e -n '\033[9]' > /dev/vc/0 fi cd /opt/Qtopia/bin ./qpe > /dev/null 2>&1 & 使用触摸屏的启动脚本:#!/bin/sh export TSLIB_TSDEVICE=/dev/input/event0 export TSLIB_PLUGINDIR=/usr/lib/ts export TSLIB_CONFFILE=/usr/etc/ts.conf export QWS_MOUSE_PROTO="TPanel:/dev/input/event0" export QWS_HIDE_CURSOR="Yes" export HOME=/root export QTDIR=/opt/Qtopia export QPEDIR=/opt/Qtopia export PATH=/opt/Qtopia/bin:$PATH export LD_LIBRARY_PATH=/usr/lib:/opt/Qtopia/lib if [ ! -f /etc/pointercal ]; then ts_calibrate fi if [ -c /dev/tty0 ]; then echo -e -n '\033[?25l' > /dev/tty0 echo -e -n '\033[9]' > /dev/tty0 fi if [ -c /dev/vc/0 ]; then echo -e -n '\033[?25l' > /dev/vc/0 echo -e -n '\033[9]' > /dev/vc/0 fi cd /opt/Qtopia/bin ./qpe > /dev/null 2>&1 & |