I setup a very simple Kiosk using a Raspberry Pi 3 Model A+ with the official 7" Raspberry Pi Touch Display using Chromium to display a specific website that a user can interact with using the touch display.
The website is successfully shown in Chromium but (after booting the OS and opening the website in Chromium) it is not always possible to interact with the website using the touch display.
I can still SSH into the Raspberry Pi and I can navigate the website using a mouse connected via USB.
What could be the reason that the interaction via touchscreen is sometimes not possible?
This is how I setup the Raspberry Pi:
sudo nano /etc/xdg/openbox/environment
sudo nano ~/.bash_profile
Questions:
The website is successfully shown in Chromium but (after booting the OS and opening the website in Chromium) it is not always possible to interact with the website using the touch display.
I can still SSH into the Raspberry Pi and I can navigate the website using a mouse connected via USB.
What could be the reason that the interaction via touchscreen is sometimes not possible?
This is how I setup the Raspberry Pi:
- I installed the Raspberry Pi OS Lite (32-bit) using the Raspberry Pi Imager
- sudo raspi-config > "DISABLE overscan compensation" and "Console Autologin"
- sudo apt update
- sudo apt upgrade
- sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox xdotool
- sudo apt-get install --no-install-recommends chromium-browser
- sudo nano /etc/xdg/openbox/autostart
Code:
xset -dpms # turn off display power management systemxset s noblank # turn off screen blankingxset s off # turn off screen saver# Remove exit errors from the config files that could trigger a warningsed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences# Run Chromium in kiosk modechromium-browser --noerrdialogs --check-for-update-interval=31536000 --disable-infobars --kiosk $KIOSK_URL &Code:
export KIOSK_URL=https://www.foo.comCode:
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor
Statistics: Posted by mark_watney — Fri Feb 02, 2024 12:40 am