Read the statement by Michael Teeuw here.
Wayland question
-
I know this has been fixed (at least I think it has) I just can’t find what the fix is. My SD got corrupted so I’m re-installing. Clean install of PiOS on a Pi4b. Used @sdetweil script to install.
Starting with npm run start:wayland seems to work but when I reboot and it tries to start it doesn’t work.
What do I need to change?
-
@gonzonia no. I use ssh all the time, never real keyboard
The start:Wayland says
If WAYLAND_DISPLAY is set, use it, else set it to wayland-1
But
Maybe it needs to be wayland-0So add
export WAYLAND_DISPLAY=wayland-0
Before the npm run start:Wayland lineAnd try that
-
@gonzonia MagicMirror/installers/mm.sh
But the latest should handle that
Where you do
npm run
NowDo env
And look for WAYLAND_DISPLAYWhat is its value?
-
WAYLAND_DISPLAY=wayland-0 -
@sdetweil said in Wayland question:
MagicMirror/installers/mm.sh
I have a theory…I did the install via ssh and not directly on the pi. Maybe that broke it?
-
@gonzonia no. I use ssh all the time, never real keyboard
The start:Wayland says
If WAYLAND_DISPLAY is set, use it, else set it to wayland-1
But
Maybe it needs to be wayland-0So add
export WAYLAND_DISPLAY=wayland-0
Before the npm run start:Wayland lineAnd try that
-
@sdetweil I think that worked. I was able to start it with pm2.
-
@gonzonia cool
-
I’ll see if I can mod the script, not til Monday
-
Hi @sdetweil
I have tested your updated script and it works flawlessly. Exporting the neededWAYLANDenvironment variable was exactly what I was looking for.Since I install MagicMirror via an Ansible playbook, the required environment variables are not set in the used
.pm2/dump.pm2file - my previous approach was to restore a prepareddump.pm2file, but with your approach it is much more convenient :) -
@schlomm awesome, thanks for the feedback
-
S sdetweil has marked this topic as solved on
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