Read the statement by Michael Teeuw here.
Black screen on HMDI output, content on remote browser
-
@chris_d maybe turn off GPU useage
in the place where u start MM do
export ELECTRN_DISABLE_GPU=1
before the npm start line
if using pm2, that is ~/MagicMirror/installers/mm.sh
to test , if using pm2, then
pm2 stop all cd ~/MagicMirror export ELECTRN_DISABLE_GPU=1 npm start
if it works, update the mm.sh
and then pm2 start all -
-
@chris_d yes, so you would ad the export before the
DISPLAY… npm start line…
so, lets try something else
stop magicmirror
then
cd ~/MagicMirror ./node_modules/.bin/electron
does electron window come up?
-
does electron window come up?
No. I get ./node_modules/.bin.electron: No such file or directory
-
@chris_d sorry typo in my instructions, a dot instead of a slash… see and try again
-
@sdetweil
The platform failed to initialize.Missing X server or $DISPLAY -
@chris_d you are running the full desktop os, right? text/cli mode doesn’t work, unless u want to run server only and view from somewhere else.
-
@sdetweil I am running the full desktop. yes.
This used to work but following a Magic Mirror and pi system update it no longer does.
I can see the desktop on boot up, but when pm2 runs the mirror then I get the blank screen. -
-
@sdetweil said in Black screen on HMDI output, content on remote browser:
lsb_release -a
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: busterI am using ssh to remote into the pi
The following thread seems similar, but does not offer a solution
https://forum.magicmirror.builders/topic/17211/having-trouble-with-launch-perhaps-display-value?page=1