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
      last edited by rkorell

      Good Morning!
      after my last posting regarding display-stop with X11 (MMM-Universal-Pir) I’ve decided to try to get things to run with Wayland.
      Unfortunately this doesn’t work :-(
      I’ve disabled X11 / enabled Wayland in raspi-config and done a reboot.
      Magic Mirror than doesn’t come up - no surprise.

      issued

       pm2 stop MagicMirror
      
      [PM2] Applying action stopProcessId on app [MagicMirror](ids: [ 0 ])
      [PM2] [MagicMirror](0) ✓
      ┌────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name           │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
      ├────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0  │ MagicMirror    │ default     │ 2.31.0… │ fork    │ 0        │ 0      │ 0    │ stopped   │ 0%       │ 0b       │ pi       │ disabled │
      └────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      
      
      

      Then I’ve tried

      npm run start:wayland
      

      This exits with an error message from electron :

      pi@MagicMirrorPi5:~/MagicMirror $ npm run start:wayland
      
      > magicmirror@2.31.0-develop start:wayland
      > WAYLAND_DISPLAY="${WAYLAND_DISPLAY:=wayland-1}" ./node_modules/.bin/electron js/electron.js --enable-features=UseOzonePlatform --ozone-platform=wayland
      
      [2025-03-28 10:27:47.902] [LOG]   Starting MagicMirror: v2.31.0-develop 
      [2025-03-28 10:27:47.912] [LOG]   Loading config ... 
      [2025-03-28 10:27:47.913] [LOG]   config template file not exists, no envsubst 
      [2025-03-28 10:27:48.094] [INFO]  Checking config file /home/pi/MagicMirror/config/config.js ... 
      [2025-03-28 10:27:48.151] [INFO]  Your configuration file doesn't contain syntax errors :) 
      [2025-03-28 10:27:48.152] [INFO]  Checking modules structure configuration ... 
      [2025-03-28 10:27:48.193] [INFO]  Your modules structure configuration doesn't contain errors :) 
      [2025-03-28 10:27:48.194] [LOG]   Loading module helpers ... 
      [2025-03-28 10:27:48.195] [LOG]   No helper found for module: alert. 
      [2025-03-28 10:27:48.195] [LOG]   No helper found for module: MMM-MagicMover. 
      [2025-03-28 10:27:48.195] [LOG]   No helper found for module: clock. 
      [2025-03-28 10:27:48.196] [LOG]   No helper found for module: MMM-Profilepicture. 
      [2025-03-28 10:27:48.204] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.204] [LOG]   Module helper loaded: MMM-Logging 
      [2025-03-28 10:27:48.211] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.211] [LOG]   Module helper loaded: MMM-MoonPhase 
      [2025-03-28 10:27:48.211] [LOG]   No helper found for module: MMM-Globe. 
      [2025-03-28 10:27:48.211] [LOG]   No helper found for module: weather. 
      [2025-03-28 10:27:48.237] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.237] [LOG]   Module helper loaded: MMM-JsonValue 
      [2025-03-28 10:27:48.244] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.245] [LOG]   Module helper loaded: MMM-MyGarbage 
      [2025-03-28 10:27:48.245] [LOG]   No helper found for module: MMM-CalendarExt3Agenda. 
      [2025-03-28 10:27:48.328] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.328] [LOG]   Module helper loaded: MMM-Todoist 
      [2025-03-28 10:27:48.359] [LOG]   2025-03-28T10:27:48 <log> init module helper birthdaylist (/home/pi/MagicMirror/modules/birthdaylist/node_helper.js:15 Class.init) 
      [2025-03-28 10:27:48.359] [LOG]   Module helper loaded: birthdaylist 
      [2025-03-28 10:27:48.360] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.360] [LOG]   Module helper loaded: MMM-SystemMonitor 
      [2025-03-28 10:27:48.470] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.470] [LOG]   Check MagicMirror² version for node helper 'MMM-Strava' - Minimum version: 2.2.0 - Current version: 2.31.0-develop 
      [2025-03-28 10:27:48.470] [LOG]   Version is ok! 
      [2025-03-28 10:27:48.470] [LOG]   Module helper loaded: MMM-Strava 
      [2025-03-28 10:27:48.470] [LOG]   No helper found for module: MMM-EventHorizon. 
      [2025-03-28 10:27:48.501] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.501] [LOG]   Module helper loaded: MMM-FRITZ-Box-Callmonitor-py3 
      [2025-03-28 10:27:48.618] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.619] [LOG]   Module helper loaded: MMM-NowPlayingOnSpotify 
      [2025-03-28 10:27:48.619] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.619] [LOG]   Module helper loaded: MMM-SystemInfo 
      [2025-03-28 10:27:48.647] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.647] [LOG]   Module helper loaded: newsfeed 
      [2025-03-28 10:27:48.647] [LOG]   No helper found for module: MMM-UselessFacts. 
      [2025-03-28 10:27:48.667] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.667] [LOG]   Module helper loaded: MMM-Remote-Control 
      [2025-03-28 10:27:48.709] [LOG]   Initializing new module helper ... 
      [2025-03-28 10:27:48.709] [LOG]   Module helper loaded: calendar 
      [2025-03-28 10:27:48.710] [LOG]   All module helpers loaded. 
      [2025-03-28 10:27:48.713] [LOG]   Starting server on port 8080 ...  
      [2025-03-28 10:27:48.714] [WARN]  You're using a full whitelist configuration to allow for all IPs 
      [2025-03-28 10:27:49.037] [LOG]   Server started ... 
      [2025-03-28 10:27:49.037] [LOG]   Connecting socket for: MMM-Logging 
      [2025-03-28 10:27:49.038] [LOG]   2025-03-28T10:27:49 <log> Module helper started for MMM-Logging (/home/pi/MagicMirror/modules/MMM-Logging/node_helper.js:19 Class.start) 
      [2025-03-28 10:27:49.039] [LOG]   Connecting socket for: MMM-MoonPhase 
      [2025-03-28 10:27:49.039] [LOG]   Starting module helper: MMM-MoonPhase 
      [2025-03-28 10:27:49.044] [LOG]   Connecting socket for: MMM-JsonValue 
      [2025-03-28 10:27:49.045] [LOG]   Connecting socket for: MMM-MyGarbage 
      [2025-03-28 10:27:49.045] [LOG]   2025-03-28T10:27:49 <log> Starting node_helper for module: MMM-MyGarbage (/home/pi/MagicMirror/modules/MMM-MyGarbage/node_helper.js:9 Class.start) 
      [2025-03-28 10:27:49.046] [LOG]   Connecting socket for: MMM-Todoist 
      [2025-03-28 10:27:49.047] [LOG]   2025-03-28T10:27:49 <log> Starting node helper for: MMM-Todoist (/home/pi/MagicMirror/modules/MMM-Todoist/node_helper.js:19 Class.start) 
      [2025-03-28 10:27:49.047] [LOG]   Connecting socket for: birthdaylist 
      [2025-03-28 10:27:49.047] [LOG]   Connecting socket for: MMM-SystemMonitor 
      [2025-03-28 10:27:49.048] [LOG]   Starting module helper: MMM-SystemMonitor 
      [2025-03-28 10:27:49.048] [LOG]   Connecting socket for: MMM-Strava 
      [2025-03-28 10:27:49.050] [LOG]   2025-03-28T10:27:49 <log> Starting module helper: MMM-Strava (/home/pi/MagicMirror/modules/MMM-Strava/node_helper.js:47 Class.start) 
      [2025-03-28 10:27:49.051] [LOG]   Connecting socket for: MMM-FRITZ-Box-Callmonitor-py3 
      [2025-03-28 10:27:49.052] [LOG]   2025-03-28T10:27:49 <log> Starting module: MMM-FRITZ-Box-Callmonitor-py3 (/home/pi/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor-py3/node_helper.js:28 Class.start) 
      [2025-03-28 10:27:49.053] [LOG]   Connecting socket for: MMM-NowPlayingOnSpotify 
      [2025-03-28 10:27:49.053] [LOG]   Connecting socket for: MMM-SystemInfo 
      [2025-03-28 10:27:49.053] [LOG]   Starting node helper: MMM-SystemInfo 
      [2025-03-28 10:27:49.054] [LOG]   Connecting socket for: newsfeed 
      [2025-03-28 10:27:49.054] [LOG]   Starting node helper for: newsfeed 
      [2025-03-28 10:27:49.054] [LOG]   Connecting socket for: MMM-Remote-Control 
      [2025-03-28 10:27:49.055] [LOG]   Starting node helper for: MMM-Remote-Control 
      [2025-03-28 10:27:49.060] [LOG]   Connecting socket for: calendar 
      [2025-03-28 10:27:49.061] [LOG]   Starting node helper for: calendar 
      [2025-03-28 10:27:49.061] [LOG]   Sockets connected & modules started ... 
      [2025-03-28 10:27:49.346] [LOG]   Launching application. 
      [2025-03-28 10:27:49.594] [INFO]  System information:
      ### SYSTEM:   manufacturer: ; model: ; virtual: false
      ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.74+rpt-rpi-2712
      ### VERSIONS: electron: 32.2.7; used node: 20.18.1; installed node: 20.18.1; npm: 10.8.2; pm2: 5.4.3
      ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined 
      /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGTRAP
      

      pm2 knows that about MagicMirror:

      pi@MagicMirrorPi5:~/MagicMirror $ pm2 show MagicMirror
       Describing process with id 0 - name MagicMirror 
      ┌───────────────────┬──────────────────────────────────────────┐
      │ status            │ stopped                                  │
      │ name              │ MagicMirror                              │
      │ namespace         │ default                                  │
      │ version           │ 2.31.0-develop                           │
      │ restarts          │ 0                                        │
      │ uptime            │ 0                                        │
      │ script path       │ /home/pi/MagicMirror/installers/mm.sh    │
      │ script args       │ N/A                                      │
      │ error log path    │ /home/pi/.pm2/logs/MagicMirror-error.log │
      │ out log path      │ /home/pi/.pm2/logs/MagicMirror-out.log   │
      │ pid path          │ /home/pi/.pm2/pids/MagicMirror-0.pid     │
      │ interpreter       │ bash                                     │
      │ interpreter args  │ N/A                                      │
      │ script id         │ 0                                        │
      │ exec cwd          │ /home/pi                                 │
      │ exec mode         │ fork_mode                                │
      │ node.js version   │ N/A                                      │
      │ node env          │ N/A                                      │
      │ watch & reload    │ ✘                                        │
      │ unstable restarts │ 0                                        │
      │ created at        │ 2025-03-28T09:21:32.089Z                 │
      └───────────────────┴──────────────────────────────────────────┘
       Divergent env variables from local env 
      ┌────────────────┬─────────────────────────────────────┐
      │ PWD            │ /home/pi                            │
      │ SSH_CONNECTION │ 172.23.56.21 53109 172.23.56.157 22 │
      │ TERM           │ xterm                               │
      │ SHLVL          │ 2                                   │
      │ SSH_CLIENT     │ 172.23.56.21 53109 22               │
      │ OLDPWD         │ /home/pi/MagicMirror/splashscreen   │
      └────────────────┴─────────────────────────────────────┘
      
      

      What to do to get it fixed?
      is
      fixuppm2.sh a possible solution?

      Thanks for any hint!
      Ralf

      R 1 Reply 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
        • 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