Re: Delaying Autostart

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: Delaying Autostart
De : theom+news (at) *nospam* chiark.greenend.org.uk (Theo)
Groupes : comp.sys.raspberry-pi
Date : 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

Date Sujet#  Auteur
1 Jun 25 * Delaying Autostart13DrStevenStrange
1 Jun 25 +* Re: Delaying Autostart2Theo
1 Jun 25 i`- Re: Delaying Autostart1DrStevenStrange
2 Jun 25 `* Re: Delaying Autostart10Lawrence D'Oliveiro
3 Jun 25  `* Re: Delaying Autostart9Oscar
3 Jun 25   `* Re: Delaying Autostart8Chris Elvidge
3 Jun 25    +* Re: Delaying Autostart3Theo
3 Jun 25    i`* Re: Delaying Autostart2Oscar
3 Jun 25    i `- Re: Delaying Autostart1Oscar
3 Jun 25    +* Re: Delaying Autostart3The Natural Philosopher
3 Jun 25    i`* Re: Delaying Autostart2Oscar
4 Jun 25    i `- Re: Delaying Autostart1The Natural Philosopher
3 Jun 25    `- Re: Delaying Autostart1Oscar

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal