Read the statement by Michael Teeuw here.
(electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0
-
@bachoo786 said in (electron:2910): Gtk-WARNING **: 14:16:40.324: cannot open display: :0:
Because eventually my raspberry pi 4 will be inside the 2 way mirror running the Magic Mirror software.
well, in that model, typically, u have both server and browser running on same machine (pi 4) inside the actual mirror enclosure on the wall), so NOT serveronly mode
see the forum section https://forum.magicmirror.builders/category/12/show-your-mirror
where people are showing their implementations, with the whole setup -
@sdetweil ok so I will install like everyone else i.e. server and browser on the same machine. Thanks for sorting my head on that.
Now with regards to the install script I do not need to follow this link (https://github.com/MichMich/MagicMirror/wiki/Auto-Starting-MagicMirror) to autostart magicmirror? as you said thats all taken care in the install script? Am i correct? or?
-
@bachoo786 no… u have pm2 which does it all… (oops, the default run-start.sh script ONLY starts in both mode, YOU have to change it to do serveronly like below)
u have already installed both… again there is only ONE install process, but two ways to run
today
issue the following commands (either set)
run bothcd ~/MagicMirror npm start
or
run serveronlycd ~/MagicMirror node serveronly
-
@sdetweil ok I will try it when I get home mate. Thanks.
-
@sdetweil hi quick question… so i connected my raspberry pi 4 4gb to hdmi o but there is no display ? do i need to do some settings? my raspberry pi doesnt display anything? is that normal for raspberry pi 4?
-
@bachoo786 i don’t know what you need to do to enable the display after booting into text mode…
maybe run raspiconfig. and select boot to desktop?
-
@sdetweil I had to add the following in my config.txt and it works now.
hdmi_force_hotplug=1 hdmi_ignore_edid=0xa5000080 hdmi_group=2 hdmi_mode=81
do you mind sharing your /boot/config.txt please?
Also after doing these settings the raspberry pi doesnt connect to wifi.
Its a disaster this rpi 4 tbh