• 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.

Configuring autostart with pm2

Scheduled Pinned Locked Moved Solved Troubleshooting
pm2configuration
3 Posts 2 Posters 11.4k Views 1 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.
  • D Offline
    derekhuffman
    last edited by paviro May 20, 2016, 8:46 PM May 7, 2016, 1:30 PM

    I have installed the pm2 stuff and after running ‘pm2 start mm.sh’ the Pi reboots and the Magic Mirror opens.

    Now, how do I ‘pm2 save’ to save the current state? Apologies - I’m new to all this. Is there a way to exit the MagicMirror and get back to Terminal to do so? Since I can’t, when I turn off the power and reboot, the Pi just goes back to Raspian.

    I really want to get rid of this keyboard and mouse!

    1 Reply Last reply Reply Quote 0
    • K Offline
      KirAsh4 Moderator
      last edited by May 8, 2016, 7:23 AM

      • the rPi should not reboot when you first start the process - are you sure it’s actually rebooting, as opposed to you just seeing a gray screen flash, then black, before MM starts displaying the elements on screen? If the rPi reboots, you should see the full log of it starting up, with 4 raspberry icons at the top.
      • Issuing the pm2 save command is best done through a remote connection. One way is to setup VNC on the rPi, and use something such as RealVNC (http://www.realvnc.com/) on Windows to remotely access the rPi. Another method is to use an SSH client like PuTTY (http://www.putty.org/) to log into the rPi. Once logged in, you can issue pm2 commands such as:

      pm2 save - save the current process list so they automatically relaunch
      pm2 stop mm - stop the Magic Mirror process and exit back to desktop
      pm2 show mm - show the current status of the Magic Mirror process

      PS: the default login on an rPi is:
      username: pi
      password: raspberry

      I strongly recommend you change the password once you’re logged in by issuing the passwd command. Remember the new password you set.

      A Life? Cool! Where can I download one of those from?

      1 Reply Last reply Reply Quote 1
      • K Offline
        KirAsh4 Moderator
        last edited by May 8, 2016, 7:54 AM

        Regarding the ‘keyboard and mouse’ part in your post … I use a wireless set. So the rPi is mounted behind the monitor and only has 2 wires on it: power and HDMI. There’s a USB dongle plugged in that’s for the keyboard and mouse which I rarely use. Specially since I log in remotely. The only time I need the mouse or keyboard is if something bad happened and the rPi won’t boot up normally. But other than that, not needed.

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          1/3
          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