TheChrisP wrote:
> Hi,
>
> first of all a big thanks to the dev that make this solution to maintain
> the Squeezebox alive on RPi as a present for my daughter !!!
>
> I've already read many many threads to achieve the first step of my
> setup, integrating a 3.5 480*320 touchscreen (ADA 2441) on a RPi3+. I
> have no other screen attached to the hdmi port, and no keyboard or mouse
> connected, so event0 is always affected to the touchscreen.
>
> But then I'm stick with erratic touch behaviors :/
>
> First I want to explain what I did, it took me a while to clean up these
> steps, I hope this is not too obvious for the pro, but it can help other
> users in the same situation:
>
> Install the 3.50 version on a sdcard, then edit Cmdline.txt:
> >
Code:
--------------------
> > tz=CET-1CEST,M3.5.0,M10.5.0/3 dwc_otg.fiq_fsm_mask=0xF host=MusicPlayer
dwc_otg.lpm_enable=0 console=tty1 root=/dev/ram0 elevator=deadline rootwait
quiet nortc loglevel=3 noembed smsc95xx.turbo_mode=N noswap cron consoleblank=0
waitusb=2 fbcon=map:11 fbcon=font:ProFont6x11 logo.nologo
--------------------
> >
>
>
> edit the Config.txt file to charge the dtbo file for the screen:
> >
Code:
--------------------
> > #Custom Configuration Area, for config settings that are not managed by
pCP.
> #pCP will retain these settings during insitu-update
> #---Begin-Custom-(Do not alter Begin or End Tags)-----
> framebuffer_width=480
> framebuffer_height=320
> dtoverlay=pitft35-resistive,rotate=270,speed=25000000,fps=20
> #---End-Custom----------------------------------------
--------------------
> >
> note that the default speed at 42000000 does not make the screen to
> work, I had to reduce this.
>
> Then boot up the RPi (the screen is still remaining blank at this
> stage)
>
> Resize FS, then install Jivelite, the touchscreen will then be
> activated thanks to the touchscreen-4.14.26-pcpCore_v7.tcz included in
> the dependencies I believe. Then add
> pcp-jivelite_default-wav35skin.tcz extension from the PiCorePlayer
> sourceforge repository
>
> After the reboot, the screen show the console, but then get black, it
> has to be specified to Jivelite. So copy /opt/jivelite/bin/jivelite.sh
> to /mnt/mmcblk0p2/tce/jivelite.sh and modify the content to:
> >
Code:
--------------------
> > #!/bin/sh
> if [ ! -z ${SDL_TOUCHSCREEN} ]; then
> export JIVE_NOCURSOR=1
> fi
>
> #export SDL_VIDEO_FBCON_ROTATION=UD
> export JIVE_NOCURSOR=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 >
/dev/null 2>&1
> done
--------------------
> >
>
> The good thing is that the do_rebootstuf.sh script use this modified
> file instead of the initial jivelite.sh, cool.
>
> Then after reboot the Jivelite is starting on the screen (good) but
> the touchscreen does not yet work.
>
>
> So then I close jivelite using ps to get the process id:
> >
Code:
--------------------
> > 4271 root 0:00 {jivelite.sh} /bin/sh
/mnt/mmcblk0p2/tce/jivelite.sh
> 6064 root 0:02 /opt/jivelite/bin/jivelite
--------------------
> >
> then close the script first, then the bin:
> >
Code:
--------------------
> > sudo kill 4271
> sudo kill 6064
--------------------
> >
>
> ts_test does not work at this step, and the touch actions are not
> rotated. The ts.conf need to be modified to include the linear
> module:
>
> /usr/local/etc/ts.conf:
> >
Code:
--------------------
> > module_raw input
> module linear
>
--------------------
> >
>
> And as this file is not saved by default, add this line to the file
> /opt/.filetool.lst :
> >
Code:
--------------------
> > /usr/local/etc/ts.conf
--------------------
> >
> Now with pcp bu, the ts setting survive a reboot.
>
> So the touchscreen is properly displayed with the small screen skin,
> the touch actions are where there are supposed to be (I can scroll the
> menus).
>
> However the touch does not react as there are supposed to. It's kinda
> hard to explain, I had to click several time to the language menu
> before the choice were accepted and before I could go to the next
> menu, most of the time, I can see the line where I touched being
> highlighted, but the screen loops on the same menu and go to the
> bottom of the list. Eventually, after numereous attempts, it worked,
> but issues remained on hte next step.
>
>
> Interesting thing is that ts_print_raw show untranslated coordinates
> with a triplet of 0 0 0 when released
> >
Code:
--------------------
> > ...
> 1525943423.508813: 2467 2041 203
> 1525943423.515047: 2519 2044 151
> 1525943423.576994: 0 0 0
--------------------
> >
> , but ts_print show different translated data, especially the release
> is transformed to a non zero triplet of data, like 506 -29 0
> >
Code:
--------------------
> > 1525943956.555369: 191 258 122
> 1525943956.561603: 191 260 118
> 1525943956.567839: 190 261 117
> 1525943956.636996: 506 -29 0
--------------------
> >
>
> I learned a lot up to now, but there I'm stuck. What should I try next
> ?
Have you calibrated the screen using ts_calibrate?
See the Calibrate the Screen section for details. Note that jivelite
must NOT be running for ts_calibrate to work.
http://www.pughx2.com/picore3.html
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=108852
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix