MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. magicmikael
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Failed to Connect to Wayland Display

      @sdetweil, I ran a fresh install of the OS (64-bit). I would have assumed it would be all set for Wayland. Confirmed under raspi-config its “Wayland” but strangely

      echo $XDG_SESSION_TYPE
      

      returns nothing.

      I am thinking of going the pm2 route and trying to launch using your aforementioned script but I can’t imagine it would yield another result.

      posted in Troubleshooting
      M
      magicmikael
    • RE: Failed to Connect to Wayland Display

      @sdetweil, I am running into a similar occurrence but from your initial post I don’t have pm2 installed (as you can see below). Any advice would be appreciated. I have completely reimaged my Pi and retried the steps.

      I followed all of the standard manual install steps, have git and node and npm.

      This is what I am getting when attempting to run ‘node --run start’

      Starting server on port 8080 …
      [1877:0409/161415.143762:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [1877:0409/161415.143988:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [1877:0409/161415.144045:ERROR:ui/aura/env.cc:246] The platform failed to initialize. Exiting.
      /home/onthewall/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV

      System Information

      • SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.2; virtual: false; MM: v2.35.0
      • OS: platform: linux; distro: Debian GNU/Linux; release: 13; arch: arm64; kernel: 6.12.75+rpt-rpi-v8
      • VERSIONS: electron: 41.1.0; used node: 24.14.1; installed node: 24.14.1; npm: 11.11.0; pm2:
      • ENV: XDG_SESSION_TYPE: undefined; MM_CONFIG_FILE: undefined
        WAYLAND_DISPLAY: wayland-1; DISPLAY: undefined; ELECTRON_ENABLE_GPU: undefined
      • RAM: total: 3796.68 MB; free: 3304.59 MB; used: 492.10 MB
      • OTHERS: uptime: 1 minutes; timeZone: America/Los_Angeles
      posted in Troubleshooting
      M
      magicmikael
    • 1 / 1