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 lagging

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    16 Posts 3 Posters 3.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 Offline
      sdetweil @1a2a3a
      last edited by

      @1a2a3a pi5 on the latest bookworm uses Wayland for its display manager.

      you can use the raspi-config app to set it back to X11…

      others have reported slower UI preformance

      also, we change the GPU setting to OFF by default, as this reduced unnecessary errors in most situations… as the drivers were not configured in the system either.

      you can enable it as s test

      add

      export ELECTRON_ENABLE_GPU=1
      

      to the script used to launch npm start
      before the npm start line

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil it was working smoothly previously using the same pi. ill try to enable the gpu but where do i insert that line?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @1a2a3a
          last edited by

          @1a2a3a in the script used to launch MM

          if you are using my installer, and pm2 that is

          ~/MagicMirror/installers/mm.sh
          

          we changed electron versions too, and well, you never know

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil hmm not sure if its a placebo effect, but seems to be slightly better but still jerky, not sure. before the update, the marquee effect of ext3 and googlephoto transitioning was smooth. now its like uh… jerky transitioning…

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @1a2a3a
              last edited by

              @1a2a3a and u restarted MM after changing the script…

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil yes i did, definitely…

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @1a2a3a
                  last edited by

                  @1a2a3a can u look and see any new gpu related errors

                  pm2 logs --lines=50
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil got this when i enter the command inside mm directory.

                    0|MagicMir |   source: undefined,
                    0|MagicMir |   lineno: undefined,
                    0|MagicMir |   colno: undefined
                    0|MagicMir | }
                    0|MagicMir | [11.01.2024 21:44.04.187] [ERROR] Image loading fails. Check your network.: https://lh3.googleusercontent.com/lr/AAJ1LKd3z4DnSUe5L1BE7e-FC_pskhLh8qgzww-omvYwOFtBiGVsKpqDYmvKZD0mxqWdY3fN1xmlcGXasptkJvlKlFku4fXyNJ_3sBeVfQr1FiqrLUBKfwL24EwZV4rEw69eSU9MapZBunE_Ey5NP8f00QRRpTp3epZkUmknUrFsMZEqtLeXICD_ekNaqEVF_E74TdBaLbdDC4e_jPzNiTKft13TD5YlyWFbcqmRFUCIlgTa4xov-PRt0MExDbZ6kKUMwzsG9RXN2J7h45K5YLKVafTzNkv0fkV-12keW9AZ3eBV7qaGfQOlMGQ-JcKqtwK0DEMizJfRjRfZHXxRLR-OWwXNuJ_otSKRWP5wQcExGkSxxypDt1oQihiRbBznDygTIFVFqYgQtk6rrD_po8MHsSyPYiQvwuvVqBzkpSc_1OJuMC5LYUL23lkQXx468oUDNmnTUQzjrM4KnSOXUV7vWnGpA4HMQIBq0tluQw-9-3nH97a_8X3AwZ4QllXWc9Xo6vaiItASDizjOx5REF7nrQ9sODXqbxgvQwaG4JJN12Mv_hQbMD4epKiLzIALs2wN1N-Z6U9VGNuikHrgJ-dg7dyMdj0uJL_vZthfX7CFwHZ8iNxLIOkeMW3lzDSTKpDJnSmFyXi289wVGnGZj-huCGXY4YbMHbdhLKPP8uSsOk6DYkWYkTn2VS8g9IKncvWkDvVt2ASQMrlZ2-1Eh2IuA-SE0gslF9_2Ck0u0ZtYk1V6Ea_5VvDAZbAn6rEfBFDJ6Q5945ngkG29NvkLm2fIiN_58Lb8DwDtD9lq7iIhkLRDI_eNfqIGN7DKEA3fjS2kxDPmS4-vtWgNe2K_l4iZJLSw2oQeaQNR-271qPLzg5cx39KhS0rDLiFqwNzYVWW2Inxj2T1VUkGAnn6GeY5Bj2DcnyeWcN0ry2qy5FpBKnEFq7DCPbViE2-RqU_zr7YiiUh9zUx2SBgubegJjC0_duDNdJQ2TReTfCMJ5thj6h-Ty-DeBTzOyEOHbhJLcwrPVP19Hru12RLrCIP-rQ4ijpSR8MJC=w1080-h1920
                    0|MagicMir | /home/hsa/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                    0|MagicMir | [2314:0111/215933.525635:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.525875:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.525982:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.526092:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.526216:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.526332:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.526438:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.528604:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.528735:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.528835:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.528930:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.529025:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.529123:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [2314:0111/215933.529221:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | Warning: vkCreateInstance: Found no drivers!
                    0|MagicMir | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                    0|MagicMir |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                    0|MagicMir |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                    0|MagicMir |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                    0|MagicMir |     at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                    0|MagicMir |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
                    0|MagicMir |
                    0|MagicMir | [4558:0111/220928.037273:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.037465:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.037555:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.037643:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.037720:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.037801:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.037880:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.039683:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.039825:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.039920:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.040015:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.042133:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.042266:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | [4558:0111/220928.042352:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                    0|MagicMir | Warning: vkCreateInstance: Found no drivers!
                    0|MagicMir | Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                    0|MagicMir |     at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                    0|MagicMir |     at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                    0|MagicMir |     at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                    0|MagicMir |     at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                    0|MagicMir |     at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
                    0|MagicMir |
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @1a2a3a
                      last edited by

                      @1a2a3a Oh such joy… not

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        @sdetweil i remove gpu and it doesnt seems to have error.
                        so i ran npm start again seems to run fine but showing this

                        [6141:0111/221958.106148:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        [6141:0111/221958.106492:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        [6141:0111/221958.106652:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        [6141:0111/221958.106803:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        [6141:0111/221958.106975:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        [6141:0111/221958.107162:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        [6141:0111/221958.107343:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        [6141:0111/221958.110017:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        [6141:0111/221958.110444:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • 1 Offline
                          1a2a3a
                          last edited by

                          so i assumed all is in good order ya? the reason for the supposed jerky lag is due to new mm version not playing well with pi 5 wayland?

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @1a2a3a
                            last edited by sdetweil

                            @1a2a3a electron not playing well with Wayland
                            we don’t know about either

                            I had another report that the wallpaper snow was jerky… thats all done in CSS

                            went back to X11 and it was fine

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 bheplerB 2 Replies Last reply Reply Quote 0
                            • 1 Offline
                              1a2a3a @sdetweil
                              last edited by

                              @sdetweil ok boss. Will just leave it as it is and wait for a future update. Don’t think I’ll go back to x11 given the amount of time spent configuring wayland crontab to schedule on off :D

                              Thanks anyway!

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

                                @sdetweil - Do you think there would be any benefit to running the mirror in server only mode and using Chromium or Firefox in kiosk mode? It may succeed where Electron fails.

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @bhepler
                                  last edited by sdetweil

                                  @bhepler maybe. it’s a thing to try

                                  pm2 stop all
                                  npm run server

                                  and use your browser to localhost:mm_ip_port
                                  turning off the title bar etc is a task for the user!!!

                                  I have a setup to do this automatically using npm start if it works.

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  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 / 1
                                  • 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