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.

    My new MagicMirror will not start with Wayland?

    Scheduled Pinned Locked Moved Solved Troubleshooting
    17 Posts 2 Posters 3.4k Views 2 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 @rkorell
      last edited by

      @rkorell electron saves a bunch of info , you may need to erase that to allow it to save different info
      stop MagicMirror

      rm -rf ~/.config/Electron
      

      note the dot in front of config

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R 2 Replies Last reply Reply Quote 0
      • R Offline
        rkorell @sdetweil
        last edited by

        @sdetweil Thanks!

        overall it doesn’t work for me :-(
        system is so slow that even editing config.js took 8 seconds to load the tiny file from pi to Laptop…
        So I’ve re-configured to X11 …
        NO idea what happened but unusable with wayland.
        In addition the target of whole szenario - to get MMM-Pir working without error message is not reached because with wayland, too an error is produced …
        So I will stay with X11 and try MMM-Pir-universal …
        (which is kinda unreliable…)

        Warm regards,
        Ralf

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

          @rkorell note that npm start issues npm run start:x11

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil said in My new MagicMirror will not start with Wayland?:

            note that npm start issues npm run start:x11

            ? can you kindly please eloborate?
            Didn’t get you, sorry!

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

              @sdetweil said in My new MagicMirror will not start with Wayland?:

              rm -rf ~/.config/Electron

              quick question: will this command help, anyway to get “performance” fixed?
              Background: Since running on Pi5 / bookworm the mirror has “problems” on reboot.
              Module load is extremely slow (minutes!).
              A “pm2 reload MagicMirror” after reboot leads to way faster module loadings.

              Thanks,
              Ralf

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

                @rkorell said in My new MagicMirror will not start with Wayland?:

                quick question: will this command help, anyway to get “performance” fixed?

                no idea

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @rkorell said in My new MagicMirror will not start with Wayland?:

                  Didn’t get you, sorry!

                  from package.json
                  these are the command types you can issue npm run …

                                  "start": "npm run start:x11",
                                  "start:dev": "npm run start -- dev",
                                  "start:wayland": "WAYLAND_DISPLAY=\"${WAYLAND_DISPLAY:=wayland-1}\" ./node_modules/.bin/electron js/electron.js --enable-features=UseOzonePlatform --ozone-platform=wayland",
                                  "start:wayland:dev": "npm run start:wayland -- dev",
                                  "start:windows": ".\\node_modules\\.bin\\electron js\\electron.js",
                                  "start:windows:dev": "npm run start:windows -- dev",
                                  "start:x11": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
                                  "start:x11:dev": "npm run start -- dev",
                  

                  if you do npm start or npm run start
                  the command is “npm run start:x11”

                  which is the “same” as it was before release 2.30.0

                  I posted this in
                  https://forum.magicmirror.builders/topic/19269/new-magicmirror-start-options-in-version-2-30-0

                  so at least you don’t have to edit package.json and break updates…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @rkorell I can ‘fix’ MagicMirror.sh to detect wayland/labwc and use

                    npm  run start:wayland
                    

                    and if not

                    npm run start
                    

                    switching so it WORKS seems like it takes some drastic changes…(erase electron config)…

                    I don’t know what is in the electron config folder, so can’t tell if there is a way to know you switched since last run…

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Reply Quote 0
                    • R rkorell has marked this topic as solved on
                    • R Offline
                      rkorell @sdetweil
                      last edited by

                      @sdetweil As I wrote initially “npm run start:wayland” doesn’t work …
                      (despite wayland configured).
                      And the “stored” auto-start option npm run start:x11 DOES work - for whatever reason.

                      VNC was really sluggish on this, performance a nightmare so - see above marked as “solution” I switched back to x11 and all is working fine.

                      In the meantime I’ve also managed to get MMM-Pir to work by idenitfying and correcting two errors in Bugsounet’s code …

                      Warm regards,
                      Ralf

                      S 2 Replies Last reply Reply Quote 1
                      • S Do not disturb
                        sdetweil @rkorell
                        last edited by

                        @rkorell great work!

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @rkorell i am thinking of pushing a change to mm.sh to run with what is detected

                          this is for new installs, i wont change existing on update

                          updated, release on next rev

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @sdetweil said in My new MagicMirror will not start with Wayland?:

                            @rkorell great work!

                            Ohhh - this from you!
                            Makes me proud.
                            Thanks!

                            Ralf

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

                              @rkorell my updated mm.sh fails when trying wayland, some fontconfig problem
                              npm run start:wayland

                              apt upgrade /full-upgrade fail… oh so much fun…

                              but npm start works!?

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

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

                                @sdetweil said in

                                but npm start works!?
                                Not tried.
                                Leave it currently, as is.
                                Via your install script provided autostart calls npm run start:x11 - which works fine.

                                Regards,
                                Ralf

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

                                  @rkorell yeh, i put it back

                                  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