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

Motion Detector

Scheduled Pinned Locked Moved Utilities
213 Posts 38 Posters 464.0k Views 39 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.
  • C Offline
    cpramhofer
    last edited by paviro Sep 11, 2016, 5:43 PM Sep 10, 2016, 12:42 PM

    Hi Guys,

    had exactly the same problem with mit Raspi NOIR Cam V2.1.
    the sudo modprobe bcm2835-v4l2 command solved my problem.

    maybe you should add this Tipp in your Readme as many people out there have the same problem.

    greets
    Christoph

    1 Reply Last reply Reply Quote 1
    • T Offline
      trividar
      last edited by trividar Sep 11, 2016, 7:35 AM Sep 11, 2016, 7:25 AM

      Hi Christoph
      Unfortunately it didn’t work for me;o( Today my screen did not turn on. My Pi works and I can connect over ssh but I have to stop and start my MM and thank works again fine. I just think that my camera stop working if there is no motion a long time (during night).

      I got some errors during the night:
      0_1473579292739_Bildschirmfoto 2016-09-11 um 09.31.31.png

      1 Reply Last reply Reply Quote 0
      • A Offline
        alihallo
        last edited by Sep 11, 2016, 4:57 PM

        First of all, I also had the problem which could be solved by adding

        @reboot sudo modprobe bcm2835-v4l2
        

        at the last line of the crontab. Thank you very much!

        It works fine for some hours, but suddenly the monitor does not show up again.
        I cannot see error messages, but the following commands does not get an answer anymore…

        /opt/vc/bin/tvservice -s
        

        There is no return value anymore, it is just loading forever.
        In the log it looks like this:

        mm-0 monitor :state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
        mm-0 monitor has been activated
        mm-0 monitor :state 0x120002 [TV is off]
        mm-0 monitor has been deactivated
        mm-0 monitor :state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
        mm-0 monitor has been activated
        mm-0 monitor :state 0x120002 [TV is off]
        mm-0 monitor has been deactivated
        mm-0 monitor :state 0x12000a [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
        mm-0 monitor :
        mm-0 monitor :
        mm-0 monitor has been deactivated
        mm-0 monitor :
        

        As soon as the problem occures, the command

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

        also does not switch the monitor on again.
        It seems that the tvservice command just got a problem after some hours… Any idea how to solve this?
        I need to restart the pi to get the monitor on again, after that everything works fine for some hours…

        Best regards,
        alihallo

        1 Reply Last reply Reply Quote 0
        • C Offline
          cpramhofer
          last edited by paviro Sep 12, 2016, 6:59 PM Sep 12, 2016, 8:06 AM

          Hi alihallo,

          i have exact the same problem. i also added the @reboot sudo modprobe bcm2835-v4l2 command into my cronetab.

          but once the screen is off for some hours it will not switch on again.

          for me it seems that the RPi 3 is going into some kind of sleepmode if the monitor is switched off for too long.

          kind regards
          Christoph

          C 1 Reply Last reply Sep 13, 2016, 11:41 AM Reply Quote 1
          • C Offline
            cowboysdude Module Developer @cpramhofer
            last edited by Sep 13, 2016, 11:41 AM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • P Offline
              paphko
              last edited by paphko Sep 15, 2016, 2:49 PM Sep 15, 2016, 2:49 PM

              Just as a side note, I have the same issue that my RasPi screen does not switch on again after a random time. But I am running v1 of the mirror (so not this motion detector module) and I use motion for motion detection. My guess is that this is an issue with the RasPi firmware because it was working fine several months ago (and I was frequently updating RasPi firmware)…

              1 Reply Last reply Reply Quote 0
              • C Offline
                cowboysdude Module Developer
                last edited by Sep 18, 2016, 12:34 AM

                I just run a straight cron job with a file called pir.py that runs two other files…

                monitor_on.sh
                monitor_off.sh

                It’s not incorporated into the mirror it runs the entire pi and I’ve had great luck with it! :)

                C 1 Reply Last reply Sep 18, 2016, 12:10 PM Reply Quote 0
                • C Offline
                  cpramhofer @cowboysdude
                  last edited by Sep 18, 2016, 12:10 PM

                  hi @cowboysdude ,

                  could you please give me (and maybe others) the detailed instruction how these files look in detail and where those are located?

                  thanks a lot in advance,
                  Christoph

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    cpramhofer
                    last edited by Sep 18, 2016, 2:27 PM

                    here is what i have done, actually it works - i will watch it a few days.

                    switch to /bin/

                    cd /
                    cd bin

                    open nano and create a shell script

                    sudo nano monitor_on.sh

                    write the “On” Command in it and save with Ctrl+x

                    /opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chat 7

                    open nano and create another shell script

                    sudo nano monitor_off.sh

                    write the “Off” Command in it and save with Ctrl+x

                    /opt/vc/bin/tvservice -o

                    make both shell scripts executable

                    sudo chmod +x monitor_off.sh
                    sudo chmod +x monitor_on.sh

                    open the crontab and add the following at the end

                    switches the monitor off and on every 15 minutes. this is for experimenting, i will look how it works and will set the

                    time up as.

                    15 * * * * sudo /bin/monitor_off.sh
                    15 * * * * sudo /bin/monitor_on.sh
                    @reboot sudo modprobe bcm2835-vl2

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer
                      last edited by cowboysdude Sep 18, 2016, 2:29 PM Sep 18, 2016, 2:28 PM

                      Well hey Thanks for making that easy… was JUST working on that LOL I’m putting it on github with instructions and the files…

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 5
                      • 6
                      • 7
                      • 8
                      • 9
                      • 21
                      • 22
                      • 7 / 22
                      7 / 22
                      • First post
                        67/213
                        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