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.

    Newbe help please

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 3 Posters 1.7k 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.
    • M Offline
      morso
      last edited by morso

      Hello,

      It looks like my MagicMirror is running (see below) but the MagiciMirror screen doesn’t start.

      pi@raspberrypi:~/MagicMirror $ pm2 restart  MagicMirror
      Use --update-env to update environment variables
      [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
      [PM2] [MagicMirror](0) ✓
      ┌─────────────┬──────┬────────┬─────┬─────┬───────────┐
      │ Name        │ mode │ status │ ↺   │ cpu │ memory    │
      ├─────────────┼──────┼────────┼─────┼─────┼───────────┤
      │ MagicMirror │ fork │ online │ 159 │ 66% │ 11.2 MB   │
      └─────────────┴──────┴────────┴─────┴─────┴───────────┘
       Use `pm2 show ` to get more details about an app
      

      Everything was working fine from the original install (I even added a module w/o issues) till I followed the instructions to Disabling the screensaver and Disable WiFi Power Save.

      Since I have a RPi 3 (Raspbian Stretch) I used the following instruction:

      For RPi 3 (Raspbian Stretch)

      We no longer have any default entries in /etc/network/interfaces, instead we make a plugin to the (service) startup script. Copy paste the following into you terminal:

      cat << EOF | sudo tee /etc/network/if-up.d/off-power-manager
      > #!/bin/sh
      > # off-power-manager - Disable the internal power manager of the (built-in) wlan0 device
      > # Added by MagicMirrorSetup
      > iw dev wlan0 set power_save off
      > EOF
      #!/bin/sh
      # off-power-manager - Disable the internal power manager of the (built-in) wlan0 device
      # Added by MagicMirrorSetup
      iw dev wlan0 set power_save off
      
      

      Then set the permissions and reload the network daemon.

      sudo chmod 755 /etc/network/if-up.d/off-power-manager
      sudo /etc/init.d/networking restart
      

      You don’t need to reboot for this to take effect, but do it anyway to make sure it works. After reboot and your wifi is back up, test with:

      iw dev wlan0 get power_save
      

      After this the MagicMirror stopped starting up when

      pm2 star MagicMirror
      

      is executed.

      Any help you could offer to troubleshoot this is much much appreciated.
      Thanks,

      1 Reply Last reply Reply Quote 0
      • yawnsY Offline
        yawns Moderator
        last edited by

        Is there a screen connected to the pi? What is it showing?
        Are you working directly on the pi, are you connecting via VNC or are you sshing to the pi?

        If you run pm2 stop MagicMirror and then try npm start inside MagicMirror folder (if directly on the pi) or DISPLAY=:0 nohup npm start & (if connected via ssh), do you see the MagicMirror?

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          morso @yawns
          last edited by

          @yawns Thanks for the prompt replay. Yes HDMI screen is connected and shows Pi OS desktop.
          I am connected via VNC but I can also work directly on the Pi. Not really sure how to use SSH yet.

          I run

          DISPLAY=:0 nohup npm start &
          

          inside the MM folder from VNC and MagicMirror screen started!!
          I also run

          npm start
          

          from Pi and works.

          MagicMirror doesn’t start on reboot though. Reboot goes strait to desktop.
          I guess my confusion is that before I just exec

          pm2 start MagicMirror"
          

          and the MagicMirro screen start while now I will need to run

          npm start
          

          Can you please explain why this happens and how I can have MagicMirror starts at boot again?

          Thanks so much for your help.

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            E3V3A @morso
            last edited by

            @morso IDK how old is your MM that was working, but now you need to go to: ~/MagicMirror/installers/ and run the mm.sh script with pm2. I use an alias for this:

            alias mm2='cd $HOME/MagicMirror/installers/; pm2 flush; pm2 start mm.sh && cd $OLDPWD'
            

            with:

            $ cat ~/MagicMirror/installers/mm.sh
            cd ~/MagicMirror
            DISPLAY=:0 npm start
            

            "Everything I do (here) is for free – altruism is the way!"
            MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              morso @E3V3A
              last edited by

              @E3V3A Thank you very much!!

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