@Scruffy I actually never resolved my issue either. But, my system was very sluggish as well.
Read the statement by Michael Teeuw here.
Posts
-
RE: Failed to Connect to Wayland Display
-
RE: Failed to Connect to Wayland Display
@sdetweil Unfortunately, it still doesn’t start after reboot. It does continue to work if i start it manually.
Log file
|MagicMir | [2991:0228/201716.146315:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:282] Failed to initialize Wayland platform
0|MagicMir | [2991:0228/201716.146344:ERROR:ui/aura/env.cc:257] The platform failed to initialize. Exiting.
0|MagicMir | /home/twist/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
0|MagicMir | [3075:0228/201721.692197:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2) -
RE: Failed to Connect to Wayland Display
@sdetweil the file you are referring to is in the installers folder. Correct?
It does start the interface with your suggestions. Is it able to start it in reboot since it no longer does?
-
RE: Failed to Connect to Wayland Display
@sdetweil thanks. It shows that the process started successfully but it doesn’t appear on the screen.
-
RE: Failed to Connect to Wayland Display
weird. Any suggestionon what to do?
-
RE: Failed to Connect to Wayland Display
Yes it does:
if [ $(ps -ef | grep -v grep | grep -i -e xway -e labwc | wc # if WAYLAND_DISPLAYis set, use it, else set to -0 export WAYLAND_DISPLAY=${WAYLAND_DISPLAY:=wayland-0} npm run start:wayland else DISPLAY=:0 npm start fi -
RE: Failed to Connect to Wayland Display
@sdetweil ahh okay. I do have that file. What am I looking for in it though.?
-
RE: Failed to Connect to Wayland Display
@chrisfr1976 Thanks for the reply. Sorry but how would i do that?
-
RE: Failed to Connect to Wayland Display
I don’t remember how i installed it but I don’t have MagicMirro.sh so i must not have used your script.
-
RE: Failed to Connect to Wayland Display
Do you happen to have any ideas to fix it moving forward? Thanks!
-
RE: Failed to Connect to Wayland Display
Here is that information.
System Information
- SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.5; virtual: false; MM: 2.34.0
- OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.47+rpt-rpi-v8
- VERSIONS: electron: 39.2.7; used node: 22.21.1; installed node: 22.21.1; npm: 10.9.4; pm2: 6.0.14
- ENV: XDG_SESSION_TYPE: x11; MM_CONFIG_FILE: undefined
WAYLAND_DISPLAY: undefined; DISPLAY: :0; ELECTRON_ENABLE_GPU: undefined - RAM: total: 3796.86 MB; free: 2669.80 MB; used: 1127.06 MB
- OTHERS: uptime: 3427 minutes; timeZone: America/Chicago
-
RE: Failed to Connect to Wayland Display
Yes, that starts everything and gets me running like normal. Thanks!
So how do I get it to run on reboot moving forward?
-
RE: Failed to Connect to Wayland Display
I updated that file but the error still exists.
0|MagicMirror | [3709:0102/125357.807528:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
0|MagicMirror | [3709:0102/125357.807690:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:282] Failed to initialize Wayland platform
0|MagicMirror | [3709:0102/125357.807720:ERROR:ui/aura/env.cc:257] The platform failed to initialize. Exiting.
0|MagicMirror | /home/twist/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV -
RE: Failed to Connect to Wayland Display
Yes, pm2.
Here is that file.
#!/bin/bash
This file is still here to keep PM2 working on older installations.
cd ~/MagicMirror
DISPLAY=:0 npm start -
Failed to Connect to Wayland Display
I upgraded my MagicMirror and now the logs are showing the below errors:
ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
ERROR:ui/ozone/platform/wayland/ozone_playform_wayland.cc:202] Failed to initalize Wayland platform
ERROR:ui/aura/env.cc:257] the platform failed to initalize. Exiting.How do i resolve this?
-
RE: MMM-Chores - Manage and keep track of your household Chores
Is it possible to have a recurring weekday only task? Just Monday-Friday?
-
RE: MMM-Universal-Pir - Desparately seeking right command
I am trying to get this to work after no longer being able to use MMM-Pir. When the countdown hits 0 the screen goes black like it should . But, then it immediately turns back on even without motion.
What am i missing?
I’m using the DISPLAY=0.0 xrandr --output HDMI-2 --off
It works fine from the command line but not within MM.
-
RE: Version 2.31.0 Error With Upgrade Scripts
I didn’t think i ran it with sudo but apparently i did. Thank you for your help!!
I did try the test first and it didn’t show errors. But, you got it working!