• 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 sensor problem

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 4 Posters 1.4k 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 Offline
    sultan.y
    last edited by Dec 23, 2021, 7:24 AM

    I am trying to add a PIR sensor to the MM

    i have wired it to a raspberry pi but having a problem executing the funciton control the lcd

    getting an error, an idea

    sudo chmod u+s /opt/vc/bin/tvservice && sudo chmod u+s /bin/chvt
    chmod: cannot access ‘/opt/vc/bin/tvservice’: No such file or directory

    S 1 Reply Last reply Dec 23, 2021, 12:44 PM Reply Quote 0
    • S Offline
      sdetweil @sultan.y
      last edited by Dec 23, 2021, 12:44 PM

      @sultan-y in raspios latest , bullseye, that function, tvservice, is no longer provided.,

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sultan.y
        last edited by Dec 24, 2021, 4:37 AM

        is there a workaround?

        S G 2 Replies Last reply Dec 24, 2021, 1:06 PM Reply Quote 0
        • S Offline
          sdetweil @sultan.y
          last edited by Dec 24, 2021, 1:06 PM

          @sultan-y there are other approaches to turn off monitor

          some of the newer pie modules support multiple ways

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply Dec 24, 2021, 3:49 PM Reply Quote 1
          • B Offline
            bugsounet Banned @sdetweil
            last edited by sdetweil Dec 24, 2021, 3:55 PM Dec 24, 2021, 3:49 PM

            @sdetweil said in PIR sensor problem:

            some of the newer pir modules support multiple ways

            I love this style ;)

            1 Reply Last reply Reply Quote 0
            • G Offline
              gandalf20000 @sultan.y
              last edited by Jan 6, 2022, 3:43 PM

              @sultan-y
              To get the PIR sensor working with MM on the currently latest Raspberry PI OS Bullseye you can use /usr/bin/vcgencmd display_power 0/1 instead of using the tvservice command (I run it in a script started by crontab at reboot).

              I also

              • added /usr/bin/xrandr -display :0.0 --auto before the vcgencmd command
              • added user Pi to the gpio group: sudo usermod -a -G gpio pi, and I
              • added XAUTHORITY=/home/pi/.Xauthority here: sudo vi /etc/environment

              My mirror uses a DVI to HMI output, but using xrandr and XAUTHORITY as above solved the issues I had.

              Btw, I use

              /usr/bin/chvt 6
              /usr/bin/chvt 7
              

              after the /usr/bin/vcgencmd display_power 1 command, but that was used prior to using Bullseye as well.

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