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-Universal-Pir - Desparately seeking right command

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 2 Posters 860 Views 2 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.
    • R Offline
      rkorell
      last edited by rkorell

      Good eveneing, all.
      My mirror is working fine, I was able to configure a Raspi5 with bookworm and all migrated modules are working in this version.
      Because I have to keep in mind that my favourite MMM-Pir ( :-) ) won’t run that much in future I try to investigate alternatives.
      The most current module for PIR detection seems to be MMM-Universal-Pir.
      Unfortunately I’m not able to figure out the right commands (or the module doesn’t work - but I’ve seen some success messages).

      For some strange reason my Mirror-Autostart is configured with a X11 start, so on my bookworm instance I have disabled wayland to run MagicMirror in this mode, so “default” commands of module won’t definitely not work.

      I’ve found here around :

      “vcgencmd display_power 1” / “vcgencmd display_power 0” - on bookworm vgencmd doesn’t have this “display_power” option.

      “echo on | sudo tee /sys/class/drm/card1-HDMI-A-1/status” / “echo off | sudo tee /sys/class/drm/card1-HDMI-A-1/status” – this doesn’t do anything on my system - neither on terminal command-line nor in module.

      “DISPLAY=:0.0 xrandr --output HDMI-1 --off” / “DISPLAY=:0.0 xrandr --output HDMI-1 --primary --mode 2560x1440 --rate 59.951 --pos 0x0 --rotate left” are the most promising candidates - they at least are working on command-line in terminal
      But xrandr doesn’t work with MMM-Universal-Pir.
      (I’ve also tried to use these xrandr commands without display-reference
      (“xrandr --output HDMI-1 --off” / “xrandr --output HDMI-1 --primary --mode 2560x1440 --rate 59.951 --pos 0x0 --rotate left”* ) . Doesn’t work, either (from module).

      Is anybody out there with Pi5/bookworm/X11 with a working configuration / Command pair?

      And an additional question to those who are uing this module successfully: Is it true, that the countdown is not interrupted if a motion is detected ? (this is my impression when looking at the countdown - but may 1 Minute is too short) …

      Many thanks for any hint!
      Regards,
      Ralf

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        rkorell @rkorell
        last edited by rkorell

        @rkorell said in MMM-Universal-Pir - Desparately seeking right command:

        “DISPLAY=:0.0 xrandr --output HDMI-1 --off” / “DISPLAY=:0.0 xrandr --output HDMI-1 --primary --mode 2560x1440 --rate 59.951 --pos 0x0 --rotate left”

        these are the right commands and are working now!

        (If one was not too blonde to switch the commands …)
        My fault - I’ve entered the on comand to the off parameter …
        Sorry!

        Regards,
        Ralf

        1 Reply Last reply Reply Quote 1
        • R rkorell has marked this topic as solved on
        • A Online
          atwist
          last edited by

          I am trying to get this to work after no longer being able to use MMM-Pir. When the countdown hits 0 the screen goes black like it should . But, then it immediately turns back on even without motion.

          What am i missing?

          I’m using the DISPLAY=0.0 xrandr --output HDMI-2 --off

          It works fine from the command line but not within MM.

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            rkorell @atwist
            last edited by rkorell

            @atwist said in MMM-Universal-Pir - Desparately seeking right command:

            DISPLAY=0.0 xrandr --output HDMI-2 --off

            Dear @atwist, guessing from the distance is quite hard.
            You didn’t provide system information.
            From your told story you can try to check two things which came in my mind:

            1. PIR sensor: does this work correctly / is it adjustd correctly (on my sensor there are two screws to adjust distance and sensitivity.
              I had SERIOUS truble with theses settings and motion detection as my Pi5 gettih hot (caused by insufficient cooling)
            2. Screen/Monitor itself: Does some energy setting is causing the monitor to come back by itself?

            Good luck,
            Ralf

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • 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