Read the statement by Michael Teeuw here.
MM Nightly Reboot Needed, PM2 ?
-
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.
-
Have you done this?
Disable WiFi Power Save
Edit /etc/modprobe.d/8192cu.conf
sudo nano /etc/modprobe.d/8192cu.conf
Add the following linesDisable power saving
options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1
For Raspberry Pi 3
Edit /etc/network/interfacessudo nano /etc/network/interfaces
Add the following line under the wlan0 sectionwireless-power off
Reboot your PIsudo reboot
That comes straight from here:
https://github.com/MichMich/MagicMirror/wiki/Configuring-the-Raspberry-Pi#disable-wifi-power-save -
@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 -
@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!
-
@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.
-
@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/interfacessudo nano /etc/network/interfaces
Add the following line under the wlan0 sectionwireless-power off
Reboot your PIsudo 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
-
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 loopbackiface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless-essid XE1S3
wireless-key 5BBXXXXXX