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

MagicMirror dual monitor configuration

Scheduled Pinned Locked Moved Solved Troubleshooting
10 Posts 2 Posters 1.3k Views 2 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.
  • P Offline
    pastormingle
    last edited by Aug 25, 2021, 12:43 AM

    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 Aug 25, 2021, 1:39 AM Reply Quote 0
    • P Offline
      pastormingle @sdetweil
      last edited by Aug 25, 2021, 9:11 PM

      @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 Aug 26, 2021, 8:14 PM Reply Quote 0
      • S Offline
        sdetweil @pastormingle
        last edited by sdetweil Aug 25, 2021, 1:39 AM Aug 25, 2021, 1:39 AM

        @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

        How to add modules

        learning how to use browser developers window for css changes

        P 1 Reply Last reply Aug 25, 2021, 8:54 PM Reply Quote 1
        • P Offline
          pastormingle @sdetweil
          last edited by Aug 25, 2021, 8:54 PM

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

          S 1 Reply Last reply Aug 25, 2021, 8:55 PM Reply Quote 0
          • S Offline
            sdetweil @pastormingle
            last edited by sdetweil Aug 25, 2021, 9:07 PM Aug 25, 2021, 8:55 PM

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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            P 1 Reply Last reply Aug 25, 2021, 9:11 PM Reply Quote 0
            • P Offline
              pastormingle @sdetweil
              last edited by Aug 25, 2021, 9:11 PM

              @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 Aug 26, 2021, 8:14 PM Reply Quote 0
              • P Offline
                pastormingle @pastormingle
                last edited by Aug 26, 2021, 8:14 PM

                @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 Aug 26, 2021, 8:27 PM Reply Quote 0
                • S Offline
                  sdetweil @pastormingle
                  last edited by Aug 26, 2021, 8:27 PM

                  @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

                  How to add modules

                  learning how to use browser developers window for css changes

                  P 1 Reply Last reply Aug 26, 2021, 8:37 PM Reply Quote 0
                  • P Offline
                    pastormingle @sdetweil
                    last edited by Aug 26, 2021, 8:37 PM

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

                    S 1 Reply Last reply Aug 26, 2021, 8:44 PM Reply Quote 0
                    • S Offline
                      sdetweil @pastormingle
                      last edited by Aug 26, 2021, 8:44 PM

                      @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

                      How to add modules

                      learning how to use browser developers window for css changes

                      P 1 Reply Last reply Aug 26, 2021, 8:46 PM Reply Quote 0
                      • P Offline
                        pastormingle @sdetweil
                        last edited by Aug 26, 2021, 8:46 PM

                        @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
                        1 / 1
                        • First post
                          1/10
                          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