Read the statement by Michael Teeuw here.
MM does not start full screen (pi Zero)
-
@ashishtank I know. i was talking to @jthewarrior7
-
Yes it is indeed chromium
-
@jthewarrior7 ok, if u close mm, pm2 stop 0.
then start chromium manually. (probably from terminal window), does it open to fill the screen?
-
I have started the
chromium-browser
, which opens in the same size as the magic mirror. -
@jthewarrior7 May be it is remembering the last opened size of browser ? can you maximize it then close and reopen it ? Is it open maximized ? Then try with Mirror script.
-
@ashishtank but the script (run-start.sh), requests maximize…
-
Chromium indeed remembers the size when I reopen it after increasing the window size, and also the kiosk mode of chromium opens in this size. Unfurtunately the MM still opens in its original size.
Is it maybe possible to start up the MM in the non-kiosk mode, then adjust the size/position and turn it back into kiosk?
-
@jthewarrior7 sure, edit the run-start.sh and remove ‘-kiosk’ from the parameters
chromium-browser -noerrdialogs -kiosk -start_maximized --disable-infobars --app=http://localhost:$port --ignore-certificate-errors-spki-list --ignore-ssl-errors --ignore-certificate-errors 2>/dev/null
hm… looking thru the flags supported, it says all need double dash in front… so, add a dash to -maximized
and -kioskhttps://peter.sh/experiments/chromium-command-line-switches/
-
@jthewarrior7 u can also try adding the window-size parm.
--window-size ⊗ Sets the initial window size. Provided as string in the format "800,600".
-
Thanks for these tips, I will try if that works and let you know :)