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.

    Electron CPU usage

    Scheduled Pinned Locked Moved Troubleshooting
    247 Posts 46 Posters 596.3k Views 42 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.
    • cowboysdudeC Offline
      cowboysdude Module Developer @wtidwell
      last edited by

      @wtidwell Yeah I don’t use those plain black sd cards I buy the more expensive ones because of the issues.

      W 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @wtidwell
        last edited by

        @wtidwell said in Electron CPU usage:

        I have this otherone which is a SanDisk ultra 32gb card so maybe that does something.

        I looked to see what SD card is in my Pi but all I could come up with is the wrapper it came in. I bought one of those CanaKit’s with everything included. I don’t want to take my mirror down if I don’t have to, sorry.

        0_1503621710743_IMG_1996.JPG

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • W Offline
          wtidwell @cowboysdude
          last edited by

          @cowboysdude
          @Mykle1

          I’m beginning to think it’s the SD card. I did a clean install of Raspian on the SanDisk ultra which is the same class (u1) as the other card which was plain black and it seemed like it was a twinge better but not fantastic. Thanks for your input cowboysdude.

          I ordered a SanDisk extreme u3 which will get here tomorrow and try that and report back in. Don’t take your mirror down haha

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @wtidwell
            last edited by Mykle1

            @wtidwell said in Electron CPU usage:

            I’m beginning to think it’s the SD card.

            I hope that’s it. Then we can all laugh about it. Keep me posted.

            Just in case:
            https://www.raspberrypi.org/documentation/installation/installing-images/

            And:

            HOW TO FORMAT AN SD CARD AS FAT
            
            Note: If you're formatting an SD (or micro SD) card that has a capacity over 32GB (i.e. 64GB and above), then see the separate SDXC formatting instructions.
            
            WINDOWS
            
            For Windows users we recommend formatting your SD card using the SD Association's Formatting Tool, which can be downloaded from sdcard.org. You will need to set "FORMAT SIZE ADJUSTMENT" option to "ON" in the "Options" menu to ensure that the entire SD card volume is formatted, and not just a single partition. The updated size will be shown after the format is complete.
            
            MAC OS
            
            The SD Association's Formatting Tool is also available for Mac users, although the default OS X Disk Utility is also capable of formatting the entire disk. To do this, select the SD card volume and choose Erase with MS-DOS format.
            
            LINUX
            
            For Linux users we recommend gparted (or the command line version  parted). Norman Dunbar has written up instructions for Linux users.
            

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @wtidwell
              last edited by Mykle1

              @wtidwell

              Ok, this is the kit I bought back in January. I checked my amazon.com history.
              “You purchased this item on January 16, 2017”
              https://www.amazon.com/CanaKit-Raspberry-Complete-Starter-Kit/dp/B01C6Q2GSY/ref=sr_1_1?s=electronics&ie=UTF8&qid=1503626951&sr=1-1&keywords=32+GB+Micro+SD+Card+(Class+10)+pre-loaded+with+NOOBS

              So this is the SD card I have in my Pi3-B mirror. Recommended Micro SD Card pre-loaded with NOOBS

              0_1503627277699_71AWjYnh4pL.SL1500.jpg

              That is also where I installed my Raspbian Jessie from. You can install it from NOOBS

              Create a working config
              How to add modules

              W 1 Reply Last reply Reply Quote 0
              • W Offline
                wtidwell @Mykle1
                last edited by

                @Mykle1

                Well I just installed everything on a brand new SanDisk extreme u3 MicroSD. And it’s still using all my dang cpu and the transitions are still so laggy.

                I think I’ve tried everything at this point.

                Mykle1M 1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @wtidwell
                  last edited by

                  @wtidwell said in Electron CPU usage:

                  I think I’ve tried everything at this point.

                  Damn! :-(

                  Create a working config
                  How to add modules

                  W 1 Reply Last reply Reply Quote 0
                  • W Offline
                    wtidwell @Mykle1
                    last edited by

                    @Mykle1
                    Is there anything to do after using the install script? Am I missing some next step?

                    Mykle1M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @wtidwell
                      last edited by

                      @wtidwell said in Electron CPU usage:

                      Is there anything to do after using the install script? Am I missing some next step?

                      You could try this, but I don’t think it’s anything you’re doing or not doing. MM is running, it’s just not running well. I left you another suggestion in the other topic you posted in.

                      Updating your MagicMirror²

                      If you want to update your MagicMirror² to the latest version, use your terminal to go to your Magic Mirror folder and type the following command:

                      git pull && npm install
                      If you changed nothing more than the config or the modules, this should work without any problems. Type git status to see your changes, if there are any, you can reset them with git reset --hard. After that, git pull should be possible.

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        TiemenMoesker
                        last edited by

                        I am having the exact same problem. It is so frustrating.

                        W 1 Reply Last reply Reply Quote 0
                        • W Offline
                          wtidwell @TiemenMoesker
                          last edited by

                          @TiemenMoesker
                          I’m really sorry =/ I don’t have any better information for you, maybe you can fix yours. Mine is still busted…

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TiemenMoesker
                            last edited by

                            In details: My mm time is running fine until an animation happens, the time freezes and the choppy animation accurs. When the animation is done the time starts again and it speeds up to the point it should be. Also I noticed that every time the animation happens the CPU jumps to 90+% usage. The pi itself also goes extremely hot.

                            I bought my raspberry from coolblue.nl 4 days ago.

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

                              Have you guys tried allocating more memory to the GPU? I think the default is like 64MB or something. I bumped mine to 128MB a while ago.

                              One other dumb suggestion: Did you remove the nonessential stuff from your Raspian installs? The Minecraft, Wolfram Alpha, etc. as per the complete setup tutorial?

                              W 1 Reply Last reply Reply Quote 0
                              • T Offline
                                TiemenMoesker
                                last edited by

                                Actually the only thing I did was. Run the auto install command of magic mirror 2 and pm2. That’s it.

                                bheplerB 1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wtidwell @bhepler
                                  last edited by

                                  @bhepler
                                  I’ve done that, both ways giving the gpu more ram and less ram and that doesn’t seem to solve it for me.

                                  I did remove all the excess on other installs I did but there’s no other processes running anyway to take away cpu time.

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

                                    @TiemenMoesker Okay, not a problem. This may not free up resources, but it will remove some of the unused programs from the default Raspian image. This is more important with smaller SD cards where space is at a premium.

                                    sudo apt-get remove --purge idle3 java-common libreoffice* minecraft-pi scratch nuscratch penguinspuzzle python-minecraftpi python3-minecraftpi smartsim sonic-pi wolfram-engine
                                    

                                    The second option is to increase the amount of memory that is dedicated to the graphics chip on the pi. If you enter sudo raspi-config from the command line, you’ll get a basic configuration window. If you’re actually on the pi, you can go to the main menu ->sudo Preferences and one of the tabs in the pi configuration is the GPU memory allocation. The default is 64MB IIRC. You can bump that up to 128 or 256 and see if it helps with your animation issue.

                                    Note: It seems like these suggestions don’t help anyway. Nuts.

                                    T 1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TiemenMoesker @bhepler
                                      last edited by

                                      @bhepler

                                      Your “Note” says it all…😔

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TiemenMoesker
                                        last edited by

                                        Fresh manual installation of Raspbarian. Running the magic mirror auto install now.

                                        Everything seems fine, but I do get this:

                                        //npm WARN grunt-stylelint@0.9.0 requires a peer of stylelint@^8.0.0 but none was installed.
                                        npm WARN stylelint-config-standard@17.0.0 requires a peer of stylelint@^8.0.0 but none was installed.
                                        npm WARN stylelint-config-recommended@1.0.0 requires a peer of stylelint@^8.0.0 but none was installed.
                                        

                                        Is this a (or THE) problem?

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          djsunrise19
                                          last edited by djsunrise19

                                          Same here. I have / had this problem since months. Today I’ve updated my mirror (because it says, there is an update). After this my mirror isn’t usable anymore. The problem is way heavier : I tried very much, but no effects. With MMv1 everything was smooth. I have 2x Raspi 3 - same behaviour.

                                          • Tried Raspi 2 and 3
                                          • deactivated all modules
                                          • fresh installations a few times
                                          • different (sandisk) sd cards
                                          • increase gpu amount to 128/256MB

                                          In MMv2 something changes with the CSS transitions. But I don’t know if that is the problem.

                                          0_1504026521820_592713f3-15b2-4335-9eb6-32cc9655abba-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • T Offline
                                            TiemenMoesker
                                            last edited by

                                            For now I wish to know if it’s a problem with the PI or the installation / SD. Because if it’s a problem with the PI, at this moment, I can get it replaced for free or get my money back. My main reason buying the PI was for this project and to kill some time (vacation).

                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 12
                                            • 13
                                            • 3 / 13
                                            • 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