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 screen goes black

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    27 Posts 8 Posters 11.4k Views 7 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 Offline
      stuartiannaylor
      last edited by

      Replied again cursed by that akismi bot troll thing.

      PS still setting it up but just monitor your logs.

      Create a shell script with something like

       tail -fn0 logfile | \
      while read line ; do
              echo "$line" | grep "pattern"
              if [ $? = 0 ]
              then
                      ... do something ...
              fi
      done
      

      Maybe with a --retry to the tail command, or use -F instead of -f

      Tack it onto your electron log and do the above xdotool.

      1 Reply Last reply Reply Quote 0
      • S Offline
        stuartiannaylor
        last edited by stuartiannaylor

        I gave you some bum steers on export XAUTHORITY=~/.Xauthority but prob was when I was using lightdm but for it to work omit that line.

        I have 2 monitors running well 1 really as the Chromium one isn’t really doing anything as all is working fine.

        xdotool.sh ended up just being

        if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
        	export DISPLAY=:0 # Set by default display
        fi
        xdotool search --onlyvisible --class "chromium" key ctrl+F5  -v 2>&1 | logger &
        

        chrome-log.sh is just

        #Grep is a bit confusing as \| ie OR not AND so you get the following of Or + inline there is the other string
        #grep -q '8080\|ERROR' would return true if either exist (OR)
        ( tail -f -n0 ~/.config/chromium/chrome_debug.log & ) | grep -q '8080.*ERROR\|ERROR.*8080'
        sh xdotool.sh
        

        Main one for me is the PM2 one that waits for MagicMirror to say all is finished and point your browser

        ( tail -f -n0 ~/.pm2/logs/MagicMirror-out.log & ) | grep -q 'Ready to go! Please point your browser to:'
        sh xdotool.sh
        

        Better explanation can be found on https://github.com/StuartIanNaylor/MagicMirror-Install-Guide-Raspberry-0-to-3/tree/master/Magic Monitor

        1 Reply Last reply Reply Quote 0
        • M Offline
          motdog
          last edited by

          i have a black screen too. Just got dark sky working. was finally happy and while rebooting after installing another module it goes to black. I thought it was my pi (3b) so I tried my other pi 3b+ and just black. I noticed earlier what looked like a draining battery icon but have no clue what that could mean. I do have a cursor on my black screen. alt tab shows Electon but I cant do anything from there. Help

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @motdog
            last edited by

            @motdog run

            npm start dev
            

            Select the console tab, and scroll back to find any errors, red text.

            Usually black screen is syntax error in module.js

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              motdog @sdetweil
              last edited by motdog

              @sdetweil I can’t get to terminal. All I have is black screen with pointer on it. I’m sure it was when I copied a config

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @motdog
                last edited by

                @motdog ctrl-shift-i

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  motdog
                  last edited by motdog

                  Thanks I’ll try in the morning. If I can somehow get to config.js I’ll undo what I did. Appreciate all of your help!

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @motdog
                    last edited by

                    @motdog always make sure u have an alternative way into the system. Like ssh from your PC.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Reply Quote 1
                    • M Offline
                      motdog @sdetweil
                      last edited by

                      @sdetweil I use VNC viewer pretty much all of the time to access this and nothing happens. I do see the green light occasionally flash on the pi when I try with the keyboard hooked up to it & my tv.

                      1 Reply Last reply Reply Quote 0
                      • Cr4z33C Offline
                        Cr4z33 @DavyC
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          motdog
                          last edited by

                          So I am still getting this about every 3-5 days. I have now playing on spotify and am wondering if that is the issue. Dark Sky is my weather app but the issue I had with the number of requests is not an issue any more. Curious as to why this happens. At the same time I can see the screen via my remote module

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @motdog
                            last edited by

                            @motdog if you can, ctrl-shift-i to open the developers window and select the console tab…scroll around to see errors…

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            M 2 Replies Last reply Reply Quote 0
                            • M Offline
                              motdog @sdetweil
                              last edited by

                              @sdetweil thanks, I will next time. I just hit control c and then reclicked on the MM tab on the desktop and it starts running again

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                motdog @sdetweil
                                last edited by

                                @sdetweil got a message that dev tools was disconnected, once page is reloaded dev tools will automatically reconnect

                                S 1 Reply Last reply Reply Quote 0
                                • S Do not disturb
                                  sdetweil @motdog
                                  last edited by

                                  @motdog so, some module crashed… the old updateNotofication module might still be the cause… is that enabled in config?

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  M 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    motdog @sdetweil
                                    last edited by

                                    @sdetweil yes. I will delete it and see what happens. Typically its been every 3-5 days. I haven’t updated this version to the new software, should I or should I leave it alone?

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @motdog
                                      last edited by

                                      @motdog wait

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        motdog @sdetweil
                                        last edited by

                                        @sdetweil thanks, that’s what I thought. I am starting a second mirror for me that when I installed MM was the new version automatically it seems.

                                        1 Reply Last reply Reply Quote 0

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better 💗

                                        Register Login
                                        • 1
                                        • 2
                                        • 1 / 2
                                        • First post
                                          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