• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Wayland question

Scheduled Pinned Locked Moved Solved Troubleshooting
10 Posts 3 Posters 354 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    gonzonia
    last edited by May 31, 2025, 7:43 PM

    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?

    S 1 Reply Last reply May 31, 2025, 7:51 PM Reply Quote 0
    • S Offline
      sdetweil @gonzonia
      last edited by sdetweil May 31, 2025, 8:47 PM May 31, 2025, 8:47 PM

      @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-0

      So add
      export WAYLAND_DISPLAY=wayland-0
      Before the npm run start:Wayland line

      And try that

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply May 31, 2025, 8:53 PM Reply Quote 0
      • S Offline
        sdetweil @gonzonia
        last edited by May 31, 2025, 7:51 PM

        @gonzonia MagicMirror/installers/mm.sh

        But the latest should handle that

        Where you do
        npm run
        Now

        Do env
        And look for WAYLAND_DISPLAY

        What is its value?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        G 2 Replies Last reply May 31, 2025, 7:58 PM Reply Quote 0
        • G Offline
          gonzonia @sdetweil
          last edited by May 31, 2025, 7:58 PM

          @sdetweil

          WAYLAND_DISPLAY=wayland-0
          
          1 Reply Last reply Reply Quote 0
          • G Offline
            gonzonia @sdetweil
            last edited by May 31, 2025, 8:01 PM

            @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?

            S 1 Reply Last reply May 31, 2025, 8:47 PM Reply Quote 0
            • S Offline
              sdetweil @gonzonia
              last edited by sdetweil May 31, 2025, 8:47 PM May 31, 2025, 8:47 PM

              @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-0

              So add
              export WAYLAND_DISPLAY=wayland-0
              Before the npm run start:Wayland line

              And try that

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              G 1 Reply Last reply May 31, 2025, 8:53 PM Reply Quote 0
              • G Offline
                gonzonia @sdetweil
                last edited by May 31, 2025, 8:53 PM

                @sdetweil I think that worked. I was able to start it with pm2.

                S 1 Reply Last reply May 31, 2025, 9:01 PM Reply Quote 1
                • S Offline
                  sdetweil @gonzonia
                  last edited by May 31, 2025, 9:01 PM

                  @gonzonia cool

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply May 31, 2025, 9:04 PM Reply Quote 0
                  • S Offline
                    sdetweil @sdetweil
                    last edited by May 31, 2025, 9:04 PM

                    I’ll see if I can mod the script, not til Monday

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply 30 days ago Reply Quote 0
                    • S Offline
                      schlomm @sdetweil
                      last edited by 30 days ago

                      Hi @sdetweil
                      I have tested your updated script and it works flawlessly. Exporting the needed WAYLAND environment 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.pm2 file - my previous approach was to restore a prepared dump.pm2 file, but with your approach it is much more convenient :)

                      S 1 Reply Last reply 30 days ago Reply Quote 0
                      • S Offline
                        sdetweil @schlomm
                        last edited by 30 days ago

                        @schlomm awesome, thanks for the feedback

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • S sdetweil has marked this topic as solved 29 days ago
                        • 1 / 1
                        1 / 1
                        • First post
                          1/10
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy