paul- wrote: 
> Yes the file name matters.
> 
> Your copy must be saved as /mnt/mmcblk0p2/tce/jivelite.sh
> 
> dos2unix is a command that gets executed on the file named jivelite.sh
I made a new file and now called jivelite.sh and the jivelite screen
will now appear, which is good now.

but as soon as I use the original calibration command I get the below.
$ sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0
/usr/local/bin/ts_calibrate
open fbdevice: No such file or directory

if I change it in the first part of the calibration command ($ sudo
TSLIB_FBDEVICE) to ($ sudo TSLIB_FBDEV) then I can calibrate but after
saving and rebooting the touch is not good again.

~$ sudo TSLIB_FBDEV=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 /u
sr/local/bin/ts_calibrate
xres = 480, yres = 320
Took 14 samples...
Top left : X = 3756 Y =  395
Took 13 samples...
Top right : X =  274 Y =  333
Took 10 samples...
Bot right : X =  293 Y = 3733
Took 8 samples...
Bot left : X = 3804 Y = 3735
Took 8 samples...
Center : X = 2128 Y = 2062
506.993225 -0.131490 0.001313
-20.956818 -0.000818 0.089021
Calibration constants: 33226308 -8617 86 -1373426 -53 5834 65536 

I USE THE SCRIPT BELOW.

#!/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


------------------------------------------------------------------------
binky's Profile: http://forums.slimdevices.com/member.php?userid=66862
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

Reply via email to