Wifi ssh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
On a new pi 3 (last one), running
PRETTY_
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
I get a very unstable ssh via Wifi. I disabled Wifi power management, but I only can make it work for max 1 day. After that I can no longer connect to pi via ssh.
The first running hours are great, no problems, but after that it gets slower. I don't know what to blame: wifi, ssh, my router?!
I still write several script to automatically restart wlan0 when no connection, but still no effect:
TRIED THIS
ping -c4 192.168.0.1 > /dev/null # THEN RESTART wifi
OR EVEN:
if ifconfig wlan0 | grep -q "net add:" ; # then restart wifi
The following script never run though (never got to 10 minutes with no wlan0, because other scripts run at 60 sec to restart wlan0):
#!/bin/bash
while true ; do
if ifconfig wlan0 | grep -q "inet addr:" ; then
sleep 600
else
echo $(date) "Network connection down! Attempting reboot." >> /home/rcor/net.log
sleep 3
sudo /sbin/shutdown -r now
fi
done
This is an old bug and I don't know if the original poster still has a problem, but for the benefit of anyone else who stumbles across this...
Raspberry Pi 3 does seem to have an issue with power management and the wifi adapter. It seems to be improved a lot if you append the line:
iwconfig wlan0 power off &
...to /etc/rc.local.
https:/ /discourse. osmc.tv/ t/pi-3- wifi-unstable/ 14171/3