Code: -------------------- #!/bin/sh #export SDL_VIDEO_FBCON_ROTATION=UD #export HOME=/home/tc #export JIVE_FRAMERATE=22 #/usr/sbin/fbset -depth 32 #export SDL_TOUCHSCREEN=1 #TSLIB_CALIBFILE=/usr/local/etc/pointercal #export SDL_MOUSEDEV=$TSLIB_TSDEVICE #sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1 EVENTNO=$(cat /proc/bus/input/devices | awk '/ADS7846 Touchscreen/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}') export JIVE_NOCURSOR=1 export SDL_VIDEODRIVER=fbcon export SDL_FBDEV=/dev/fb1 export TSLIB_TSDEVICE=/dev/input/$EVENTNO export SDL_MOUSEDRV=TSLIB while true; do /opt/jivelite/bin/jivelite sleep 3 done --------------------
I think the entry "EVENTNO = ..." in the file jivelite.sh must be in one line without line breaks. Code: -------------------- #!/bin/sh #export SDL_VIDEO_FBCON_ROTATION=UD #export HOME=/home/tc #export JIVE_FRAMERATE=22 #/usr/sbin/fbset -depth 32 #export SDL_TOUCHSCREEN=1 #TSLIB_CALIBFILE=/usr/local/etc/pointercal #export SDL_MOUSEDEV=$TSLIB_TSDEVICE #sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1 EVENTNO=$(cat /proc/bus/input/devices | awk '/ADS7846 Touchscreen/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}') export JIVE_NOCURSOR=1 export SDL_VIDEODRIVER=fbcon export SDL_FBDEV=/dev/fb1 export TSLIB_TSDEVICE=/dev/input/$EVENTNO export SDL_MOUSEDRV=TSLIB while true; do /opt/jivelite/bin/jivelite sleep 3 done -------------------- ------------------------------------------------------------------------ piPlayer's Profile: http://forums.slimdevices.com/member.php?userid=65280 View this thread: http://forums.slimdevices.com/showthread.php?t=107366 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix