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.

    Losing display output after 5 minutes

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    14 Posts 3 Posters 4.5k Views 3 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.
    • D Offline
      danjvd
      last edited by

      I’m have been running into a issue over that past week, were the HDMI connection will drop and the TV will stop displaying. I have check TV setting for a sleep mode, changed out Raspberry Pi’s, updates, and replaced the micro card. I do have the background changing ever 60 sec and still the TV will lose the HDMI signal. Looking for other troubleshooting steps.

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @danjvd
        last edited by

        @danjvd are you sure it’s the display turning off ?

        if you do alt-spacebar does the appenubcome down?

        if so, this means the app has crashed, leaving a black screen

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          danjvd @sdetweil
          last edited by danjvd

          @sdetweil I’m able to VNC to the pi, and when I move the mouse the TV will turn back on. It will then stay on for 5 minutes before TV lose HDMI connection. I have also keep the VNC connection open and watch the TV lose signal and the app continue to work.

          I have missed with the PI config file to increase the HDMI signal but same outcome.

          Also, I did setup CEC, 6 months ago, to control when the TV turns on and off. I was thinking there was an issues with the pi, so I created a con job to turn the TV, then restart the PI. This setting worked for about a week. Now if I do not restart the PI it comes up with no HDMI signal.

          I wondering if its an issues with the TV itself?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @danjvd
            last edited by

            @danjvd if you stop MagicMirror, does the screen turn off?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              danjvd @sdetweil
              last edited by

              @sdetweil I have not tried that. I will let you know later today of the outcome.

              Thanks Sam!

              Z 1 Reply Last reply Reply Quote 0
              • Z Offline
                Zoltan @danjvd
                last edited by

                @danjvd It sounds as if your screen saver wasn’t disabled correctly?

                https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Zoltan
                  last edited by

                  @zoltan if u run my install script it will turn off screensavers if u say yes.

                  also a separate script if u change your mind

                  we are still waiting to see if it’s mm related or not

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    danjvd @sdetweil
                    last edited by

                    @sdetweil With MM turned off, the Pi keep display HDMI without issues. Are there any error logs that I should look at?

                    @Zoltan Thanks for the steps. I did complete this when I first created the MM pi over a year ago. It always a good thing to veirfy!

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

                      @danjvd ok so this means one of the modules you are using is turning off the display

                      can you do

                      grep module: ~/MagicMirror/config/config.js
                      

                      to show us a list of the modules used

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      D 1 Reply Last reply Reply Quote 0
                      • D Offline
                        danjvd @sdetweil
                        last edited by

                        @sdetweil said in Losing display output after 5 minutes:

                        grep module: ~/MagicMirror/config/config.js

                        Here are the modules that I have been using for the past 6 months before the issues started. I have not added/removed any modules after this setup, only updates.

                          module: "alert",
                          module: 'MMM-BackgroundSlideshow',
                          module: "updatenotification",
                          module: "clock",
                          module: 'MMM-CalendarExt2',
                          module: "MMM-OpenWeatherMapForecast",
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @danjvd
                          last edited by

                          @danjvd weird.

                          so next I would disable one module at a time.
                          (not the defaults)

                          add

                          disabled:true,
                          

                          after the module: line

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          D 1 Reply Last reply Reply Quote 0
                          • D Offline
                            danjvd @sdetweil
                            last edited by

                            @sdetweil

                            Before I was able to start disabling modules, MM would not start this morning. There are the logs that I got from pm2:

                            0 info it worked if it ends with ok
                            1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
                            2 info using npm@6.14.12
                            3 info using node@v10.24.1
                            4 verbose run-script [ 'prestart', 'start', 'poststart' ]
                            5 info lifecycle magicmirror@2.17.1~prestart: magicmirror@2.17.1
                            6 info lifecycle magicmirror@2.17.1~start: magicmirror@2.17.1
                            7 verbose lifecycle magicmirror@2.17.1~start: unsafe-perm in lifecycle true
                            8 verbose lifecycle magicmirror@2.17.1~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/bin:/bin
                            9 verbose lifecycle magicmirror@2.17.1~start: CWD: /home/pi/MagicMirror
                            10 silly lifecycle magicmirror@2.17.1~start: Args: [ '-c',
                            10 silly lifecycle   'DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js' ]
                            11 info lifecycle magicmirror@2.17.1~start: Failed to exec start script
                            12 verbose stack Error: magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                            12 verbose stack spawn ENOENT
                            12 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
                            12 verbose stack     at ChildProcess.emit (events.js:198:13)
                            12 verbose stack     at maybeClose (internal/child_process.js:982:16)
                            12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
                            13 verbose pkgid magicmirror@2.17.1
                            14 verbose cwd /home/pi/MagicMirror
                            15 verbose Linux 5.10.63-v7l+
                            16 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
                            17 verbose node v10.24.1
                            18 verbose npm  v6.14.12
                            19 error code ELIFECYCLE
                            20 error syscall spawn
                            21 error file sh
                            22 error errno ENOENT
                            23 error magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
                            23 error spawn ENOENT
                            24 error Failed at the magicmirror@2.17.1 start script.
                            24 error This is probably not a problem with npm. There is likely additional logging output above.
                            25 verbose exit [ 1, true ]
                            
                            D 1 Reply Last reply Reply Quote 0
                            • D Offline
                              danjvd @danjvd
                              last edited by danjvd

                              @sdetweil

                              Give you a little update after finding the error above. I have reinstalled dependency and built electron.

                              cd ~/MagicMirror
                              npm install
                              cd ~/MagicMirror/node_modules/electron/
                              node install.js
                              

                              The reinstall came with the following warnings

                              npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.
                              npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
                              npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                              

                              I restarted MM with npm start, now getting the following:

                              [24.11.2021 17:34.23.187] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'valid-url'
                              Require stack:
                              - /home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js
                              - /home/pi/MagicMirror/js/app.js
                              - /home/pi/MagicMirror/js/electron.js
                              - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                              

                              I disable that mode and was able to get MM restarted. I’m guessing there is an issue with MMM-CalendarExt2.

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @danjvd
                                last edited by sdetweil

                                @danjvd valid-url see
                                https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                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 / 1
                                • 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