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

Rpi 4 and two monitors

Scheduled Pinned Locked Moved Hardware
60 Posts 6 Posters 21.4k Views 6 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.
  • N Offline
    NathTheDude
    last edited by NathTheDude Feb 4, 2020, 8:47 PM Feb 4, 2020, 8:46 PM

    Thanks @sdetweil , I have just played with those settings again. These seem to only effect the desktop and the desktop background and not the MM site. Always appears on the first screen.

    S 1 Reply Last reply Feb 4, 2020, 8:47 PM Reply Quote 0
    • S Offline
      sdetweil @NathTheDude
      last edited by Feb 4, 2020, 8:47 PM

      @NathTheDude but is the desktop all the way across as a single desktop, or two separate instances?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Feb 4, 2020, 9:16 PM Reply Quote 0
      • N Offline
        NathTheDude
        last edited by Feb 4, 2020, 8:54 PM

        @sdetweil , it is seen as two separate monitors. There is not a setting to scretch one screen to the other with the settings. The closest is ‘Strectch to cover screen’ but that does not seem to help.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bhepler Module Developer @sdetweil
          last edited by Feb 4, 2020, 9:16 PM

          @sdetweil - I don’t know if that capability is in the Raspi display drivers. It’s always going to see the two monitors as two separate devices with unique desktops. If you click on the Identify button, it should show you a different number on each monitor.

          The only thing I can think of that would treat two monitors as a single continuous desktop is the AMD Eyefinity tech.

          S 1 Reply Last reply Feb 4, 2020, 9:19 PM Reply Quote 0
          • N Offline
            NathTheDude
            last edited by Feb 4, 2020, 9:19 PM

            Thanks @sdetweil and @bhepler , could you point me in the direction of how I would display a seperate instance of MM each monitor? I know this would mean I would need to update/maintain two different MM’s but maybe that is a better option if I want to add various modules?

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @bhepler
              last edited by Feb 4, 2020, 9:19 PM

              @bhepler said in Rpi 4 and two monitors:

              I don’t know if that capability is in the Raspi display drivers. It’s always going to see the two monitors as two separate devices with unique desktops. If you click on the Identify button, it should show you a different number on each monitor.

              well, that is stupid sh… , in this day and age you should be able to config the thing like u want…

              I booted ubuntu on my desktop with has two displays and it made one big desktop by default…
              can’t understand why raspi should be so dumb

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • N Offline
                NathTheDude
                last edited by NathTheDude Feb 4, 2020, 9:22 PM Feb 4, 2020, 9:21 PM

                does this help


                pi@MagicMirrors:~ $ tvservice --list
                2 attached device(s), display ID’s are :
                Display Number 2, type HDMI 0
                Display Number 7, type HDMI 1
                pi@MagicMirrors:~ $

                S 1 Reply Last reply Feb 4, 2020, 9:24 PM Reply Quote 0
                • S Offline
                  sdetweil @NathTheDude
                  last edited by Feb 4, 2020, 9:24 PM

                  @NathTheDude MagicMirror startup in the run-start.sh file sets DISPLAY=:0 for the primary display
                  I would guess that the second display is :1

                  so, do
                  export DISPLAY=:1
                  then npm start

                  see if it comes up on the second display

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    NathTheDude
                    last edited by NathTheDude Feb 4, 2020, 9:35 PM Feb 4, 2020, 9:34 PM

                    @sdetweil na, no joy. I did try this yesterday also but was not sure I was looking in the right place. For the sake of it I tried using numbers 0 to 9, all with the same result. This for example:

                    npm ERR! code ENOENT
                    npm ERR! syscall open
                    npm ERR! path /home/pi/package.json
                    npm ERR! errno -2
                    npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                    npm ERR! enoent This is related to npm not being able to find a file.
                    npm ERR! enoent 
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/pi/.npm/_logs/2020-02-04T21_33_32_894Z-debug.log
                    

                    However if I reboot the RPI with run-start having the different value it will still display the MM on the first screen, this made me think that this script was not being used at the startup as I would expect it to fail and not display the MM - perhaps I am wrong.

                    S 2 Replies Last reply Feb 4, 2020, 9:40 PM Reply Quote 0
                    • B Offline
                      bhepler Module Developer
                      last edited by Feb 4, 2020, 9:37 PM

                      I wonder if we’re looking in the wrong place? Perhaps it’s how the MM process is calling Electron that determines where on the desktop the app appears.

                      S 1 Reply Last reply Feb 4, 2020, 9:40 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 2 / 6
                      2 / 6
                      • First post
                        20/60
                        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