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

Issues with MMM-PIR

Scheduled Pinned Locked Moved Solved Troubleshooting
22 Posts 7 Posters 7.9k 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.
  • E Offline
    eyesallin @bugsounet
    last edited by Jan 17, 2024, 9:37 AM

    @bugsounet

    Thanks for your patience, this is what i get.

    admin@garyspi:~ $ groups
    admin adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin gpio i2c spi
    admin@garyspi:~ $

    E 1 Reply Last reply Jan 18, 2024, 6:43 PM Reply Quote 0
    • S Offline
      schris88
      last edited by Jan 17, 2024, 1:59 PM

      your config looks good thus far, if you´re not getting it to run you can try my solution which is currently running like a charm

      I installed it with MMM-Pir-Sensor-light and changed the code to use wayland,
      to toggle the display on Pi5 this is working on a fresh OS install

      WAYLAND_DISPLAY=“wayland-1” wlr-randr --output HDMI-A-1 --off
      WAYLAND_DISPLAY=“wayland-1” wlr-randr --output HDMI-A-1 --on

      possible outputs HDMI-A-1 (the one right next to usb-c), HDMI-A-2

      If you monitor turns back on by itself after ~10 secs add “vc4.force_hotplug=1”(1=hmdi1 / 2=hdmi2 / 3=both) to the end of your /boot/firmware/cmdline.txt without creating a new line

      All I did was change the command in activate and deactivate display function in the node_helper.js and added the cmdline parameter (dont forget to reboot)

      1 Reply Last reply Reply Quote 0
      • E Offline
        eyesallin @eyesallin
        last edited by Jan 18, 2024, 6:43 PM

        @eyesallin
        I’m beginning to think that all this is Pi 5 related.
        Also changing to mode 10 as previously stated screws with the weather modules which don’t load. Remove MMM-PIR from config and everything works fine.
        It doesn’t help that I’m completely new to all this.

        S 1 Reply Last reply Jan 19, 2024, 9:34 AM Reply Quote 0
        • S Offline
          schris88 @eyesallin
          last edited by Jan 19, 2024, 9:34 AM

          @eyesallin yes it´s an “issue” with the pi5 as the os is now using wayland as graphical environment instead of x11 which was used forever, a lot of tools are written for it and now need to be updated to work with wayland. You will find a lot of scenarios where there is no updated tool or alternative for the pi5 atm. The switch was done end of 2023 so it´s very new.

          E 1 Reply Last reply Jan 19, 2024, 8:07 PM Reply Quote 0
          • E Offline
            eyesallin @schris88
            last edited by Jan 19, 2024, 8:07 PM

            @schris88
            Thx for the info, I guess a lot of the modules require reworking for the Pi 5.
            Unfortunately I do not have the ability, totally new to the Pi and programming.

            C 1 Reply Last reply Jan 28, 2024, 11:48 PM Reply Quote 0
            • C Offline
              ChanceTime @eyesallin
              last edited by Jan 28, 2024, 11:48 PM

              Is anyone able to get MMM-PIR successfully running on Bookworm? Feels like every option I’ve tried to turn my screen on and off after the PIR senses movement has been a struggle with no results. I’ve confirmed with tests that my sensor is working, but all the old ways to trigger the display on-off behaviour seem to not be running. I’m on a Pi4 running 12 with Wayland.

              Unfortunately I can’t go back to 11 because 10 worked like a dream, and 11 for some reason i could never successfully troubleshoot would refuse to load a taskbar in. Hardware seems to be working fine again in 12…

              I can post my config if it helps. Thanks for the hard work, bugsounet. :)

              S 1 Reply Last reply Jan 29, 2024, 12:24 AM Reply Quote 0
              • S Offline
                sdetweil @ChanceTime
                last edited by sdetweil Jan 29, 2024, 12:25 AM Jan 29, 2024, 12:24 AM

                @ChanceTime bookworm on pi4 or 5 uses a different window manager, Wayland, and requires different commands

                you can go back to xorg by using the raspi-config command

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • D Offline
                  diccon
                  last edited by Mar 19, 2024, 10:17 PM

                  Hi

                  I have had MMM-Pir module running perfectly for months. When I updated my RPi 3B+ to the latest updates this week the module produce the same error message

                  Pir Error Detected: EINVAL: invalid argument, write

                  I have tried reinstalling the module but no luck.

                  Any help greatly appreciated

                  Thanks

                  S 1 Reply Last reply Mar 20, 2024, 3:18 AM Reply Quote 0
                  • S Offline
                    sdetweil @diccon
                    last edited by Mar 20, 2024, 3:18 AM

                    @diccon which MMM-PIR?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Mar 20, 2024, 5:27 AM Reply Quote 0
                    • B Offline
                      bugsounet Banned @sdetweil
                      last edited by Mar 20, 2024, 5:27 AM

                      Hi, check pir_mode feature in readme readme

                      by default pir_mode is on mode 0
                      With pi 4 and pi 5, you can have EINVAL: invalid argument, write error
                      In this case
                      you have to use with pi 4: pir_mode: 1,
                      with pi 5 pir_mode: 2,

                      D 1 Reply Last reply Mar 22, 2024, 8:55 AM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • 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