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

PIR problem

Scheduled Pinned Locked Moved Unsolved Troubleshooting
19 Posts 6 Posters 5.1k 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.
  • P Offline
    Peter @wishmaster270
    last edited by Jan 7, 2023, 7:30 PM

    @wishmaster270 sorry for my stupid question, I use Gpio pin 17, do I have to use that number in line 6 of your test script?
    Peter

    W 1 Reply Last reply Jan 7, 2023, 7:47 PM Reply Quote 0
    • W Offline
      wishmaster270 Module Developer @Peter
      last edited by Jan 7, 2023, 7:47 PM

      @Peter
      No stupid question more a lack of information/documentation of me ;-)

      You can call the script with the GPIO number as first argument. In your case it should be:

      ./testGPIO.py 17
      

      After some research i am pretty sure the problem is the graphics stack in your case. I am working on a solution for the problem

      P 1 Reply Last reply Jan 7, 2023, 7:48 PM Reply Quote 0
      • P Offline
        Peter @wishmaster270
        last edited by Jan 7, 2023, 7:48 PM

        @wishmaster270 great!
        I will try it as soon as I find time …
        Have a nice evening!
        Peter

        K 1 Reply Last reply Jan 7, 2023, 8:09 PM Reply Quote 0
        • K Offline
          karsten13 @Peter
          last edited by Jan 7, 2023, 8:09 PM

          I was not able to use vcgencmd under bullseye and AFAIK they are using xrandr under the hood for rotating the screen over the web ui menu.

          So beside testing if the sensor works you could test if you can deactivate the sceen with xrandr --output HDMI-1 --off and activate it again with xrandr --output HDMI-1 --rotate normal --auto.

          xrandr is also the default of commandType option of MMM-PIR-Sensor-Lite (see documentation).

          P 1 Reply Last reply Jan 7, 2023, 8:43 PM Reply Quote 0
          • P Offline
            Peter @karsten13
            last edited by Jan 7, 2023, 8:43 PM

            @karsten13 I tried MMM-Pir-Sensor-Lite: counting down works and is re-activated whenever I move my hand in front of the sensor.
            But the screen does not turn off.
            Peter

            W S 2 Replies Last reply Jan 7, 2023, 8:54 PM Reply Quote 0
            • W Offline
              wishmaster270 Module Developer @Peter
              last edited by Jan 7, 2023, 8:54 PM

              @Peter
              @karsten13

              Just released version 0.0.7 of my MMM-Screen-Powersave-Notification module which supports either vcgencmd, tvservice and now also xrandr.

              1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Peter
                last edited by Jan 7, 2023, 9:01 PM

                @Peter what mode are u trying? xrandr vcgencmd?

                only xrandr works on bullseye

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                P 1 Reply Last reply Jan 7, 2023, 9:36 PM Reply Quote 0
                • P Offline
                  Peter @sdetweil
                  last edited by Jan 7, 2023, 9:36 PM

                  @sdetweil I used xrandr.
                  Peter

                  S 1 Reply Last reply Jan 7, 2023, 9:56 PM Reply Quote 0
                  • S Offline
                    sdetweil @Peter
                    last edited by Jan 7, 2023, 9:56 PM

                    @Peter and if you issue the commands yourself(via ssh)

                    do they work?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    P 1 Reply Last reply Jan 7, 2023, 10:00 PM Reply Quote 0
                    • P Offline
                      Peter @sdetweil
                      last edited by Jan 7, 2023, 10:00 PM

                      @sdetweil did not try that.
                      Peter

                      N 1 Reply Last reply Jan 14, 2023, 11:35 PM Reply Quote 0
                      • 1
                      • 2
                      • 2 / 2
                      2 / 2
                      • First post
                        12/19
                        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