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-RemoteControl or vcgencmd Issue

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    16 Posts 7 Posters 8.2k Views 8 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
      Stroke 0
      last edited by

      I’m using a Raspberry Pi 4 Model B Rev 1.2 for my mirror. In attempting to shut off the hdmi to the mirror using both MMM-RemoteControl, or a bash file using vcgencmd display_power 0/1, the monitor turns back on within 12 seconds. Research indicates that it’s due to kernel control on the P1 4 model. Oddly, no one in the forum seems to be experiencing this. Any suggestions or tips that I can employ? Thank you.

      S O bdeelmanB 3 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @Stroke 0
        last edited by sdetweil

        @Stroke-0 my pi4 doesn’t have an issue

        off command is
        (sudo /usr/bin/vcgencmd display_power 0) >/dev/null
        on command is
        (sudo /usr/bin/vcgencmd display_power 1) >/dev/null

        commands issued over ssh

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          OberfragGER @sdetweil
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • O Offline
            OberfragGER @Stroke 0
            last edited by

            @Stroke-0 No Problems here. Im using MMM-RemoteControl and a PI4. I also use MMM-NewPir to turn the Monitor off.

            S 1 Reply Last reply Reply Quote 0
            • bdeelmanB Offline
              bdeelman @Stroke 0
              last edited by

              @Stroke-0

              A (or my) Rpi4 has two HDMI ports. So you should add also the HDMI port 0 or 1 (or id 2 and id 7). docs

              Status screen:

              vcgencmd display_power -1 2 | grep -q "1" && echo "on" || echo "off"
              vcgencmd display_power -1 7 | grep -q "1" && echo "on" || echo "off"
              

              Regards,
              Bert

              1 Reply Last reply Reply Quote 1
              • M Offline
                MiPraSo
                last edited by

                I had the same issue, I use MMM-PIR-Sensor-Lite to switch the monitor off and on again. On the command line “vcgencmd display_power 0” does not work, the return is always: “display_power=1”.

                I have tried a few things, they all did not work.
                Edit the “config.txt” in the “/boot” directory.

                Go to:

                “# Enable DRM VC4 V3D driver
                dtoverlay=vc4-kms-v3d
                max_framebuffers=2”

                And change “dtoverlay=vc4-kms-v3d” to “dtoverlay=vc4-fkms-v3d”.

                There is a bug in the “vc4-kms-v3d” driver.

                After changing in the “config.txt” “vcgencmd display_power 0” returns a “display_power=0”.

                MMM-PIR-Sensor-Lite now works as desired.

                S G M 3 Replies Last reply Reply Quote 1
                • S Offline
                  Stroke 0 @MiPraSo
                  last edited by

                  @MiPraSo Well done! Thank you. Your solution works perfectly. I do not understand why others are not experiencing the same issue however, they now have a solution. Thank you, again.

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

                    @OberfragGER do you have it set for cec-client mode? it does all 4 approaches

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    O 1 Reply Last reply Reply Quote 0
                    • O Offline
                      OberfragGER @sdetweil
                      last edited by

                      @sdetweil I dont have any proble with CEC e.g…? Or do you just mistakenly quotet me…?

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

                        @OberfragGER no, I was just asking how you used NEW-Pir

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        O 1 Reply Last reply Reply Quote 0
                        • O Offline
                          OberfragGER @sdetweil
                          last edited by

                          @sdetweil I just use the Standard setting in my config.js.
                          Standard = use vgencmd

                          https://wiki.bugsounet.fr/en/EXT-Screen

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

                            @OberfragGER we have discovered that some pi firmware (updated under the covers by some kernel updates) causes the vcgencmd to not work,

                            https://forum.magicmirror.builders/topic/17185/pir-sensor-problem-after-restart-raspi/20?_=1663206370580

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            O 1 Reply Last reply Reply Quote 0
                            • G Offline
                              grena Module Developer @MiPraSo
                              last edited by

                              Ongoing fix! More information in my last post ;-)

                              1 Reply Last reply Reply Quote 1
                              • O Offline
                                OberfragGER @sdetweil
                                last edited by

                                @sdetweil Thanks for your info.
                                I assume that i have an working firmware. I dont have any clue which version this is.
                                e7ae22b4-0b52-4988-afc7-8d84ff09ad61-image.png

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

                                  @OberfragGER right, the latest update broken then command

                                  do this from a terminal window

                                  rpi-update b976c54917e240630c05a9b383010f1492bc61b4
                                  

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    magmar @MiPraSo
                                    last edited by

                                    @MiPraSo Thank you! Worked like a charm :)

                                    To be allowed to save the config.txt-file, I had to edit it in administrator-mode (sudo nano config.txt). I also had to reboot the Pi after saving the file.

                                    1 Reply Last reply Reply Quote 0
                                    • T thobach referenced this topic on
                                    • S sdetweil referenced this topic on

                                    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