kennyliveforever wrote:
> After 2 days i'm finaly find a solution for correct working touch, just
> need edit /mnt/mmcblk0p2/tce/jivelite.sh as below...
> >
Code:
--------------------
> > #!/bin/sh
> if [ ! -z ${SDL_TOUCHSCREEN} ]; then
> export JIVE_NOCURSOR=1
> fi
>
> # export SDL_VIDEO_FBCON_ROTATION=UD
> export SDL_TOUCHSCREEN=1
>
> export TSLIB_TSDEVICE=/dev/input/event0
> export SDL_MOUSEDRV=TSLIB
> export SDL_MOUSEDEV=$TSLIB_TSDEVICE
> export HOME=/home/tc
> export JIVE_FRAMERATE=22
>
> /usr/sbin/fbset -depth 32
>
> while true; do
> sleep 3
> SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb1 /opt/jivelite/bin/jivelite &
> done
--------------------
> >
Hi guys,
The "&" at the end of the jivelite command is causing me problems. It
creates lots of occurrences of jivelite to be created. Look via $ ps.
I have been working on getting the script as generic as possible. The
commented commands have been eliminated as NOT being a mandatory
requirement. The EVENTNO is required because if you plug in a USB
keyboard the input numbering scheme changes the touchscreen event
number. I can't get udev to assign an alias, anyone done that?
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
--------------------
regards
Greg
------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=107366
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix