Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Official Display • Chromium in Kiosk mode: Interaction via touch display sometimes not possible

$
0
0
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:
  • 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 &
sudo nano /etc/xdg/openbox/environment

Code:


export KIOSK_URL=https://www.foo.com
sudo nano ~/.bash_profile

Code:


[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor

Questions:

Statistics: Posted by mark_watney — Fri Feb 02, 2024 12:40 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles