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.
    • R Offline
      rkorell @rkorell
      last edited by rkorell

      @rkorell Addition:

      to my 100% surprise the mirror now works - but: extremely slow.
      it is started with “npm run start:x11” !!!
      (in a Wayland configuration !?)

      loginctl show-session 1 | grep "Desktop"
      Desktop=LXDE-pi-wayfire
      pi@MagicMirrorPi5:~ $ 
      
      0|MagicMir | > magicmirror@2.31.0-develop start
      0|MagicMir | > npm run start:x11
      0|MagicMir | 
      0|MagicMir | 
      0|MagicMir | > magicmirror@2.31.0-develop start:x11
      0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMir | 
      0|MagicMir | [2025-03-28 11:39:58.784] [LOG]   Starting MagicMirror: v2.31.0-develop 
      0|MagicMir | [2025-03-28 11:39:58.794] [LOG]   Loading config ... 
      0|MagicMir | [2025-03-28 11:39:58.795] [LOG]   config template file not exists, no envsubst 
      0|MagicMir | [2025-03-28 11:39:58.979] [INFO]  Checking config file /home/pi/MagicMirror/config/config.js ... 
      0|MagicMir | [2025-03-28 11:39:59.040] [INFO]  Your configuration file doesn't contain syntax errors :) 
      0|MagicMir | [2025-03-28 11:39:59.040] [INFO]  Checking modules structure configuration ... 
      0|MagicMir | [2025-03-28 11:39:59.077] [INFO]  Your modules structure configuration doesn't contain errors :) 
      0|MagicMir | [2025-03-28 11:39:59.078] [LOG]   Loading module helpers ... 
      0|MagicMir | [2025-03-28 11:39:59.079] [LOG]   No helper found for module: alert. 
      0|MagicMir | [2025-03-28 11:39:59.079] [LOG]   No helper found for module: MMM-MagicMover. 
      0|MagicMir | [2025-03-28 11:39:59.079] [LOG]   No helper found for module: clock. 
      0|MagicMir | [2025-03-28 11:39:59.079] [LOG]   No helper found for module: MMM-Profilepicture. 
      0|MagicMir | [2025-03-28 11:39:59.088] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.088] [LOG]   Module helper loaded: MMM-Logging 
      0|MagicMir | [2025-03-28 11:39:59.095] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.095] [LOG]   Module helper loaded: MMM-MoonPhase 
      0|MagicMir | [2025-03-28 11:39:59.095] [LOG]   No helper found for module: MMM-Globe. 
      0|MagicMir | [2025-03-28 11:39:59.095] [LOG]   No helper found for module: weather. 
      0|MagicMir | [2025-03-28 11:39:59.129] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.129] [LOG]   Module helper loaded: MMM-JsonValue 
      0|MagicMir | [2025-03-28 11:39:59.137] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.137] [LOG]   Module helper loaded: MMM-MyGarbage 
      0|MagicMir | [2025-03-28 11:39:59.137] [LOG]   No helper found for module: MMM-CalendarExt3Agenda. 
      0|MagicMir | [2025-03-28 11:39:59.213] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.213] [LOG]   Module helper loaded: MMM-Todoist 
      0|MagicMir | [2025-03-28 11:39:59.250] [LOG]   2025-03-28T11:39:59 <log> init module helper birthdaylist (/home/pi/MagicMirror/modules/birthdaylist/node_helper.js:15 Class.init) 
      0|MagicMir | [2025-03-28 11:39:59.250] [LOG]   Module helper loaded: birthdaylist 
      0|MagicMir | [2025-03-28 11:39:59.251] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.251] [LOG]   Module helper loaded: MMM-SystemMonitor 
      0|MagicMir | [2025-03-28 11:39:59.357] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.357] [LOG]   Check MagicMirror² version for node helper 'MMM-Strava' - Minimum version: 2.2.0 - Current version: 2.31.0-develop 
      0|MagicMir | [2025-03-28 11:39:59.358] [LOG]   Version is ok! 
      0|MagicMir | [2025-03-28 11:39:59.358] [LOG]   Module helper loaded: MMM-Strava 
      0|MagicMir | [2025-03-28 11:39:59.358] [LOG]   No helper found for module: MMM-EventHorizon. 
      0|MagicMir | [2025-03-28 11:39:59.389] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.389] [LOG]   Module helper loaded: MMM-FRITZ-Box-Callmonitor-py3 
      0|MagicMir | [2025-03-28 11:39:59.511] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.511] [LOG]   Module helper loaded: MMM-NowPlayingOnSpotify 
      0|MagicMir | [2025-03-28 11:39:59.512] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.512] [LOG]   Module helper loaded: MMM-SystemInfo 
      0|MagicMir | [2025-03-28 11:39:59.539] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.539] [LOG]   Module helper loaded: newsfeed 
      0|MagicMir | [2025-03-28 11:39:59.539] [LOG]   No helper found for module: MMM-UselessFacts. 
      0|MagicMir | [2025-03-28 11:39:59.559] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.559] [LOG]   Module helper loaded: MMM-Remote-Control 
      0|MagicMir | [2025-03-28 11:39:59.597] [LOG]   Initializing new module helper ... 
      0|MagicMir | [2025-03-28 11:39:59.597] [LOG]   Module helper loaded: calendar 
      0|MagicMir | [2025-03-28 11:39:59.598] [LOG]   All module helpers loaded. 
      0|MagicMir | [2025-03-28 11:39:59.601] [LOG]   Starting server on port 8080 ...  
      0|MagicMir | [2025-03-28 11:39:59.940] [LOG]   Server started ... 
      0|MagicMir | [2025-03-28 11:39:59.941] [LOG]   Connecting socket for: MMM-Logging 
      0|MagicMir | [2025-03-28 11:39:59.942] [LOG]   2025-03-28T11:39:59 <log> Module helper started for MMM-Logging (/home/pi/MagicMirror/modules/MMM-Logging/node_helper.js:19 Class.start) 
      0|MagicMir | [2025-03-28 11:39:59.942] [LOG]   Connecting socket for: MMM-MoonPhase 
      0|MagicMir | [2025-03-28 11:39:59.943] [LOG]   Starting module helper: MMM-MoonPhase 
      0|MagicMir | [2025-03-28 11:39:59.943] [LOG]   Connecting socket for: MMM-JsonValue 
      0|MagicMir | [2025-03-28 11:39:59.943] [LOG]   Connecting socket for: MMM-MyGarbage 
      0|MagicMir | [2025-03-28 11:39:59.944] [LOG]   2025-03-28T11:39:59 <log> Starting node_helper for module: MMM-MyGarbage (/home/pi/MagicMirror/modules/MMM-MyGarbage/node_helper.js:9 Class.start) 
      0|MagicMir | [2025-03-28 11:39:59.944] [LOG]   Connecting socket for: MMM-Todoist 
      0|MagicMir | [2025-03-28 11:39:59.946] [LOG]   2025-03-28T11:39:59 <log> Starting node helper for: MMM-Todoist (/home/pi/MagicMirror/modules/MMM-Todoist/node_helper.js:19 Class.start) 
      0|MagicMir | [2025-03-28 11:39:59.946] [LOG]   Connecting socket for: birthdaylist 
      0|MagicMir | [2025-03-28 11:39:59.947] [LOG]   Connecting socket for: MMM-SystemMonitor 
      0|MagicMir | [2025-03-28 11:39:59.947] [LOG]   Starting module helper: MMM-SystemMonitor 
      0|MagicMir | [2025-03-28 11:39:59.947] [LOG]   Connecting socket for: MMM-Strava 
      0|MagicMir | [2025-03-28 11:39:59.949] [LOG]   2025-03-28T11:39:59 <log> Starting module helper: MMM-Strava (/home/pi/MagicMirror/modules/MMM-Strava/node_helper.js:47 Class.start) 
      0|MagicMir | [2025-03-28 11:39:59.950] [LOG]   Connecting socket for: MMM-FRITZ-Box-Callmonitor-py3 
      0|MagicMir | [2025-03-28 11:39:59.951] [LOG]   2025-03-28T11:39:59 <log> Starting module: MMM-FRITZ-Box-Callmonitor-py3 (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor-py3/node_helper.js:28 Class.start) 
      0|MagicMir | [2025-03-28 11:39:59.952] [LOG]   Connecting socket for: MMM-NowPlayingOnSpotify 
      0|MagicMir | [2025-03-28 11:39:59.953] [LOG]   Connecting socket for: MMM-SystemInfo 
      0|MagicMir | [2025-03-28 11:39:59.953] [LOG]   Starting node helper: MMM-SystemInfo 
      0|MagicMir | [2025-03-28 11:39:59.953] [LOG]   Connecting socket for: newsfeed 
      0|MagicMir | [2025-03-28 11:39:59.954] [LOG]   Starting node helper for: newsfeed 
      0|MagicMir | [2025-03-28 11:39:59.954] [LOG]   Connecting socket for: MMM-Remote-Control 
      0|MagicMir | [2025-03-28 11:39:59.954] [LOG]   Starting node helper for: MMM-Remote-Control 
      0|MagicMir | [2025-03-28 11:39:59.959] [LOG]   Connecting socket for: calendar 
      0|MagicMir | [2025-03-28 11:39:59.959] [LOG]   Starting node helper for: calendar 
      0|MagicMir | [2025-03-28 11:39:59.960] [LOG]   Sockets connected & modules started ... 
      0|MagicMir | [2025-03-28 11:40:00.172] [LOG]   Launching application. 
      0|MagicMir | [2025-03-28 11:40:00.631] [INFO]  System information:
      0|MagicMir | ### SYSTEM:   manufacturer: ; model: ; virtual: false
      0|MagicMir | ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.74+rpt-rpi-2712
      0|MagicMir | ### VERSIONS: electron: 32.2.7; used node: 20.18.1; installed node: 20.18.1; npm: 10.8.2; pm2: 5.4.3
      0|MagicMir | ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined 
      
      

      Now I’m confused totally.

      can anybody please help me to understand, what happens here?

      THANKS!
      Ralf

      S 2 Replies Last reply Reply Quote 0
      • 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