MagicMirror² v2.11.0 is available! For more information about this release, check out this topic.

Raspberry 4 with two 24-inch screens ?

  • @Cbob
    following the configuration instructions

    you can add a section for passing to the browser, electron
    add that line in front of the modules: line

    this says,
    not fullscreen
    800 pixels wide
    and starting (left edge is 0) at pixel 600

     electronOptions: {fullscreen:false, width:800, x:600},

    so, if your screen is 1920*2 wide
    to get the window onto the second screen,
    x:1920 seems right

  • Guys, I’m having problem starting two instances of magic mirror.

    I have a Raspberry Pi 4. One HDMI port is connected on my PC Screen, the other one on my TV (just for example. I’ll use two screens on my actual mirror).

    I am able to start Magic Mirror on the second screen putting this line on the config.js of the second instance

    electronOptions: {fullscreen:true, x:1920},

    (My first screen is 1920px wide).

    I can get two instances to work, the problem is they are ALWAYS the same instance.

    One instance is installed on ~/MagicMirror. The second is on ~/MagicMirror2.
    I have two start scripts:


    cd /home/pi/MagicMirror
    DISPLAY=:0 npm start

    And ~/MagicMirror2/

    cd /home/pi/MagicMirror2
    DISPLAY=:0 npm start

    The first instance I have my modules and the second is the default instance (default config.js) that comes with the instalation (except for the “electronOptions” above, “address” and “ipWhiteList”).

    The problem is that the second instance I start ALWAYS is the same as the first one.
    For example, if I use “pm2 start mm”, my first instance appears on my first screen.
    After that I use “pm2 start mm2” and also the FIRST INSTANCE appears on the second screen.

    Any thoughts on how to correct that? What am I doing wrong?

  • @Bruno use pm2 info mm, and pm2 mm2 to make sure they are starting the right script

  • Ok, sorry. Just found out… I was using the same port on both instances 😐

  • for display 1 -

    cd /home/pi/MagicMirror
    DISPLAY=:0 npm start

    for display 2 -

    cd /home/pi/MagicMirror
    DISPLAY=:1 npm start

    i could be wrong tho…

  • @banbutcher no, on PI4 there is only one ‘display’…
    you have to use the electronOptions, x:??? value to set the left edge of each (0 is left)

  • @sdetweil

    i knew i could be wrong!! 😃

Log in to reply