Trouble with Mango kiosk display
-
We are trying to use Raspberry pi 3 B+ boards as HMI touchscreen devices in kiosk mode. For some reason, chromium-browser loads to a blank screen, instead of the given url. We tried midori, which worked perfectly (but doesn't work with Mango).
We're using stretch lite (no GUI), and have tried a number of WM's (matchbox, openbox...) without success with Chromium.
Has anyone successfully set up a kiosk display for Mango on rpi? Thanks
-
@bullitbd said in Trouble with Mango kiosk display:
For some reason, chromium-browser loads to a blank screen, instead of the given url.
Sounds like an error is probably being thrown. Did you try a different URL (e.g. google)? Check the chromium console and let me know if there is an error in there.
-
Thanks, @Jared-Wiltshire. The problem seems to be as follows:
If started from root (which I don't want to do, of course) with the --no-sandbox switch, everything works fine.
if started from regular user, it appears there is an X server bug -
Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
Dealt with permissions, but then another similar permissions error...
After fixing permissions on the tty files, it works now without having to run as root.
Any experience with minimal Firefox kiosk use? Couldn't find much of value out there. Thanks again.
edit: for anyone who comes across this, and keeping in mind that I have only vague knowledge of how xserver works, the environment needs access to a number of /dev/tty files. I had to change permissions (a+rw) in tty files in 3 successive attempts, until successful. In my case it was tty0, tty7, tty2. This is specific at least to xorg compiled with raspberian stretch lite as of 12/20/2018.
-
@bullitbd said in Trouble with Mango kiosk display:
After fixing permissions on the tty files, it works now without having to run as root.
OK great.
@bullitbd said in Trouble with Mango kiosk display:
Any experience with minimal Firefox kiosk use? Couldn't find much of value out there. Thanks again.
I haven't played with kiosk mode on any browsers in years to be honest, so I can't contribute too much. Chrome or Firefox should work well with Mango (they are our first class citizens).
-
have you tried any of the lightweight browsers? (Midori doesn't work well at first try). Clearly JS/CSS support is the issue. Such a thing probably doesn't exist - just asking in case any user might have stumbled across such a thing.
-
@bullitbd said in Trouble with Mango kiosk display:
have you tried any of the lightweight browsers?
No sorry, maybe someone else can jump in.
@bullitbd said in Trouble with Mango kiosk display:
Midori doesn't work well at first try
This does not surprise me. It apparently uses the WebKit browser engine, but probably an older version. Chrome now uses its own Blink engine, Firefox its own Gecko engine. The WebKit version that the latest Safari browsers use still does not work especially well with Mango.