<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Failed to Connect to Wayland Display]]></title><description><![CDATA[<p dir="auto">I upgraded my MagicMirror and now the logs are showing the below errors:</p>
<p dir="auto">ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)<br />
ERROR:ui/ozone/platform/wayland/ozone_playform_wayland.cc:202] Failed to initalize Wayland platform<br />
ERROR:ui/aura/env.cc:257] the platform failed to initalize.  Exiting.</p>
<p dir="auto">How do i resolve this?</p>
]]></description><link>https://forum.magicmirror.builders/topic/20033/failed-to-connect-to-wayland-display</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 08:17:38 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/20033.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Jan 2026 13:54:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Sat, 11 Apr 2026 14:33:13 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> <a href="/post/130720">said</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a> I strongly recommend using some backup/restore mechanism,<br />
please see my backup/restore scripts for one approach.</p>
<p dir="auto">they also support versioning, so you can tell one set of changes from another and can go back or forward…<br />
and move between systems. too…</p>
<p dir="auto"><a href="https://github.com/sdetweil/MagicMirror-backup-restore.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror-backup-restore.git</a></p>
<p dir="auto">and I also support the install/upgrade scripts, mentioned in the MM doc, Alternative install section</p>
</blockquote>
<p dir="auto">OK perfect! I’ll run through this process next time this occurs. Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/post/130762</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130762</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Sat, 11 Apr 2026 14:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Fri, 10 Apr 2026 11:49:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/magicmikael" aria-label="Profile: magicmikael">@<bdi>magicmikael</bdi></a> if you do env</p>
<p dir="auto">Do you see wayland_display in the list?</p>
<p dir="auto">The script sets WAYLAND_DISPLAY if not already set</p>
<p dir="auto">Here is the script , make sure to make it executable<br />
chmod +x <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a></p>
<pre><code>#!/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
   DISPLAY=:0 npm run start:x11
fi 
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/130754</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130754</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 10 Apr 2026 11:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Fri, 10 Apr 2026 03:51:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>, 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</p>
<pre><code>echo $XDG_SESSION_TYPE
</code></pre>
<p dir="auto">returns nothing.</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.magicmirror.builders/post/130753</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130753</guid><dc:creator><![CDATA[magicmikael]]></dc:creator><pubDate>Fri, 10 Apr 2026 03:51:44 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Thu, 09 Apr 2026 23:38:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/magicmikael" aria-label="Profile: magicmikael">@<bdi>magicmikael</bdi></a> as we said in the readme notes on the release</p>
<p dir="auto">We changed<br />
npm start/node —run start</p>
<p dir="auto">To launch for Wayland compositor</p>
<p dir="auto">If you are still on x11<br />
You need to use</p>
<p dir="auto">npm run start:x11<br />
Or<br />
node —run start:x11</p>
]]></description><link>https://forum.magicmirror.builders/post/130751</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130751</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 09 Apr 2026 23:38:06 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Thu, 09 Apr 2026 23:21:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>, 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.</p>
<p dir="auto">I followed all of the standard manual install steps, have git and node and npm.</p>
<p dir="auto">This is what I am getting when attempting to run ‘node --run start’</p>
<p dir="auto">Starting server on port 8080 …<br />
[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)<br />
[1877:0409/161415.143988:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:281] Failed to initialize Wayland platform<br />
[1877:0409/161415.144045:ERROR:ui/aura/env.cc:246] The platform failed to initialize.  Exiting.<br />
/home/onthewall/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV</p>
<h4>System Information</h4>
<ul>
<li>SYSTEM:   manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 4 Model B Rev 1.2; virtual: false; MM: v2.35.0</li>
<li>OS:       platform: linux; distro: Debian GNU/Linux; release: 13; arch: arm64; kernel: 6.12.75+rpt-rpi-v8</li>
<li>VERSIONS: electron: 41.1.0; used node: 24.14.1; installed node: 24.14.1; npm: 11.11.0; pm2:</li>
<li>ENV:      XDG_SESSION_TYPE: undefined; MM_CONFIG_FILE: undefined<br />
WAYLAND_DISPLAY:  wayland-1; DISPLAY: undefined; ELECTRON_ENABLE_GPU: undefined</li>
<li>RAM:      total: 3796.68 MB; free: 3304.59 MB; used: 492.10 MB</li>
<li>OTHERS:   uptime: 1 minutes; timeZone: America/Los_Angeles</li>
</ul>
]]></description><link>https://forum.magicmirror.builders/post/130750</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130750</guid><dc:creator><![CDATA[magicmikael]]></dc:creator><pubDate>Thu, 09 Apr 2026 23:21:46 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Thu, 09 Apr 2026 00:13:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a> I strongly recommend using some backup/restore mechanism,<br />
please see my backup/restore scripts for one approach.</p>
<p dir="auto">they also support versioning, so you can tell one set of changes from another and can go back or forward…<br />
and move between systems. too…</p>
<p dir="auto"><a href="https://github.com/sdetweil/MagicMirror-backup-restore.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror-backup-restore.git</a></p>
<p dir="auto">and I also support the install/upgrade scripts, mentioned in the MM doc, Alternative install section</p>
]]></description><link>https://forum.magicmirror.builders/post/130720</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130720</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 09 Apr 2026 00:13:51 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Wed, 08 Apr 2026 18:25:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a> thanks.</p>
]]></description><link>https://forum.magicmirror.builders/post/130718</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130718</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 08 Apr 2026 18:25:18 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Wed, 08 Apr 2026 16:19:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I’m still very new to Linux/Pi so I was concerned I may have corrupted my original config file(s) with all the changes/modifications I was performing when trying to get the original system back up and running.</p>
<p dir="auto">I copied over the old config.js which has all my module settings.</p>
<p dir="auto">I installed MM from scratch along with all the modules. I then brought up both config.js files in Geany and copied and pasted over my configurations.</p>
<p dir="auto">Not the cleanest of methods but it worked lol.</p>
]]></description><link>https://forum.magicmirror.builders/post/130717</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130717</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Wed, 08 Apr 2026 16:19:26 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Wed, 08 Apr 2026 16:03:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a> awesome!!!  Thanks for the feedback!</p>
<p dir="auto">How did you migrate your config ?<br />
Just interested in how people do things</p>
]]></description><link>https://forum.magicmirror.builders/post/130716</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130716</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 08 Apr 2026 16:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Wed, 08 Apr 2026 15:29:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> UPDADE:</p>
<p dir="auto">I have MagicMirror back up and running using a new SD card. I’m guessing the old one died for whatever reason since the whole system was becoming extremely sluggish to the point it would take 10 seconds between input commands triggering.</p>
<p dir="auto">Glad to be back up and running!</p>
<p dir="auto">Thank you again for all your help troubleshooting and support us!</p>
<p dir="auto">Cheers!</p>
]]></description><link>https://forum.magicmirror.builders/post/130715</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130715</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Wed, 08 Apr 2026 15:29:41 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 15:31:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Pi 5 4GB</p>
]]></description><link>https://forum.magicmirror.builders/post/130707</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130707</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Tue, 07 Apr 2026 15:31:38 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 15:23:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a> pi4, 4 gig?</p>
]]></description><link>https://forum.magicmirror.builders/post/130706</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130706</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 07 Apr 2026 15:23:27 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 15:05:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I ran the command and this is my output.</p>
<pre><code>             total       used      free      shared     buff/cache   available
Mem:         3992        2153      210       550        2126         1839
Swap:        511         30        481
</code></pre>
<p dir="auto">Is the output in MB? Doesn’t seem like it’s to the point where everything is so slow to respond.</p>
]]></description><link>https://forum.magicmirror.builders/post/130705</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130705</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Tue, 07 Apr 2026 15:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 15:01:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/atwist" aria-label="Profile: atwist">@<bdi>atwist</bdi></a> what did you end up doing? Or are you still without MM working?</p>
]]></description><link>https://forum.magicmirror.builders/post/130704</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130704</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Tue, 07 Apr 2026 15:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 14:41:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/atwist" aria-label="Profile: atwist">@<bdi>atwist</bdi></a> the latest PI OS is larger than the previous versions…</p>
<p dir="auto">leading to more swapping. This can affect performance because of the speed of the SD card.</p>
<p dir="auto">free -m</p>
<p dir="auto">will tell you how much memory and swap space you are using.</p>
]]></description><link>https://forum.magicmirror.builders/post/130703</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130703</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 07 Apr 2026 14:41:15 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 13:59:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a> I actually never resolved my issue either.  But, my system was very sluggish as well.</p>
]]></description><link>https://forum.magicmirror.builders/post/130702</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130702</guid><dc:creator><![CDATA[atwist]]></dc:creator><pubDate>Tue, 07 Apr 2026 13:59:53 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 13:56:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a> use my backup/restore scripts to save and restore your MagicMirror config and modules list</p>
<p dir="auto"><a href="https://github.com/sdetweil/MagicMirror-backup-restore" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror-backup-restore</a><br />
Backup, copy off backup folder, tiny size</p>
<p dir="auto">Install new MagicMirror and copy back folder and restore</p>
]]></description><link>https://forum.magicmirror.builders/post/130701</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130701</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 07 Apr 2026 13:56:54 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 13:53:13 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> <a href="/post/130691">said</a>:</p>
<p dir="auto">npm run start:wayland</p>
</blockquote>
<p dir="auto">Unfortunately, still no go.</p>
<p dir="auto">The whole system is feeling sluggish… I wounder if it’s an SD issue…?</p>
<p dir="auto">I have a new SD card arriving later today. I’ll image and reinstall MM and report back.</p>
<p dir="auto">If it’s still not working, I’ll provide the logs again.</p>
<p dir="auto">Cannot thank you enough, <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a>. You’re incredibly responsive and your support is greatly appreciated.</p>
<p dir="auto">Cheers!</p>
]]></description><link>https://forum.magicmirror.builders/post/130700</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130700</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Tue, 07 Apr 2026 13:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 11:17:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a> ok, try</p>
<p dir="auto">npm run start:wayland</p>
]]></description><link>https://forum.magicmirror.builders/post/130691</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130691</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 07 Apr 2026 11:17:32 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 03:11:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">I ran the first command and this is the output:</p>
<pre><code>~ $ 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
</code></pre>
<p dir="auto">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.</p>
<p dir="auto">Logs look similar, if not the same:</p>
<pre><code>[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
</code></pre>
<p dir="auto">Strange indeed.</p>
]]></description><link>https://forum.magicmirror.builders/post/130686</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130686</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Tue, 07 Apr 2026 03:11:55 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Tue, 07 Apr 2026 00:17:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scruffy" aria-label="Profile: Scruffy">@<bdi>Scruffy</bdi></a><br />
Can you open a terminal window and run this command string</p>
<p dir="auto">ps -ef | grep -v grep | grep -i -e xway -e labwc</p>
<p dir="auto">Then do</p>
<pre><code>pm2 stop all
cd MagicMirror 
npm run start:x11
</code></pre>
<p dir="auto">Does MagicMirror start now?</p>
]]></description><link>https://forum.magicmirror.builders/post/130684</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130684</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 07 Apr 2026 00:17:50 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Mon, 06 Apr 2026 23:51:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<p dir="auto">I’m having a similar issue and I’ve been following this post but I still can’t resolve the error.</p>
<pre><code>[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.
</code></pre>
<p dir="auto">I’m currently using the following lines in <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a></p>
<pre><code>#!/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
</code></pre>
<p dir="auto">Running the PM2 shows the status is online.</p>
<p dir="auto">Any help would be greatly appreciated.</p>
<p dir="auto">Cheers!</p>
]]></description><link>https://forum.magicmirror.builders/post/130683</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130683</guid><dc:creator><![CDATA[Scruffy]]></dc:creator><pubDate>Mon, 06 Apr 2026 23:51:57 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Sat, 04 Apr 2026 14:36:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hrt13" aria-label="Profile: hrt13">@<bdi>hrt13</bdi></a> yes, I fixed it the same way for new installs</p>
<p dir="auto">Need some time to fix for existing</p>
<p dir="auto">I have fixed upgrade to update <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> for start:x11 if wayland is not running</p>
]]></description><link>https://forum.magicmirror.builders/post/130593</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130593</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 04 Apr 2026 14:36:12 GMT</pubDate></item><item><title><![CDATA[Reply to Failed to Connect to Wayland Display on Thu, 02 Apr 2026 17:09:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> I modified your script from earlier to:</p>
<pre><code>#!/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
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/130592</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/130592</guid><dc:creator><![CDATA[hrt13]]></dc:creator><pubDate>Thu, 02 Apr 2026 17:09:47 GMT</pubDate></item></channel></rss>