Giter VIP home page Giter VIP logo

Comments (9)

thirdgen88 avatar thirdgen88 commented on June 28, 2024 1

I've gotten around this issue for myself by putting the following contents in the ~/.config/lxsession/LXDE-pi/autostart file (note that my URL is to a playlist, thus the -playlist flag as well):

@xset s off
@xset -dpms
@xset s noblank
@/usr/local/bin/grafana-kiosk.linux.armv7 -URL <grafana url> -login-method local -username <username> -password <password> -kiosk-mode full -playlist

I was able to verify the screensaver / power saving settings via an ssh session by running:

xset -display 0:0 q

... and taking a look at the Screen Saver and DPMS (Energy Star) sections.

One interesting note is that I originally had a call to unclutter in the autostart file, but noticed a zombie unclutter process alongside the regular one with this output in the ~/.xsession-errors:

...
/usr/bin/unclutter: someone created a sub-window to my sub-window! giving up

It appears that something is already launching unclutter without the extra specification in the autostart (and without the -lxde flag) so I omitted that and all is working as intended. Hope this helps!

from grafana-kiosk.

thirdgen88 avatar thirdgen88 commented on June 28, 2024

Also, great job on the tool.. Similar experience as above, but on latest Raspbian on a Rasp Pi 2 Model B.. Using it with the 7" Touchscreen display.

I'm wondering if this has something to do with the unclutter command not exiting? It does not start as a bg process on its own.

from grafana-kiosk.

hriekehof avatar hriekehof commented on June 28, 2024

@thirdgen88 thanks so much. The different autostart does the trick for me.

from grafana-kiosk.

briangann avatar briangann commented on June 28, 2024

i'll have to get a raspberry 4, seems like there's multiple issues (might be 64-bit related)

from grafana-kiosk.

briangann avatar briangann commented on June 28, 2024

just checking - are you running 32bit or 64bit on your pi4?

from grafana-kiosk.

SoMuchForSubtlety avatar SoMuchForSubtlety commented on June 28, 2024

Same issue on a pi 3B running 32 bit raspbain. If lxde is enabled the browser window never starts.

from grafana-kiosk.

briangann avatar briangann commented on June 28, 2024

my pi3 isn't doing this:

pi@pi-kiosk-1:~/kiosk $ uname -a
Linux pi-kiosk-1 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l GNU/Linux
pi@pi-kiosk-1:~/kiosk $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

do you have an example startup command? i'm using the config/yaml option.

my new pi4 was hit by a power surge/lightning, will have to get a new one.

from grafana-kiosk.

SoMuchForSubtlety avatar SoMuchForSubtlety commented on June 28, 2024
pi@pi-kiosk:~ $ uname -a
Linux pi-kiosk 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l GNU/Linux
pi@pi-kiosk:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@pi-kiosk:~ $ cat /home/pi/.config/lxsession/LXDE-pi/autostart
@xset s off
@xset -dpms
@xset s noblank
@/usr/bin/grafana-kiosk -c=/home/pi/config.yaml
pi@pi-kiosk:~ $ cat /home/pi/config.yaml 
general:
  kiosk-mode: full
  autofit: false
# lxde: true
# lxde-home: /home/pi

target:
  login-method: local
  username: administrator
  password: hunter2
  playlists: true
  URL: https://foobar.com/playlists/play/1
  ignore-certificate-errors: false

If I uncomment the lxde settings in the config, it will no longer work.

from grafana-kiosk.

penguineer avatar penguineer commented on June 28, 2024

I've had the same issue with a Raspberry Pi 2 and ended up fixing it with the changes in #91, tho I guess that the panels are initiated by the lxde autostart.

Earlier tests also hinted that JWM might be a better choice for a window manager that is basically not used.

from grafana-kiosk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.