• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MagicMirror stays black, but loading from another browser (Windows, Android) works

Scheduled Pinned Locked Moved Unsolved Troubleshooting
16 Posts 5 Posters 5.7k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Away
    sdetweil @AnduriI
    last edited by Jun 8, 2018, 11:14 AM

    @andurii npm has a remove operation

    npm remove electron
    npm install electron@1.7.9

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • A Offline
      AnduriI
      last edited by Jun 9, 2018, 1:35 PM

      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?

      A 1 Reply Last reply Jun 10, 2018, 5:23 PM Reply Quote 0
      • A Offline
        abetterway @AnduriI
        last edited by Jun 10, 2018, 5:23 PM

        @andurii,

        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

        1 Reply Last reply Reply Quote 0
        • A Offline
          AnduriI
          last edited by Jun 10, 2018, 6:14 PM

          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?

          1 Reply Last reply Reply Quote 0
          • A Offline
            AnduriI
            last edited by Jun 16, 2018, 7:41 PM

            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…

            A S I 3 Replies Last reply Jun 17, 2018, 3:38 PM Reply Quote 0
            • A Offline
              abetterway @AnduriI
              last edited by Jun 17, 2018, 3:38 PM

              @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.

              1 Reply Last reply Reply Quote 0
              • S Offline
                Snille Module Developer @AnduriI
                last edited by Snille Jun 17, 2018, 5:43 PM Jun 17, 2018, 5:42 PM

                @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 off

                And 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. :)

                If you cant find it, make it and share it!
                Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                1 Reply Last reply Reply Quote 0
                • A Offline
                  AnduriI
                  last edited by Jun 17, 2018, 6:43 PM

                  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…

                  S 1 Reply Last reply Jun 17, 2018, 6:59 PM Reply Quote 0
                  • I Offline
                    idoodler Module Developer @AnduriI
                    last edited by Jun 17, 2018, 6:46 PM

                    @andurii Yep, that definetly sounds like your monitor just went sleeping.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      Snille Module Developer @AnduriI
                      last edited by Snille Jun 17, 2018, 7:00 PM Jun 17, 2018, 6:59 PM

                      @andurii I get the same error message “Couldn’t get a file descriptor referring to the console” but the monitor turn on… :)

                      I have tow desktops as well, the Mirror shows up on one of them… I can use (in VNC) CTRL + ALT + Right or Left arrow key to switch between virtual desktops.

                      If you cant find it, make it and share it!
                      Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        8/16
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy