Read the statement by Michael Teeuw here.
MagicMirror stays black, but loading from another browser (Windows, Android) works
-
I had to uninstall electron and install version 1.7.9 to get rid of the blank screen
-
what do you mean with uninstall? I did remove
~/MagicMirror/node_modules/electron
and reinstalled vianpm install
in the MagicMirror folder. But still black screen. -
@andurii npm has a remove operation
npm remove electron
npm install electron@1.7.9 -
ok I did use npm remove, but on installing electron@1.7.9 I got this:
pi@Spieglein:~/MagicMirror $ npm install electron@1.7.9 > electron@1.7.9 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js events.js:160 throw er; // Unhandled 'error' event ^ Error: EIO: i/o error, read at Error (native) npm ERR! Linux 4.14.44-v7+ npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "electron@1.7.9" npm ERR! node v6.14.2 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! electron@1.7.9 postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.7.9 postinstall script 'node install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/MagicMirror/npm-debug.log
I tried to use only npm install and see what version it installes:
pi@Spieglein:~/MagicMirror $ npm install > electron@1.8.7 postinstall /home/pi/MagicMirror/node_modules/electron > node install.js > magicmirror@2.3.1 install /home/pi/MagicMirror > cd vendor && yon install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) > magicmirror@2.3.1 postinstall /home/pi/MagicMirror > sh installers/postinstall/postinstall.sh && yon run install-fonts MagicMirror installation successful! > magicmirror@2.3.1 install-fonts /home/pi/MagicMirror > cd fonts && yon install magicmirror@2.3.1 /home/pi/MagicMirror └─┬ electron@1.8.7 ├── @types/node@8.10.19 └─┬ electron-download@3.3.0 ├─┬ fs-extra@0.30.0 │ └── klaw@1.3.1 ├── home-path@1.0.6 └─┬ sumchecker@1.3.1 └── es6-promise@4.2.4
So version 1.8.7 installes without problem but doesn’t work. Any further ideas?
-
I ended up installing Chromium and displaying the Mirror locally using that. That was the only way I could get past the black screen.
Kyle
-
ok, I found a simply way to make chromium start in full screen mode, but how do I have to disable electron from entering full screen?
-
well that didn’t worked. I still only see a black monitor. I did also reinstall MagicMirror and connected to it via VNC. Strange thing is that I can see my MM on my VNC client, but not on my monitor. I didn’t even thought this would be possible…
-
@andurii, I have no idea then. It worked perfectly for me. I’ll have to take a look at my configuration and let you know. I am currently traveling so I can’t look at the moment.
-
@andurii Hmm… Sounds like your monitor has gone to standby.
Login via SSH:Make a sh file named: monitor.sh
Add the flowing to the file:
#!/bin/bash if [ "$1" == 'on' ]; then tvservice -p; chvt 6; chvt 7; fi if [ "$1" == 'off' ]; then tvservice -o fi
Then make it executable with: chmod +x monitor.sh
Turn on them monitor it like this: ./monitor.sh on
Turn it off like this: ./monitor.sh offAnd of course, make sure you are on the correct input to actually see the Pi… :)
That should “turn on” (or off) the screen from SSH. :)
-
trying your script or
chvt 6 [or 7]
manually does result in this error:Konnte keinen Dateideskriptor finden, der auf die Konsole verweist.
The monitor is turning on correctly and I can see the background dark grey in the mirror, but it simply does not show the mirror. Maybe it somehow has multiple desktops defined and just showing the wrong on hdmi output…