Hello Gurus,
I bought a cheap TFT 480x320 touchscreen from eBay advertised for use with Raspberry Pi 4. Understanding that there are some challenges there, I did make great progress and I’ll cover that. Challenge: I can’t seem to get past the balena logo being shown on the screen to show a web page specified in LAUNCH_URL environment variable. The logs say it’s showing, it’s just showing the logo (but hey, it’s showing something!).
To start, I was able to install my app, then manually copy over my overlay files to /mnt/boot/overlays as described in this post, from this repository.
./LCD-show/usr/tft35a-overlay.dtb /mnt/boot/overlays/tft35a-overlay.dtb (not sure if this was used)
./LCD-show/usr/tft35a-overlay.dtb /mnt/boot/overlays/tft35a.dtbo (or this, one of these)
Looking at the install script, I set these settings in the dashboard for the fleet (of one device, for now):
(these last ones where there by default I think)
Then, I was able to setup a Dockerfile to successfully show a picture of my cats (yeah!!) based on the same post mentioned above:
# minimum working test:
FROM balenalib/%%BALENA_MACHINE_NAME%%-node
RUN install_packages build-essential fbi
WORKDIR /usr/src
COPY gizmo-and-widget.jpg gizmo-and-widget.jpg
# thanks: https://forums.balena.io/t/unable-to-use-tft-ili9341-with-pi-and-resin/487/4
CMD fbi -d /dev/fb1 -T 1 --noverbose gizmo-and-widget.jpg && \
while : ; do echo "idling..."; sleep 600; done
Result:
I wasn’t able to configure some items from that reference install script e.g. it didn’t like the arm64 when attempting to install armf trouch screen script (will address and experiment separately, just trying to get things to show for now). It also required manual copy of the display overlay into the disk (is there a way around this?). Otherwise, success.
After that, I installed belanaDash and added LAUNCH_URL
environment variable of https://unsplash.com/t/nature
. I can see in the logs that the page was set via the kiosk. The screen remains as a logo.
Note: I did have the “rainbow launch screen” enabled at first (the logo shows, where’s the rainbow I love rainbows…), then disabled and rebooted with same results.
Any ideas on how to troubleshoot? The good news is that I have a running screen. Thanks for taking a look in advance!