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.

    White screen after screen resumes from PIR, or sometimes randomly - can still access via ssh, requires restart sometimes

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 6 Posters 2.6k 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.
    • M Offline
      Mar
      last edited by Mar

      Im all of a sudden (no changes made I dont think, except updating ProfileSwitcher) getting a fully white blank screen when the pir detects motion and brings the screen back on. Sometimes it stays white for 15 mins and comes back to normal, other times it requires me to restart.

      When the white screen happens I can still access via ssh. Also I’m not using PIR module, just a simple script on start that monitors the PIR sensor and send the monitor off/on request. I havent had any issues before and its been on for over a week at a time.

      Update:

      So when the mirror comes back from the white screen after xx minutes this is the error in the log:

      0|mm       | ** Message: console message: http://localhost:8080/ @0: WebSocket network error: Error sending data: Connection reset by peer
      

      So seems like the PIR script I have running is still working fine but shutting and resuming the screen…just not sure why the white screen started happening all of a sudden. With the white screen I can still issue the screen off command:

      /opt/vc/bin/tvservice -o
      

      but issuing the on command brings me back to the white screen.

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

        White screen happens when the PIR sensor does this command, then after a few mins the MM comes back:

        /opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 2

        Im not sure if theres something wrong with the Pi and when I do:
        /opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 1
        it shows the terminal on the screen, then doing the command with 2 brings back the white screen on the MM.

        strawberry 3.141S 1 Reply Last reply Reply Quote 0
        • strawberry 3.141S Offline
          strawberry 3.141 Project Sponsor Module Developer @Mar
          last edited by

          @Mar /opt/vc/bin/tvservice -p && sudo chvt 6 && sudo chvt 7 works for me

          Please create a github issue if you need help, so I can keep track

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            Mar @strawberry 3.141
            last edited by

            @strawberry-3.141 I went through 1-10 on that second chvt LOL. no difference.

            After a bit of searching the following seemed to work to turn my screen on and off but im hesitant to change my monitor on/off script to these as Ive never had an issue with the commands above that everyone seems to use. (from: https://forum.magicmirror.builders/topic/52/pir-sensor-put-your-mirror-to-sleep-if-not-used/21)

            vcgencmd display_power 0
            
            vcgencmd display_power 1
            

            The original commands have worked for a long time so not sure why they’ve stopped working? can anyone explain the difference between the above and below? And why the below would start displaying a white screen when turned back on?

            /opt/vc/bin/tvservice -o
            
            /opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 2
            
            J 1 Reply Last reply Reply Quote 0
            • J Offline
              Jopyth Moderator @Mar
              last edited by

              @Mar I don’t know the concrete differences between these commands. I guess you will have to look at the man pages, or search for some documentation. I would just use the commands, which work (best) for your Pi. Also why is it a 2 and not a 7 in your last command?

              Which of these commands works best for a Pi is probably depending on model, firmware, and maybe other things.

              Helpful sticky: How to troubleshoot

              1 Reply Last reply Reply Quote 0
              • 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