Hello everyone,
I would like my dashboard 2 to open automatically in full screen when my Raspberry Pi starts.
It is running on Debian, and I’m looking for a reliable way to launch the dashboard directly in full screen at boot.
Is there a recommended solution for this?
Thanks in advance.
Hi Karl,
Chromium and use kiosk mode will do what you need
Depending on the system you're using, you'll find an autostart file in the following directory:
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
or
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Then add an entry to launch Chromium, for example—here's an example in kiosk mode:
@chromium --noerrdialogs --kiosk --pull-to-refresh=1 --allow-insecure-localhost --unsafely-treat-insecure-origin-as-secure=http://<<your-link-to-your-side>>
Good luck!
Hubertus
1 Like
Thanks for your suggestion.
I tried the user autostart method with:
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
and I added:
@chromium --noerrdialogs --kiosk --pull-to-refresh=1 --allow-insecure-localhost --unsafely-treat-insecure-origin-as-secure=http://<>
but unfortunately it did not work on my side.
You must add your link to the Dasboard!
http://localhost:1880/dashboard
and is Chromium installed?
and the user autostart works only if you log in
Thanks, yes, Chromium is installed on my system.
I also understand your point about the user autostart only working after login.
For the dashboard link, I’m using:
http://192.168.25.49:1880/dashboard
I also tested it manually in Chromium, and it opens correctly.
So the issue is not the link itself, but getting Chromium to launch automatically in full screen at startup.
ok - i use it in the /etc/xdg/lxsession/LXDE-pi/autostart mode and after each rebooot chromium opens correctly without loggin
Thanks for your feedback.
On my side, I tried to adapt your method to my setup (which uses rpd-x instead of LXDE-pi).
I added this in both:
/etc/xdg/lxsession/rpd-x/autostart
and
/home/mgae/.config/lxsession/rpd-x/autostart
with:
@lxpane l-pi
@pcmanfm-pi
@xscreensaver -no-splash
@sh -c 'sleep 15; /usr/bin/chromium --kiosk http://192.168.118.119:1880/dashboard/
However, after reboot, Chromium does not open automatically in full screen on my dashboard.
So it seems the same approach does not behave the same way with the rpd-x session.
I’m still trying to understand what is missing or different in this setup.
That's not going to work... try this
@chromium --noerrdialogs --kiosk --pull-to-refresh=1 --allow-insecure-localhost --unsafely-treat-insecure-origin-as-secure=http://192.168.25.49:1880/dashboard