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 not working with latest release - display does not turn off

    Scheduled Pinned Locked Moved Solved Troubleshooting
    11 Posts 4 Posters 5.6k Views 4 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 Do not disturb
      sdetweil @Kugelfang
      last edited by

      @Kugelfang yes, you will need to install electron-rebuild in that module

      from the MMM-PIR folder

      npm install electron-rebuild
      

      then run it to force the epoll rebuild

      node_modules/.bin/electron-rebuild
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • K Offline
        Kugelfang
        last edited by Kugelfang

        @sdetweil said in MMM-PIR-Sensor not working with latest release - display does not turn off:

        node_modules/.bin/electron-rebuild

        Holy SHIT that worked. I’m now using the MMM-PIR instead of the MMM-PIR-Sensor

        thanks you so much!!!

        EDIT:

        for the record: there are two PIR modules avaliable: Initially I intended to go with MMM-PIR-Sensors as I’ve been using this in the past. Unfortunately I couldn’t get it to work with the newly installed setup. Hence I choose MMM-PIR.

        Besides the suggestion from @sdetweil I also modified the displayOff.sh and displayON.sh from

        tvservice -o
        

        to

        vcgencmd display_power 0
        

        so the module works with the full KMS OpenGL driver.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          shgmongohh @Kugelfang
          last edited by

          @Kugelfang

          Where did you change the displaOff.sh? Where can I find this?

          Sebastain

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

            @shgmongohh in the module folder

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil

              In which folder ?
              0_1555100722499_Unbenannt.PNG

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

                @shgmongohh too many pir modules

                https://github.com/cowboysdude/Pir-Sensor has one
                https://github.com/mboskamp/MMM-PIR has one, in callbackscripts folder

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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