MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED MagicMirror dual monitor configuration

    Troubleshooting
    2
    10
    502
    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.
    • P
      pastormingle last edited by

      I have my mm configured and working great on one monitor. I’ve used pm2 module to auto start for display=:0 but we i’ve tried to get display=:2 to start i get nothing on the second display… I have 2 instances of mm one named mm and the other mm2. i’ve added the following in mm.sh file
      cd ~/MagicMirror
      DISPLAY=:0 npm start
      cd ~/MagicMirror1
      DISPLAY=:4 npm start
      But still only the Display 1 will start… Help please…

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

        @sdetweil freaking genius!.. That worked like a charm… I’ve been beating my head against the wall for 2 days now trying to figure this thing out… Wonderful…

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

          @pastormingle the second display is not :2

          it’s all still display :0

          u can adjust the pixel offset for the web page

          by adding

          electronOptions:{ x:1920 },
          

          to config.js before the modules: entry

          where the 1920 is the pixel width of the 1st display

          Sam

          Create a working config
          How to add modules

          P 1 Reply Last reply Reply Quote 0
          • P
            pastormingle @sdetweil last edited by

            @sdetweil you are saying in my second mm directory in the config file add the electronOptions?

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

              @pastormingle correct… one displays a x:0 (default)
              and the other displays at x:1920)

              Sam

              Create a working config
              How to add modules

              P 1 Reply Last reply Reply Quote 0
              • P
                pastormingle @sdetweil last edited by

                @sdetweil freaking genius!.. That worked like a charm… I’ve been beating my head against the wall for 2 days now trying to figure this thing out… Wonderful…

                P 1 Reply Last reply Reply Quote 0
                • P
                  pastormingle @pastormingle last edited by

                  @pastormingle Need some help now running two config files for my dual monitor configuration. I have MM directory and a MM1 directory. But it looks like both are reading the same config file… if i go to MM1 and do a DISPLAY=:0 npm start it seem to read the same config files as MM directory. What am i doing wrong here?

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

                    @pastormingle hm… I do this ALL the time

                    two copies of MM, two config files

                    have to set two different ports too, right?

                    one of 8080 and one on 8090 (thats what I do)

                    Sam

                    Create a working config
                    How to add modules

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      pastormingle @sdetweil last edited by

                      @sdetweil I’ve been using pm2 to start so not sure how I set up separate ports for that?

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

                        @pastormingle port is in the config.js

                        also do pm2 status

                        and pm2 info xx

                        where xx is the number

                        to make sure they are starting different scripts…

                        how did u setup the second instance?

                        Sam

                        Create a working config
                        How to add modules

                        P 1 Reply Last reply Reply Quote 0
                        • P
                          pastormingle @sdetweil last edited by

                          @sdetweil I found it and it’s working great thanks for the help… Now just need to get to start with pm2 and should be good to go…

                          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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy