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.

    MagicMirror on second Monitor

    Scheduled Pinned Locked Moved Solved Troubleshooting
    9 Posts 4 Posters 776 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
      sdetweil @Babene1
      last edited by

      @Babene1 you should have two X11 DISPLAY objects…

      the default is :0 (which we set in the mm.sh script and in the package.json START clause, if it is not set

      "scripts": {
      		"start": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
      

      so you shouldn’t need the electronOptions settings, just set the display variable
      export DISPLAY=??

      xrandr --query
      

      should give you the list of displays

      note this is the X11 term, the Wayland value is different

      when I do xrandr on my pi5 with wayland (only ‘one’ screen) I see

      xrandr --query
      Screen 0: minimum 16 x 16, current 3840 x 2160, maximum 32767 x 32767
      XWAYLAND14 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
         3840x2160     29.98*+
         2048x1536     29.95  
         1920x1440     29.95  
         1600x1200     29.95  
         1440x1080     29.86  
         1400x1050     29.98  
         1280x1024     29.90  
         1280x960      29.82  
         1152x864      29.92  
         1024x768      29.89  
         800x600       29.55  
         640x480       29.85  
         320x240       27.50  
         2560x1600     29.99  
         1920x1200     29.95  
         1680x1050     29.95  
         1440x900      29.91  
         1280x800      29.83  
         720x480       29.25  
         640x400       29.58  
         320x200       26.53  
         3200x1800     29.96  
         2880x1620     29.96  
         2560x1440     29.94  
         2048x1152     29.94  
         1920x1080     29.95  
         1600x900      29.92  
         1368x768      29.94  
         1280x720      29.93  
         1024x576      29.84  
         864x486       29.50  
         720x400       29.51  
         640x350       29.03  
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @Babene1 I have run two monitors one landscape, one portait with MM on each
        using the electronOptions:{} settings.

        the cursor moves over both seamlessly.
        that is one big display space.
        the xrandr command will tell you …

        do you have two complete independant desktops?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        BKeyportB 1 Reply Last reply Reply Quote 0
        • BKeyportB Offline
          BKeyport Module Developer @sdetweil
          last edited by

          @sdetweil With the displays showing “HDMI-A-1” etc, it’s in Wayland, xrandr doesn’t function under that. This is part of why I suggested going back to X11.

          The "E" in "Javascript" stands for "Easy"

          S Z 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @BKeyport
            last edited by sdetweil

            @BKeyport xrandr --query worked while running wayland, output above

            wlr-randr does not do --query

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            BKeyportB 1 Reply Last reply Reply Quote 0
            • BKeyportB Offline
              BKeyport Module Developer @sdetweil
              last edited by

              @sdetweil Ahh, ok, I thought it was completely dead. Good to know.

              The "E" in "Javascript" stands for "Easy"

              1 Reply Last reply Reply Quote 0
              • B Offline
                Babene1 Project Sponsor
                last edited by

                You are absolutely brilliant, now it works.
                I change in “raspi-config” to x11 desktop environment and now magicmirror run on second monitor.

                Thank you all for your tips

                1 Reply Last reply Reply Quote 0
                • B Babene1 has marked this topic as solved on
                • Z Offline
                  zane-zan @BKeyport
                  last edited by

                  @BKeyport I believe you are right. I had the same issue. I tried to run the xrandr query and I could not print the displays. I looked everywhere, the only solution I found was to switch back to X11. This was the only way to get the electron option to treat the screen as a single screen and move the display to the second monitor.
                  Anyway, thanks a lot, reading this post solved my problem and I was trying to figure it out for a while !

                  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