Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED MMM-PIR-Sensor black screen

    Troubleshooting
    3
    6
    1402
    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
      Stef last edited by

      Hello everyone,

      i just found out about this module - didn’t even know this exists - and i hat to try it!
      I’m planning on saving some energy by powering off the Monitor.

      The install worked fine and the PIR Sensor is working (i have a litte .py script that’s prints a message in the shell if a movement is dedected) BUT the screen stays black!

      The Monitor is powerd on - i even see the desktop seconds bevor MM boots up, but the screens stays black and nothing is displayed.

      I noticed this before when i was trying to turn my monitor on and off again with tvservice --off / tvservice --preferred.
      If i use vcgencmd display_power 1 / vcgencmd display_power 0 my Monitor perfectly switches on and off again.

      But, i checked the “node_helper.js” on github and the helper file is using the “vcgencmd script”

      What is going here? Any ideas how i can solve this?

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

        @Stef with the black screen and a keyboard, press ctrl-shift-i (letter I),
        to open the developers console, select the console tab, and scroll up to find errors, red text

        1 Reply Last reply Reply Quote 0
        • S
          Stef last edited by

          @sdetweil thanks for the headsup - but this does not work… i see the mous coursor though, but that’s it.
          I even can’t “cancel” the fullscreen mode of the magic mirror by pressing F11 (usually this brings me back to the desktop) 😕

          1 Reply Last reply Reply Quote 0
          • S
            Stef last edited by Stef

            I did a little research and stumbled over severall issues on the github page - this one catched my eye, but didn’t brought me any luck…

            So, what did i do excatly?

            1. Install:
            cd ~/MagicMirror/modules/
            git clone https://github.com/paviro/MMM-PIR-Sensor.git
            npm install
            sudo usermod -a -G gpio pi
            sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt
            sudo reboot
            
            1. New wiringPI version:
            sudo apt-get purge wiringpi
            hash -r
            sudo apt-get install git-core
            cd
            git clone git://git.drogon.net/wiringPi
            cd ~/wiringPi
            git pull origin
            ./build
            sudo reboot
            
            1. reinstall EPOLL:
            cd ~/MagicMirror/modules/
            sudo npm install --save-dev electron-rebuild ./node_modules/.bin/electron-rebuild
            
            1. recompile Electron:
            npm list | grep electron
            cd ~/MagicMirror/modules/MMM-PIR-Sensor
            npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50
            sudo reboot
            

            Expectation: It Works now…
            Reality: It does not…

            my Config is:

            {
                      module: 'MMM-PIR-Sensor',
                      config: {
                                   sensorPin: 23,
                                   powerSaving: true,
                                   powerSavingDelay: 120 // 2 Minutes
                                   }
            },
            

            I just excluded this part of my config - and my mirror displays everything again…

            Andy ideas left? 🙂

            1 Reply Last reply Reply Quote 0
            • S
              Stef last edited by

              Hey all,
              turns out, that the MMM-PIR-Sensor Module is buggy - well, at least for me.
              Can’t get it to work, but i found an alternative: MagicMirror-Display-Controller

              Works like a Charme!

              Case closed 🙂

              Have a nice weekend!

              wishmaster270 1 Reply Last reply Reply Quote 0
              • wishmaster270
                wishmaster270 Module Developer @Stef last edited by

                @Stef Hi, yesterday i added two Modules to the Showcase Area. On that monitors GPIO Pins and one which controls the Monitor.
                My usecase is exactly like yours. I use an PIR sensor to detect user presence and want the screen to be turned off after a configurable timeout.
                If you want to try them:
                MMM-Screen-Powersave-Notification
                and
                MMM-GPIO-Notifications

                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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy