Read the statement by Michael Teeuw here.
Getting MMM to open on the second monitor and correctly size
-
@sdetweil said in Getting MMM to open on the second monitor and correctly size:
n config.js u need to tell it where (left/right) to position the monitor in the display space.
add this to config.js
var config = {
electronOptions:{x:1920 }, // add this line, where x is the width of your 1st displaynow orientation… you MAY be able to use also width and height… altho it says to fullscreen on that montitor, so it should work
electronOptions:{x:1920, width:xx, height: yy },Great thank you for the advice I will try it later.
-
@Chrisflex i have two monitors and have MM open on the second display
-
I have entered the information as it is below
var config = {electronOptions:{x:1920, width:768, height: 1360 },
It still only opens on the primary screen.
1920, 768, and 1360 are highlighted red
I am not sure what that means.
This is all being done in Windows 10 with Note+ as the editor.
-
@Chrisflex how wide is the 1st display?
did u try that 1st?
just move to the second display and see what happens?
highlighted in red by what?
-
@Chrisflex on my machine, height and width don’t do anything, as the fullscreen takes over
you might also add fullscreen:false to the options above
that made mine use the sizes specified
I am on linux
if there is an error in the config. it will open on the primary display
look at the output of npm start -
@sdetweil said in Getting MMM to open on the second monitor and correctly size:
electronOptions:{x:1920 }
I have entered the information like this
this does not work {electronOptions:{fullscreen:false ,x:1920 }, {electronOptions:{x:1920,fullscreen:false }
This works
{electronOptions:{fullscreen:false }It brings up a small screen but not sized correctly.
it shows Electron in the top left corner
this screen can be dragged to the second monitor..
here is the start up log
[2020-05-03 18:34:52.838] [LOG] Starting MagicMirror: v2.11.0
[2020-05-03 18:34:52.840] [LOG] Loading config …
[2020-05-03 18:34:52.844] [LOG] Loading module helpers …
[2020-05-03 18:34:52.845] [LOG] No helper found for module: alert.
[2020-05-03 18:34:52.881] [LOG] Initializing new module helper …
[2020-05-03 18:34:52.881] [LOG] Module helper loaded: updatenotification
[2020-05-03 18:34:52.881] [LOG] No helper found for module: clock.
[2020-05-03 18:34:53.145] [LOG] Initializing new module helper …
[2020-05-03 18:34:53.146] [LOG] Module helper loaded: calendar
[2020-05-03 18:34:53.146] [LOG] No helper found for module: compliments.
[2020-05-03 18:34:53.146] [LOG] No helper found for module: on-this-day.
[2020-05-03 18:34:53.147] [LOG] No helper found for module: random_quotes.
[2020-05-03 18:34:53.147] [LOG] No helper found for module: currentweather.
[2020-05-03 18:34:53.147] [LOG] No helper found for module: weatherforecast.
[2020-05-03 18:34:53.167] [LOG] Initializing new module helper …
[2020-05-03 18:34:53.167] [LOG] Module helper loaded: newsfeed
[2020-05-03 18:34:53.167] [LOG] All module helpers loaded.
[2020-05-03 18:34:53.269] [LOG] Starting server on port 8080 …
[2020-05-03 18:34:53.287] [LOG] Server started …
[2020-05-03 18:34:53.289] [LOG] Connecting socket for: updatenotification
[2020-05-03 18:34:53.289] [LOG] Connecting socket for: calendar
[2020-05-03 18:34:53.290] [LOG] Starting node helper for: calendar
[2020-05-03 18:34:53.290] [LOG] Connecting socket for: newsfeed
[2020-05-03 18:34:53.291] [LOG] Starting module: newsfeed
[2020-05-03 18:34:53.291] [LOG] Sockets connected & modules started …
[2020-05-03 18:34:53.362] [LOG] Launching application.
[2020-05-03 18:34:55.366] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/chris.flekas%40gmail.com/public/basic.ics - Interval: 300000
[2020-05-03 18:34:55.395] [LOG] Create new news fetcher for url: http://feeds.news24.com/articles/News24/TopStories/rss - Interval: 300000
[2020-05-03 18:34:55.806] [ERROR] fatal: not a git repository (or any of the parent directories): .gitthank you very much for you help
-
its like this
var config= {
electronOptions:{fullscreen:false, x:1920, width: 600, height:800 }, // note the trailing comma (which means more to come
-
Thank you I will try it tomorrow.
-
If I hover over the Electron icon in the taskbar I can see it must be open somewhere but not visible on one of the screens.
information entered like this
var config = {electronOptions:{fullscreen:false, x:1920, width: 600, height:800 },
-
@Chrisflex i haven’t tried on windows… may boot over there today