Besth wrote: > well thanks ralphy - this helped a bit - im getting closer now. > I am now able to do: > > Code: -------------------- > > ts_calibrate -------------------- > > > I saved everything > > My device is > > Code: -------------------- > > TSLIB_TSDEVICE=/dev/input/event2 -------------------- > > > > When I do > > Code: -------------------- > > ts_test -------------------- > > > all works fine - even after I do a reboot > > But if I start jivelite the touch pointer works but its like 2-3 cm > displaced > Any idea on how to correct this? > Is there anything else I need to change in do_rebootstuff? > > My do_rebootstuff looks like: (I only changed the line with the # to > hardcode event2 - is this enough?) > > Code: -------------------- > > if [ "$JIVELITE" = "yes" ]; then > echo -n "${BLUE}Starting Jivelite... ${NORMAL}" > eventno=$( cat /proc/bus/input/devices | awk '/FT5406 memory based driver/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}') > if [ x"" != x"$eventno" ];then > export JIVE_NOCURSOR=1 > # export TSLIB_TSDEVICE=/dev/input/$eventno > export TSLIB_TSDEVICE=/dev/input/event2 > export SDL_MOUSEDRV=TSLIB > export SDL_MOUSEDEV=$TSLIB_TSDEVICE > fi > export HOME=/home/tc > echo "${GREEN}Done.${NORMAL}" > sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1 > fi > -------------------- > > Almost there, that's great!
Since you don't have the 7" rpi screen your change won't be run. The if statement is checking the eventno for the rpi screen, comment it out. Try this. Code: -------------------- if [ "$JIVELITE" = "yes" ]; then echo -n "${BLUE}Starting Jivelite... ${NORMAL}" # eventno=$( cat /proc/bus/input/devices | awk '/FT5406 memory based driver/{for(a=0;a>=0;a++){getline;{if(/mouse/==1){ print $NF;exit 0;}}}}') # if [ x"" != x"$eventno" ];then export JIVE_NOCURSOR=1 # export TSLIB_TSDEVICE=/dev/input/$eventno export TSLIB_TSDEVICE=/dev/input/event2 export SDL_MOUSEDRV=TSLIB export SDL_MOUSEDEV=$TSLIB_TSDEVICE # fi export HOME=/home/tc echo "${GREEN}Done.${NORMAL}" sudo -E -b /opt/jivelite/bin/jivelite.sh >/dev/null 2>&1 fi -------------------- Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ------------------------------------------------------------------------ ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=103330 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix