MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    SOLVED MMM-Remote-Control can not turn ON monitor

    Troubleshooting
    3
    23
    354
    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
      sdetweil @anaghd last edited by

      @anaghd mine too!

      Sam

      Create a working config
      How to add modules

      A 1 Reply Last reply Reply Quote 0
      • A
        anaghd @sdetweil last edited by

        @sdetweil See if this gives you any ideas. I couldn’t figure it out.
        https://githubmemory.com/repo/Jopyth/MMM-Remote-Control/issues/178?page=1

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

          @anaghd vcgencmd turns off the hdmi port… not the monitor… and then I get an ugly no input message

          Sam

          Create a working config
          How to add modules

          A 1 Reply Last reply Reply Quote 0
          • A
            anaghd @sdetweil last edited by anaghd

            @sdetweil I was wondering if we can do something similar to what they have done but modify it for cec utilities, especially in regards to the status command.

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

              @anaghd sorry don’t understand

              if we could do something??

              Sam

              Create a working config
              How to add modules

              A 1 Reply Last reply Reply Quote 0
              • A
                anaghd @sdetweil last edited by

                @sdetweil can we modify this to include cec-utility commands instead of the vcgencmd?

                monitorStatusCommand: ‘if vcgencmd display power | grep 1 >/dev/null 2>&1; then echo true; else echo false; fi’

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

                  @anaghd oh… I don’t know the module internals or config at all…

                  Sam

                  Create a working config
                  How to add modules

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    anaghd @sdetweil last edited by

                    @sdetweil I finally have a solution that worked for me.

                    In the node_helper.js file, there is a function with the name “monitorControl”. In there, I used 2 things as shown below. Essentially, we want it to execute both, vcgen and cec, when we turn the monitor on and off. So I added the cec command to the already existing vcgencmd command. Now it looks like this.

                    this.thisConfig.customCommand.monitorOnCommand:
                    “vcgencmd display_power 1 && sudo echo 'on 0 | cec-client -s -d 1”;

                    this.thisConfig.customCommand.monitorOffCommand:
                    “vcgencmd display_power 0 && sudo echo 'standby 0 | cec-client -s -d 1”;

                    I did not change anything in the statusCommand part.

                    After that, I removed the customCommands from my config so that the module uses the default commands above for turning monitor ON and Off. That worked for me. See if it works for you.

                    S S 2 Replies Last reply Reply Quote 0
                    • S
                      sdetweil @anaghd last edited by

                      @anaghd no, but you could have put the same strings in your custom commands

                      Sam

                      Create a working config
                      How to add modules

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        anaghd @sdetweil last edited by

                        @sdetweil I tried doing that initially but that did not work for me.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 2 / 3
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy