MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MagicMirror stutters and doesn't run smoothly

    Scheduled Pinned Locked Moved Hardware
    25 Posts 3 Posters 12.7k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Do not disturb
      sdetweil @drx1984
      last edited by

      @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
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        drx1984 @sdetweil
        last edited by

        @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.

        mmm-3.PNG

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil
          last edited by

          @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) …

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @drx1984
            last edited by

            @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, …

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • D Offline
              drx1984 @sdetweil
              last edited by

              @sdetweil oh yes sry, I saw it, ok now I have adapted the Package.jason and it is now running.

              Did I do that correctly with the mm.cmd file so that the GPU is active? It still stutters or the clock module is also lagging behind :-(

              Do you speak German too?

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @drx1984
                last edited by

                @drx1984 I don’t speak German, but can use translators to read/reply.

                I mislead you, for Windows to set the env variable you have to use set

                set ELECTRON_ENABLE_GPU=1
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  drx1984 @sdetweil
                  last edited by

                  @sdetweil So you mean?
                  mmm-4.PNG

                  …unbelievable does it require so much power? of the stottort anyway.

                  the IntelNuc is powerful enough, right?
                  task.PNG

                  S bheplerB 2 Replies Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @drx1984
                    last edited by sdetweil

                    @drx1984 yes, set ELECTRON_ENABLE_GPU=1

                    powerful enough? I do not know…
                    drawing lots of things on the screen takes lots of power. the screen is very slow compared to the processor…

                    I don’t run either of those module.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      drx1984 @sdetweil
                      last edited by

                      @sdetweil yes certainly more than a Raspi 4 or 5.
                      then are the script and path correct?
                      I don’t notice any difference and it still stutters.

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @drx1984
                        last edited by sdetweil

                        @drx1984 yes, looks OK.

                        I would try to run one module at a time

                        to disable the other, add

                        disabled: true,
                        

                        after the module: line
                        so you don’t have to redo config.js

                        we don’t officially support Windows, so I don’t know if you have to do something else to enable gpu for electron.

                        you could try running under edge, at

                        http://localhost:8080
                        

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          drx1984 @sdetweil
                          last edited by

                          @sdetweil yes, I have already tried the exact same configuration under Linux. > unfortunately it stutters there too.
                          That’s why I thought I’d try it on Windows level.
                          I will probably install Ubuntu on the Intelnuc again >because Windwos is not official, as you say.

                          But I don’t think it will stutter anymore, unfortunately.

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @drx1984
                            last edited by

                            @drx1984 well, you tried before enabling the GPU on linux so I still think the best approach is to test with one module at a time… globe alone, rain alone. see what they do

                            then enable the other…

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • bheplerB Offline
                              bhepler Module Developer @drx1984
                              last edited by

                              @drx1984 said in MagicMirror stutters and doesn't run smoothly:

                              the IntelNuc is powerful enough, right?

                              I don’t think so. It’s the MMM-Globe module. It’s pure javascript and doesn’t make use of the graphics hardware at all. You might get away with turning off the MMM-Rain and running just the globe module. Might.

                              I really should get around to rewriting it.

                              D 1 Reply Last reply Reply Quote 0
                              • D Offline
                                drx1984 @bhepler
                                last edited by

                                @bhepler
                                Good morning, I have now deactivated MMM Rain. The Globle module is still shaking/stuttering a bit.

                                I have already set the parameter “export ELECTRON_ENABLE_GPU=1” in the mm.sh file.
                                But yes then the Globle module should also have GPU support.
                                Can you fix that?

                                bheplerB 1 Reply Last reply Reply Quote 0
                                • bheplerB Offline
                                  bhepler Module Developer @drx1984
                                  last edited by

                                  @drx1984 - Yeah, I can. It’s on the list of projects. I don’t know when I’ll get to it. For you I’ll bump it up the priority list a bit. But I don’t have an estimate.

                                  D 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    drx1984 @bhepler
                                    last edited by

                                    @bhepler said in MagicMirror stutters and doesn't run smoothly:

                                    @drx1984 - Yeah, I can. It’s on the list of projects. I don’t know when I’ll get to it. For you I’ll bump it up the priority list a bit. But I don’t have an estimate.

                                    Good morning,
                                    aha ok, thank you very much, yes that would be very good.

                                    1 Reply Last reply Reply Quote 0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    • 1
                                    • 2
                                    • 1 / 2
                                    • First post
                                      Last post
                                    Enjoying MagicMirror? Please consider a donation!
                                    MagicMirror created by Michael Teeuw.
                                    Forum managed by Sam, technical setup by Karsten.
                                    This forum is using NodeBB as its core | Contributors
                                    Contact | Privacy Policy