I once had an example script for Qt fluidlauncher demo that would run ts_calibrate only when it has not been calibrated. After it has been calibrated it will execute the app only. I cant find this script anywhere. Does someone know how to check if tslib has been calibrated or not?
run ts_calibrate only when not calibrated
i use it like this (in my startupscript which starts the qt app) if [ -f /etc/pointercal ] ; then $QPEDIR/myAPP -qws else ts_calibrate $QPEDIR/myAPP -qws fi
Just check the file qt4 in /bin/qt4. It's the demo script to run fluidlaucher. [root@FriendlyARM /home]# ls -l /bin/q* -rwxr-xr-x 1 root root 829 Aug 16 2010 /bin/qt4 -rwxr-xr-x 1 root root 823 Mar 30 2009 /bin/qtopia [root@FriendlyARM /home]# vi /bin/qt4 #!/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 LD_LIBRARY_PATH=/usr/local/lib export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin export QWS_DISPLAY=:1 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="Tslib:/dev/input/event0 MouseMan:/dev/input/mice if [ ! -s /etc/pointercal ] ; then rm /etc/pointercal /usr/local/bin/ts_calibrate fi else export QWS_MOUSE_PROTO="MouseMan:/dev/input/mice" fi unset TS_INFO_FILE .......... Regards