Read the statement by Michael Teeuw here.
MagicMirror stutters and doesn't run smoothly
-
@drx1984 swap lines 4 and 5. and you forgot the ‘export’ keyword on line 5
in Linux, by default environment variable are not passed to children processes
and yes the script was mine.
-
@sdetweil
aha ok, you mean like this:
?
-
@drx1984 yes…
then
pm2 status
to see what apps pm2 controls
thenpm2 restart xxx
where xxx is the number on the row, or the name on the row
examplespm2 restart 0
or
pm2 restart MagicMirror
-
@sdetweil OK, thanks, I’ll test it.
Question: Is it possible to switch on exactly the same parameters for the GPU with MagicMirror in Windows?
export ELECTRON_ENABLE_GPU=1 ? -
@drx1984 yes, you just don’t use the ‘export’ keyword on Windows
we don’t supply a .cmd file for Windows, and I don’t provide the install script or install pm2.
but its all the same functionally…
-
@sdetweil aha ok then to line 4:
ELECTRON_ENABLE_GPU=1 -
@drx1984 if you are running under windows native… you don’t need to run in lsr
if you ARE running under lsr, then u need the ‘export’just open cmd.exe and follow instructions in doc…
have to manually install nodejs on windows and git.then a windows mm.cmd file
@echo off cd %home%\MagicMirror ELECTRON_ENABLE_GPU=1 npm start
then execute
%home%\mm.cmd
-
@sdetweil what do you mean by LSR? what does that mean?
I have now done this:
Of course, with “npm run server” it runs in the browser.
but how do I do it natively on the computer itself? When I enter the command “npm run start” there is an error in the cmd, something with the display.
I wonder if I did everything correctly, as you described it. -
@drx1984 DISPLAY… you didn’t follow all the instructions …
see https://docs.magicmirror.builders/getting-started/installation.html#other-operating-systems
LSR (you can install the linux system runtime under windows too) …
-
@drx1984 said in MagicMirror stutters and doesn't run smoothly:
Of course, with “npm run server” it runs in the browser.
but how do I do it natively on the computer itself?i don’t understand your question…
MM is a browser app.
it runs in Electron, (default), Chromium, Firefox, Edge, Safari, Midori, …