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

      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.

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @cohron
        last edited by Mykle1

        @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 Reply Quote 0
        • C Offline
          cohron @Mykle1
          last edited by

          @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

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @cohron
            last edited by

            @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 Reply Quote 0
            • C Offline
              cohron @Mykle1
              last edited by

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

              Mykle1M 2 Replies Last reply Reply Quote 0
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @cohron
                last edited by Mykle1

                @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
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @cohron
                  last edited by

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