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

MMM-Remote-Control

Scheduled Pinned Locked Moved Solved Troubleshooting
9 Posts 4 Posters 1.2k 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.
  • D Offline
    Dennis-010
    last edited by Oct 26, 2023, 7:51 PM

    Hey all,

    After troubleshooting the calendar module with the help of Sam I stumpled upon a new “problem”.

    I installed the MMM-Remote-Control module to be able to use motion sensors and HASS to turn on/off the screen/monitor.

    The module works flawlessly exept for the monitor on and off command. I can start, restart and turn off the pi with the module.
    I’m using a Pi4 with 2 micro hdmi ports, monitor isd plugged in hdmi0 (left port) Already tried on a different monitor for testing purose.

    Also already changed the output commands to

    'xrandr -d :0 --output HDMI-1 --auto',
    
                {
                    module: 'MMM-Remote-Control',
                    // uncomment the following line to show the URL of the remote control on the mirror
                    // position: 'bottom_left',
                    // you can hide this module afterwards from the remote control itself
                    config: {
                        customCommand: {  // Optional, See "Using Custom Commands" below
                          monitorOnCommand: 'xrandr -d :0 --output HDMI-1 --auto',
                          monitorOffCommand: 'xrandr -d :0 --output HDMI-1 --off'
                        },
                        showModuleApiMenu: true, // Optional, Enable the Module Controls menu
                        secureEndpoints: true, // Optional, See API/README.md
                        // uncomment any of the lines below if you're gonna use it
                        // customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
                        // apiKey: "", // Optional, See API/README.md for details
                        // classes: {} // Optional, See "Custom Classes" below
                }
                },
    
    S 1 Reply Last reply Oct 26, 2023, 7:56 PM Reply Quote 0
    • J Offline
      Jessendelft @Dennis-010
      last edited by Jessendelft Dec 9, 2023, 9:13 PM Dec 9, 2023, 9:09 PM

      @Dennis-010

      Thanks for figuring all of this out. I also reverted back to the X11 window driver.
      For completeness, just add --rotate right to the command:

      customCommand: {  // Optional, See "Using Custom Commands" below
        monitorOnCommand: 'xrandr -d :0 --output HDMI-1 --auto --rotate right',
        monitorOffCommand: 'xrandr -d :0 --output HDMI-1 --off'
      },
      
      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Dennis-010
        last edited by sdetweil Oct 26, 2023, 7:58 PM Oct 26, 2023, 7:56 PM

        @Dennis-010 pi4 bookworm uses the new Wayland display system instead of x11…
        xrandr doesn’t work

        from discord last night

        Screenshot_20231026_145754_Discord.jpg

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Oct 26, 2023, 7:59 PM Reply Quote 0
        • D Offline
          Dennis-010 @sdetweil
          last edited by Oct 26, 2023, 7:59 PM

          @sdetweil

          Ah have not found that on Google yet,
          Is there a custom line available to have this fixed?

          S 1 Reply Last reply Oct 26, 2023, 8:16 PM Reply Quote 0
          • S Offline
            sdetweil @Dennis-010
            last edited by Oct 26, 2023, 8:16 PM

            @Dennis-010 sorry, don’t know what you mean ‘custom line’

            i don’t know if any of us know what to do yet… wayland right now is only setup on pi4… apparently there is a setting in raspiconfig to got back to x11…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            D 1 Reply Last reply Oct 26, 2023, 8:21 PM Reply Quote 0
            • D Offline
              Dennis-010 @sdetweil
              last edited by Oct 26, 2023, 8:21 PM

              @sdetweil said in MMM-Remote-Control:

              @Dennis-010 sorry, don’t know what you mean ‘custom line’

              Well, I started with:

              monitorOnCommand: "echo 'on 0.0.0.0' | cec-client -s -d 1",
              

              Then changd it to:

              monitorOnCommand: 'xrandr -d :0 --output HDMI-1 --auto',
              

              So I was wondering if there was a new “custom” line of code I can use. But u already said thast there might be no solution yet.

              S 1 Reply Last reply Oct 26, 2023, 8:28 PM Reply Quote 0
              • S Offline
                sdetweil @Dennis-010
                last edited by Oct 26, 2023, 8:28 PM

                @Dennis-010 he had another post

                yeah ! just found for wayland 
                [3:58 PM]
                for turn on: pi@raspberrypi:~ $ WAYLAND_DISPLAY=wayland-1 wlr-randr --output HDMI-A-2 --on
                [3:58 PM]
                for turn off: pi@raspberrypi:~ $ WAYLAND_DISPLAY=wayland-1 wlr-randr --output HDMI-A-2 --off
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A D 2 Replies Last reply Oct 27, 2023, 9:28 PM Reply Quote 0
                • A Offline
                  ankonaskiff17 @sdetweil
                  last edited by Oct 27, 2023, 9:28 PM

                  @sdetweil Saw this and I maybe putting out old news because most people do
                  sudo raspi-config and then hit enter. Saw some text that appear to type in
                  sudo raspi-config nonint do_wayland <W1/W2> with

                  W1 - Use the X11 backendWayland.jpg
                  W2 - Use the Wayland backend

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dennis-010 @sdetweil
                    last edited by Oct 28, 2023, 6:57 AM

                    @sdetweil

                    That line infortunatly did not do the trick.

                    I used the revert option from @ankonaskiff17 to revert back to X11 and now the commands are working again.
                    Only thing now is: when monitor turns back on it’s set back to landscape instead of 90 degrees right portrait.

                    I remember seeing a fix for that somewhere, so I’ll be looking for that.

                    J 1 Reply Last reply Dec 9, 2023, 9:09 PM Reply Quote 0
                    • J Offline
                      Jessendelft @Dennis-010
                      last edited by Jessendelft Dec 9, 2023, 9:13 PM Dec 9, 2023, 9:09 PM

                      @Dennis-010

                      Thanks for figuring all of this out. I also reverted back to the X11 window driver.
                      For completeness, just add --rotate right to the command:

                      customCommand: {  // Optional, See "Using Custom Commands" below
                        monitorOnCommand: 'xrandr -d :0 --output HDMI-1 --auto --rotate right',
                        monitorOffCommand: 'xrandr -d :0 --output HDMI-1 --off'
                      },
                      
                      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