MinistryofSillyWalks
Posts: 5
Joined: Sun Jan 31, 2021 3:45 pm

Kiosk on Buster Desktop Pi 4B

Sat Apr 24, 2021 9:14 pm

Hi,

I am trying to create a Chromium kiosk on my Pi 4B, running Buster. Basically the exact specs of the Kiosk are:

1. Boot without showing anything
2. Start Kiosk (if Wifi available--> if not open wifi menu)
3.User can now work only in Chromium on the webpage and cannot leave the browser or manipulate it to get to the Raspbian UI

I manage to clean the whole boot information output (console stuff, logos etc..) , after trying a gazillion other tutorials and failing, here:

viewtopic.php?t=270219


Then I installed the kiosk with this tutorial here:

https://pimylifeup.com/raspberry-pi-kiosk


Now I am at the point where
a) the Kiosk is running
b) the boot process is clean

BUT unfortunately, I still see the Desktop appear for 2 seconds, before Chromium starts. And I dont want that.

I tried to "disable" the Desktop by turning off the power of the USB hub that powers the screen via uhubctl and setting it up as init script.
Here I have the same problem as with the kiosk: the script only starts after loading the Desktop.

I also tried to change the boot option to terminal autologin, but then my kiosk mode dissappears completely AND I boot into the terminal which is not better than the desktop.

Any ideas how I can make it appear like the thing is booting directly into Chromium?

Many thanks

MiscBits
Posts: 1249
Joined: Wed Jan 27, 2021 12:48 pm

Re: Kiosk on Buster Desktop Pi 4B

Sat Apr 24, 2021 9:22 pm

No idea about the screen showing but one issue I never got around was the user using the keyboard to exit Chromium...

Not sure if this was ever addressed as we gave up at the time.

klricks
Posts: 8585
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA

Re: Kiosk on Buster Desktop Pi 4B

Sat Apr 24, 2021 11:59 pm

This will show only black screen for 2 seconds.
Open autostart:

Code: Select all

sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Comment out and put # before 1st 2 lines like this:

Code: Select all

#@lxpanel --profile LXDE-pi
#@pcmanfm --desktop --profile LXDE-pi
chromium-browser -kiosk www.raspberrypi.org
As mentioned alt F4 will close Chromium. This seems to be hard-coded in chromium as alt F4 still works even when the alt key is disabled for the rest of the system.
ctrl alt T will open a terminal unless you disable alt key.
Also right click menu is available if they exit chromium.
Unless specified otherwise my response is based on the latest and fully updated RPi OS Bullseye w/ Desktop OS.

MinistryofSillyWalks
Posts: 5
Joined: Sun Jan 31, 2021 3:45 pm

Re: Kiosk on Buster Desktop Pi 4B

Thu Apr 29, 2021 10:34 am

Hey thank you, that works fine! Does not the same as uhubctl was supposed to, but it serves the purpose well!

Thank you

Return to “Beginners”