Sujet : Re: Delaying Autostart
De : theom+news (at) *nospam* chiark.greenend.org.uk (Theo)
Groupes : comp.sys.raspberry-piDate : 01. Jun 2025, 11:31:15
Autres entêtes
Organisation : University of Cambridge, England
Message-ID : <lKm*8RWdA@news.chiark.greenend.org.uk>
References : 1
User-Agent : tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-35-amd64 (x86_64))
DrStevenStrange <
kubmw2ce@duck.com> wrote:
I have a Raspberry Pi 5 running the latest version of Bookworm and using
Labwc as the GUI.
I have Grafana displaying the Internet Speed installed as here.
https://dev.to/benji377/grafana-speed-monitor-setting-up-an-internet-monitor-with-raspberry-pi-50jk
I boot straight into Grafana using Kiosk mode by editing the
/etc/xdg/labwc/autostart file and adding this line to the end
chromium = /usr/bin/chromium-browser --start-fullscreen
--start-maximized --kiosk --hide-scrollbars --noerrdialogs
--disable-default-apps --disable-single-click-autofill
--disable-translate-new-ux --disable-translate --disable-cache
--disk-cache-dir=/dev/null --disk-cache-size=1
--reduce-security-for-testing --app=http:///127.0.0.1:3030&kiosk
This works perfectly - however when I first boot Grafana takes a little
while to start up and for the first minute or so I get a "Site Not Found
Page" which eventually clears and Grafana is shown.
No biggy but looks a little messy!
Is there anyway to put a pause in the autostart sequence to allow
Grafana to load??
You could make a script something like:
#!/bin/sh
sleep 120
/usr/bin/chromium-browser --start-fullscreen \
--start-maximized --kiosk --hide-scrollbars --noerrdialogs \
--disable-default-apps --disable-single-click-autofill \
--disable-translate-new-ux --disable-translate --disable-cache \
--disk-cache-dir=/dev/null --disk-cache-size=1 \
--reduce-security-for-testing --app=
http:///127.0.0.1:3030&kiosk
and then put the name of that script to be your autostart. This will delay
starting Chromium for 120 seconds when xdg autostarts it.
Theo