Ryandev / NetStatus

Internet speed & offline status monitor. Upload, download, ping, latency dashboard display
http://netstatus.ryanpowell.dev
MIT License
99 stars 7 forks source link

NetStatus for RPi - "xset unable to open display" #3

Closed spickles closed 3 years ago

spickles commented 3 years ago

Followed all of the instructions for the RPi installation and get the error "xset unable to open display". Please advise.

Ryandev commented 3 years ago

That issue looks related to being unable to see the display. It sounds like it happens when run via ssh. You could try running it from a gui terminal on the pi itself otherwise according to https://askubuntu.com/questions/476036/xset-unable-to-open-display calling export DISPLAY=:0 before calling xset should fix your issue

spickles commented 3 years ago

Thanks Ryan. We stumbled upon that somewhere on the 'net and the export allows the script to continue. We're not sure, though, where to set that and make it persistent. We are running Raspbian as opposed to Ubuntu, but not sure that really matters? I added export DISPLAY=:0 to /etc/environment but it still doesn't launch on start. I may need to do something else to launch the browser.sh script since we're on Raspbian.

Ryandev commented 3 years ago

Ok, sorry it was late, However export DISPLAY=:0 wont be needed as it will be running from the device locally not from ssh. I assume the script is also firing on boot & not manually via ssh

So it looks like theirs issues with the latest raspbian xset (Ref.1). You could try running sudo raspi-config & set blanking to disabled (Ref.2) or try editing ~/.config/lxsession/LXDE-pi/autostart with


@xset s off
@xset -dpms 
@xset s noblank
``` (Ref.1)

Ref.1 `https://www.geeks3d.com/hacklab/20160108/how-to-disable-the-blank-screen-on-raspberry-pi-raspbian/`

It's untested in all other distros, let me know how you get on & I'll update the instructions
spickles commented 3 years ago

No worries. We were maximizing our options by reaching out to you here as well as Google. We are going to switch over to Ubuntu to be sure we can get it up and running with your instructions and then perhaps try Raspbian.

Ryandev commented 3 years ago

There should be nothing wrong with using Raspian as its still a debian distro. I just haven’t tested it.

All the commands are documented & you can always use google to find alternatives.

If you’re still struggling & are considering reflashing, balena support has been added (not by myself)

On 5 Mar 2021, at 14:58, Scott Pickles notifications@github.com wrote:

 No worries. We were maximizing our options by reaching out to you here as well as Google. We are going to switch over to Ubuntu to be sure we can get it up and running with your instructions and then perhaps try Raspbian.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

spickles commented 3 years ago

Meaning Balena will flash an SD card with a working image of all of this already put together?

On Fri, Mar 5, 2021, 1:19 PM Ryan Powell notifications@github.com wrote:

There should be nothing wrong with using Raspian as its still a debian distro. I just haven’t tested it.

All the commands are documented & you can always use google to find alternatives.

If you’re still struggling & are considering reflashing, balena support has been added (not by myself)

On 5 Mar 2021, at 14:58, Scott Pickles notifications@github.com wrote:

 No worries. We were maximizing our options by reaching out to you here as well as Google. We are going to switch over to Ubuntu to be sure we can get it up and running with your instructions and then perhaps try Raspbian.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Ryandev/NetStatus/issues/3#issuecomment-791596084, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYJ3G7MCW7SVALILFXWUDLTCEOB3ANCNFSM4YPI74YQ .

Ryandev commented 3 years ago

Balena is a way of managing docker-images/software running on your Pi from their website. You flash the sd-card with a balena image & it then connects to your account (Not something I've tested, however at least a few people have had success with this)