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

MM Nightly Reboot Needed, PM2 ?

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 2 Posters 3.5k Views 2 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.
  • C Offline
    cohron
    last edited by Apr 23, 2017, 2:28 PM

    I have a finicky wireless here and need MM to reboot nightly to stay connected, otherwise MM loses the connection and never reconnects.
    Can anyone help me set up a scheduled reboot script for my RPI? I have PM2 installed and running for auto-start but I dont see where it can reboot my RPI.

    Many thanks.

    M 1 Reply Last reply Apr 23, 2017, 2:37 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @cohron
      last edited by Mykle1 Apr 23, 2017, 2:39 PM Apr 23, 2017, 2:37 PM

      @cohron

      Have you done this?

      Disable WiFi Power Save

      Edit /etc/modprobe.d/8192cu.conf

      sudo nano /etc/modprobe.d/8192cu.conf
      Add the following lines

      Disable power saving

      options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1
      For Raspberry Pi 3
      Edit /etc/network/interfaces

      sudo nano /etc/network/interfaces
      Add the following line under the wlan0 section

      wireless-power off
      Reboot your PI

      sudo reboot

      That comes straight from here:
      https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi#disable-wifi-power-save

      Create a working config
      How to add modules

      C 1 Reply Last reply Apr 23, 2017, 2:50 PM Reply Quote 0
      • C Offline
        cohron @Mykle1
        last edited by Apr 23, 2017, 2:50 PM

        @Mykle1 I did but since i didnt have the Edit /etc/modprobe.d/8192cu.conf file, I’m running an rPI3b so I did the wireless-power off step bu it didnt seem to help or the problem is outside the raspberry.

        I just found how to do a nightly reboot using crontab.
        https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=126106

        M 1 Reply Last reply Apr 23, 2017, 2:53 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @cohron
          last edited by Apr 23, 2017, 2:53 PM

          @cohron said in MM Nightly Reboot Needed, PM2 ?:

          I just found how to do a nightly reboot using crontab.

          That worked for me and I have Pi3 b as well. Glad you found the script you were looking for. Good luck!

          Create a working config
          How to add modules

          C 1 Reply Last reply Apr 23, 2017, 3:12 PM Reply Quote 0
          • C Offline
            cohron @Mykle1
            last edited by Apr 23, 2017, 3:12 PM

            @Mykle1 curious, did you have the /etc/modprobe.d/8192cu.conf file already or did you create it? i just created it, just in case that does the trick too.

            thanks again.

            M 2 Replies Last reply Apr 23, 2017, 3:46 PM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @cohron
              last edited by Mykle1 Apr 23, 2017, 3:49 PM Apr 23, 2017, 3:46 PM

              @cohron said in MM Nightly Reboot Needed, PM2 ?:

              @Mykle1 curious, did you have the /etc/modprobe.d/8192cu.conf file already or did you create it? i just created it, just in case that does the trick too.
              thanks again.

              As it turns out, I do NOT have the 8192cu.conf file are all.
              pi@Pi3:/etc/modprobe.d $ ls
              fbdev-blacklist.conf ipv6.conf libpisock9.conf raspi-blacklist.conf
              pi@Pi3:/etc/modprobe.d $
              `
              However, looking at the instructions again, it says:

              For Raspberry Pi 3
              Edit /etc/network/interfaces

              sudo nano /etc/network/interfaces
              Add the following line under the wlan0 section

              wireless-power off
              Reboot your PI

              sudo reboot

              It’s been some time since I set up my Pi but it’s obvious that I only did this portion of the instruction

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @cohron
                last edited by Apr 23, 2017, 4:02 PM

                @cohron

                I was curious so I checked my /etc/network/interfaces file. It would appear I don’t have the edit we’re talking about, yet my wifi never drops. Here is the file:

                interfaces(5) file used by ifup(8) and ifdown(8)

                Please note that this file is written to be used with dhcpcd

                For static IP, consult /etc/dhcpcd.conf and ‘man dhcpcd.conf’

                Include files from /etc/network/interfaces.d:

                source-directory /etc/network/interfaces.d

                auto lo
                iface lo inet loopback

                iface eth0 inet dhcp

                auto wlan0
                allow-hotplug wlan0
                iface wlan0 inet dhcp
                wireless-essid XE1S3
                wireless-key 5BBXXXXXX

                Create a working config
                How to add modules

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