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.2k 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.
    • S Offline
      sdetweil @Peter
      last edited by

      @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 Reply Quote 0
      • P Offline
        Peter @sdetweil
        last edited by

        @sdetweil I used xrandr.
        Peter

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Peter
          last edited by

          @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 Reply Quote 0
          • P Offline
            Peter @sdetweil
            last edited by

            @sdetweil did not try that.
            Peter

            N6NGN 1 Reply Last reply Reply Quote 0
            • N6NGN Offline
              N6NG @Peter
              last edited by

              @Peter Hello Peter… I’m not sure I understand… I ran the following test on my mirror and it worked as it should.

              /usr/bin/vcgencmd display_power 0; echo “Display should now be off”; sleep 20; /usr/bin/vcgencmd display_power 1; echo “And now it should be on again”

              But now I need to incorporate it into my config.js for my MMM-PIR-Sensor-Lite. I see the command type and ‘vcgencmd’ but once I get that in the config how do I do the turn on and turn off?

              Thanks for all the help and you also Sam.

              Dennis

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                TangoE30 @N6NG
                last edited by

                @N6NG and @sdetweil
                Hi All,
                Passing along some info as I was also having problems with my ASUS VZ27EHE monitor staying off / my monitor coming back on with MMM-PIR-Sensor-Lite. The display would turn off, then a blue screen come on saying “HDMI No Signal” but then automatically turned back on. I used both xrandr and xset commands but nothing worked on my pi 4 running Bullseye.

                After some digging and looking at this site “https://github.com/raspberrypi/linux/issues/2517”, I replaced the code in the node_helper.js (I know you’re not supposed to touch but this is what worked for me) and it works now. The only issue is on reboot, I have to run a command once to avoid the screen going to a gray state xsetroot -display :0 -solid Black.

                case 'xset':
                	exec("xset -display :0 s noblank", null);//default: xset dpms force off
                	//Have to run 'xsetroot -display :0 -solid Black' on reboot to avoid gray screen
                	exec("sleep 1", null);
                	exec("xset -display :0 s off", null);
                	exec("sleep 1", null);
                	exec("xset -display :0 -dpms", null);
                	exec("sleep 1", null);
                	exec("xset -display :0 s 0 0", null);
                	exec("sleep 1", null);
                	exec("xset -display :0 dpms 0 0 0", null);
                	exec("sleep 1", null);
                	exec("xset dpms force off", null);
                

                Don’t ask me how it works and I’ll give credit to E3V3A for posting that code. Hopefully this will help for those with a non-CEC compliant monitor and can fully turn off the monitor when not in use.

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