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.

    Failed to Connect to Wayland Display

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    27 Posts 3 Posters 1.1k 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.
    • A Offline
      atwist @atwist
      last edited by

      nothing is returned

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @atwist
        last edited by

        @atwist ok, weird, that is the command set I use on mm.sh to determine if Wayland is running or not

        Does your mm.sh have those commands listed?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          atwist @sdetweil
          last edited by sdetweil

          @sdetweil

          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
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @atwist
            last edited by

            @atwist
            So it shouldn’t be trying to start using wayland
            And npm start on 2.34.0 uses x11

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • A Offline
              atwist
              last edited by

              weird. Any suggestionon what to do?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @atwist
                last edited by

                @atwist move the script to another name
                Try this instead

                #!/bin/bash
                npm start
                

                Save that as mm.sh then do

                chmod +x mm.sh

                Then try
                pm2 start MagicMirror

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  atwist @sdetweil
                  last edited by

                  @sdetweil thanks. It shows that the process started successfully but it doesn’t appear on the screen.

                  S 2 Replies Last reply Reply Quote 0
                  • S Offline
                    sdetweil @atwist
                    last edited by

                    @atwist you are on the pi directly, right? Not via ssh or vnc

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    A 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @atwist
                      last edited by

                      @atwist try adding these two lines in front of the

                      export DISPLAY=:0
                      export ELECTRON_OZONE_PLATFORM_HINT=x11
                      

                      npm start line

                      And try the
                      ./MagicMirror.sh again.

                      May need to reboot before retry

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        atwist @sdetweil
                        last edited by

                        @sdetweil yes directly on it

                        1 Reply Last reply Reply Quote 0

                        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
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          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