MagicMirrorOrg / MagicMirror

MagicMirror² is an open source modular smart mirror platform. With a growing list of installable modules, the MagicMirror² allows you to convert your hallway or bathroom mirror into your personal assistant.
http://magicmirror.builders
MIT License
19.69k stars 4.2k forks source link

Magicmirror doesnt start in fullscreen after rebooting #2972

Closed stormyark closed 1 year ago

stormyark commented 1 year ago

Magicmirror doesnt start in fullscreen after rebooting

I followed the introduction from link text to autorun magicmirror on startup, but after rebooting this is what i see:

alt text mm

rejas commented 1 year ago

Could you upload the image again?

stormyark commented 1 year ago

I reuploaded the image

sdetweil commented 1 year ago

I've seen this a number of times. usually electron gets confused from a prior app usage.

so do this, stop MagicMirror

cd ~
rm -rf .config/Electron

note the dot in front of config

this will erase the saved Electron info

start MagicMirror

stormyark commented 1 year ago

How do I stop magicmirror? If I press STRG+Q the magicmirror restarts :((

sdetweil commented 1 year ago

ctrl-m to minimize, and then on terminal window, pm2 stop all

sdetweil commented 1 year ago

pm2's job is to keep the app running

stormyark commented 1 year ago

mm

Now i looks like this :(

sdetweil commented 1 year ago

that looks like u are using VLC or some windowing system to access them system.

does it have a real display?

stormyark commented 1 year ago

I am running a linux mint on virtual box to test magicmirror mm

That are my display settings

sdetweil commented 1 year ago

electron appears to have some trouble getting the display size.

its not our code, so I don't know what the constraints are ... you might look thru the Electro github issues.

https://github.com/electron/electron/issues?q=is%3Aissue+is%3Aopen+fullscreen+ there are 35 open related to fullscreen

what is the size definition? 1024x768? 1920X1080?

stormyark commented 1 year ago

Ill go through the issues, thank you so much for your help.

My size defenition is 1920x1080 and in the electon.js I changed the width to 1920 and the high to 1080 so that magicmirror at leasts covers the screen

KristjanESPERANTO commented 1 year ago

@stormyark Just out of curiosity: Why are you using MagicMirror in a VM?

sdetweil commented 1 year ago

@stormyark you can change those settings thru config.js, without editing any of the source files.

that you were able to solve part of the problem w electron options confirms that electron is confused

stormyark commented 1 year ago

@KristjanESPERANTO I Just wanted to test it a bit before the raspi arrives

stormyark commented 1 year ago

@sdetweil could I possibly write a comand in the confog.js to run fullscreen?

sdetweil commented 1 year ago

@stormyark the default is fullscreen, in kiosk mode (no title bar, etc)

as I said it's 'fullscreen' that is confused in the vm

khassel commented 1 year ago

Now i looks like this :(

I think this is normal behaviour in VirtualBox. MagicMirror is running fullscreen in the VM, but you have still the Windows-VirtualBox-Window around, AFAIK you cannot control this from inside the VM.

You can click on the VM-Window and play around with Ctrl(Right)+C or Ctrl(Right)+F.

This is not an electron or magicmirror problem and on a pi fullscreen will work.