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.

    MagicMirror does not work at startup

    Scheduled Pinned Locked Moved Troubleshooting
    19 Posts 6 Posters 17.3k Views 5 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.
    • mpiresM Offline
      mpires
      last edited by

      I have the same issue, i did put java scrip on startup, i did look on the forum and #sebzx10r, suggest the same solution.

      https://forum.magicmirror.builders/topic/1094/pm2-mm2-not-starting-on-start-up/15

      In Raspian click Menu,Preferences,Main Menu Editor
      Click Preferences and check Default applications for LXSession
      Click OK and close main menu editor
      Now click Menu and Under Preferences click on Default applications for LXSession
      LXSession configuration opens
      Click Autostart
      Under Manual autostarted applications paste in your java command line
      click add
      close the LXSession configuration application and reboot your pi
      your java app should run after reboot
      

      Hope this help.
      Cheers,

      lucallmonL 1 Reply Last reply Reply Quote 0
      • lucallmonL Offline
        lucallmon @mpires
        last edited by

        @mpires did you get it working with this script?

        1 Reply Last reply Reply Quote 0
        • mpiresM Offline
          mpires
          last edited by

          I have the script working, but the only way to start mm on boot, was set

          pm2 start mm
          

          on LXSession, but yes now once i boot my Pi, mm start without any problem.

          lucallmonL 2 Replies Last reply Reply Quote 0
          • lucallmonL Offline
            lucallmon @mpires
            last edited by

            @mpires so in the LXSession configuration menu under ‘autostart’, simply add the line ‘pm2 start mm’ and it’ll run at boot?

            1 Reply Last reply Reply Quote 0
            • lucallmonL Offline
              lucallmon @mpires
              last edited by

              @mpires do I need an @ in front of it?

              1 Reply Last reply Reply Quote 0
              • mpiresM Offline
                mpires
                last edited by

                You have Pm2 install?

                lucallmonL 2 Replies Last reply Reply Quote 0
                • lucallmonL Offline
                  lucallmon @mpires
                  last edited by

                  @mpires Yes.

                  1 Reply Last reply Reply Quote 0
                  • lucallmonL Offline
                    lucallmon @mpires
                    last edited by

                    @mpires That got it working. I had to add in the directory. Thanks for all your help.

                    1 Reply Last reply Reply Quote 0
                    • mpiresM Offline
                      mpires
                      last edited by

                      no just put " pm2 start.sh "

                      0_1488758016035_upload-7c9f1bfc-ddec-48c9-9879-941288a3005a

                      1 Reply Last reply Reply Quote 2
                      • mpiresM Offline
                        mpires
                        last edited by

                        Another happy person :D

                        1 Reply Last reply Reply Quote 0
                        • 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