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

    Posts

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

      @sdetweil Pi 5 4GB

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil I ran the command and this is my output.

                   total       used      free      shared     buff/cache   available
      Mem:         3992        2153      210       550        2126         1839
      Swap:        511         30        481
      

      Is the output in MB? Doesn’t seem like it’s to the point where everything is so slow to respond.

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @atwist what did you end up doing? Or are you still without MM working?

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil said:

      npm run start:wayland

      Unfortunately, still no go.

      The whole system is feeling sluggish… I wounder if it’s an SD issue…?

      I have a new SD card arriving later today. I’ll image and reinstall MM and report back.

      If it’s still not working, I’ll provide the logs again.

      Cannot thank you enough, @sdetweil. You’re incredibly responsive and your support is greatly appreciated.

      Cheers!

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil

      I ran the first command and this is the output:

      ~ $ ps -ef | grep -v grep | grep -i -e xway -e labwc
      ferguson   66504       1  0 15:32 ?        00:00:01 /usr/bin/Xwayland -auth /home/ferguson/.Xauthority :0 -rootless -core -terminate 10 -listenfd 28 -listenfd 29 -displayfd 88 -wm 82
      

      When I run the last commands, it’s still not launching. The MM screen flickers up for a second and then goes away. This isn’t unique to the above steps.

      Logs look similar, if not the same:

      [306765:0406/201018.874374:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [306765:0406/201018.874626:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [306765:0406/201018.874711:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.
      /home/ferguson/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      [307094:0406/201032.033709:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [307094:0406/201032.033832:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [307094:0406/201032.033866:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.
      /home/ferguson/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      

      Strange indeed.

      posted in Troubleshooting
      S
      Scruffy
    • RE: Failed to Connect to Wayland Display

      @sdetweil

      I’m having a similar issue and I’ve been following this post but I still can’t resolve the error.

      [94483:0406/164800.222694:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [94483:0406/164800.222815:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [94483:0406/164800.222849:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.
      /home/ferguson/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      [94821:0406/164812.960910:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
      [94821:0406/164812.962540:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform
      [94821:0406/164812.962598:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.
      

      I’m currently using the following lines in mm.sh

      #!/bin/bash
      cd ~/MagicMirror
      
      if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc -l) -ne 0 ]; then
         # if WAYLAND_DISPLAYis set, use it, else set to -0
         export WAYLAND_DISPLAY=${WAYLAND_DISPLAY:=wayland-0}
         npm run start:wayland
      else
         npm run start:x11
      fi
      

      Running the PM2 shows the status is online.

      Any help would be greatly appreciated.

      Cheers!

      posted in Troubleshooting
      S
      Scruffy
    • 1 / 1