binky wrote: 
> Hello everyone, I could use a little help.
> 
> I am trying to set up the 3.5 inch touchscreen according to this
> tutorial (http://www.pughx2.com/picore3.html) everything is fine and
> jivelite appears, the only problem is that the touchscreen reacts
> incorrectly, the calibration is going well testing the calibration also,
> backing up with (sudo filetool .sh -b) is also fine.
> 
> I also tried all the solutions in this post, but I can't get the touch
> right.
> 
> i am using a raspberry p4 4gb model and pCP6.1.0 Standard Version img.
> 
> does anyone know the solution or what am i doing wrong.
> 
> thank you in advance!
> 
> tc@piCorePlayer:~$ sudo TSLIB_FBDEVICE=/dev/fb0
> TSLIB_TSDEVICE=/dev/input/event0
> /usr/local/bin/ts_calibrate
> xres = 480, yres = 320
> Took 12 samples...
> Top left : X =  313 Y = 3692
> Took 12 samples...
> Top right : X = 3837 Y = 3744
> Took 8 samples...
> Bot right : X = 3834 Y =  370
> Took 9 samples...
> Bot left : X =  316 Y =  293
> Took 7 samples...
> Center : X = 2194 Y = 2067
> -33.861176 0.130526 -0.000043
> 336.630585 0.001650 -0.088576
> Calibration constants: -2219126 8554 -2 22061422 108 -5804 65536 
> tc@piCorePlayer:~$ sudo filetool.sh -b
> Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz-
> Done.
> tc@piCorePlayer:~$ sudo reboot
> tc@piCorePlayer:~$ Connection to picoreplayer closed by remote host.
> Connection to picoreplayer closed.
> 
> file: dos2unix jivelite.sh
> 
> #!/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
> 
> touchscreen info.
> 
> tc@piCorePlayer:~$ cat /proc/bus/input/devices
> I: Bus=0000 Vendor=0000 Product=0000 Version=0000
> N: Name="ADS7846 Touchscreen"
> P: Phys=spi0.1/input0
> S:
> Sysfs=/devices/platform/soc/fe204000.spi/spi_master/spi0/spi0.1/input/input0
> U: Uniq=
> H: Handlers=mouse0 event0 
> B: PROP=0
> B: EV=b
> B: KEY=400 0 0 0 0 0 0 0 0 0 0
> B: ABS=1000003

no one has an idea what I'm doing wrong?


------------------------------------------------------------------------
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