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

MMM-PIR-Sensor black screen

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 3 Posters 2.4k 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.
  • S Offline
    Stef
    last edited by Mar 5, 2019, 10:06 PM

    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 Mar 6, 2019, 2:03 AM Reply Quote 0
    • S Away
      sdetweil @Stef
      last edited by Mar 6, 2019, 2:03 AM

      @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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        Stef
        last edited by Mar 7, 2019, 9:04 PM

        @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 Offline
          Stef
          last edited by Stef Mar 8, 2019, 8:00 PM Mar 7, 2019, 10:01 PM

          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 Offline
            Stef
            last edited by Mar 8, 2019, 7:59 PM

            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!

            W 1 Reply Last reply Mar 9, 2019, 10:29 AM Reply Quote 0
            • W Offline
              wishmaster270 Module Developer @Stef
              last edited by Mar 9, 2019, 10:29 AM

              @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
              1 / 1
              • First post
                3/6
                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