MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MM does not boot when starting my raspberry

    Troubleshooting
    4
    12
    5482
    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
      asquelo last edited by

      I installed MM without problems. It works !
      But, MM does not boot when starting my raspberry.
      How to do ?

      Bisous
      Thx !

      romain 1 Reply Last reply Reply Quote 0
      • romain
        romain @asquelo last edited by

        @asquelo You need to follow the following instruction: Auto Starting MagicMirror

        1 Reply Last reply Reply Quote 0
        • A
          asquelo last edited by

          I have installed AUTOSTART
          And I followed the instructions
          but it does not work

          romain 1 Reply Last reply Reply Quote 0
          • romain
            romain @asquelo last edited by

            @asquelo You probably did it wrong. I did that a lot few weeks ago.
            you need to run pm2 startup as non sudo. then it display a command you have to run. On my pi it’s the following :

            pi@raspberrypi:~ $ pm2 startup
            [PM2] Init System found: systemd
            [PM2] You have to run this command as root. Execute the following command:
            sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi
            

            so you run the command that was display. For me it’s sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

            Then you pm2 start mm.sh , then you wait until it’s open (not sure if it’s necessary to actually wait). Then while it’s open, you run pm2 save. They you can reboot and see your mirror open.

            I used to run sudo pm2 startup and don’t understand why it wasn’t working back in the day even though the autostart guide didn’t ask to do it…

            O 1 Reply Last reply Reply Quote 1
            • A
              asquelo last edited by

              46/5000
              it works ! many thanks !

              1 Reply Last reply Reply Quote 0
              • O
                opensky727 @romain last edited by

                @romain I tried that and I have “env: /usr/lib/node_modules/pm2: Permission Denied” Do you know how to have access? Thanks.

                romain 1 Reply Last reply Reply Quote 0
                • romain
                  romain @opensky727 last edited by

                  @opensky727 did you put the sudo at the begining of the command ?
                  It should loook like this
                  sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi

                  You should have the permission as sudo

                  O 1 Reply Last reply Reply Quote 1
                  • O
                    opensky727 @romain last edited by

                    @romain it worked, thanks a lot.

                    1 Reply Last reply Reply Quote 0
                    • R
                      RE_Magic_Mirror last edited by RE_Magic_Mirror

                      This worked for me thank you. There is a delay from when it boots up and MM starts, is there any way to reduce that time so the desktop never shows?

                      romain 1 Reply Last reply Reply Quote 0
                      • romain
                        romain @RE_Magic_Mirror last edited by

                        @RE_Magic_Mirror Not that I know of but I am not an expert in linux configuration.

                        But if your issue is about “seeing” the desktop, I might have some tricks for you.
                        Maybe you could change you desktop wallpaper to be a black screen for started and take away the trash icon so the desktop part is black and empty.
                        Then you could right click on the panel barr above your screen and enter the panel settings and play around with them to make the barre itself invisible and then take away the unnecessary icons on it.
                        It will not make your mirror start quicker but you won’t see the default wallpaper and menu as much

                        R 1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy