You are not logged in.
Hi. I've noticed that after moving from opensuse to arch, my wifi connection dies on me after inactivity. I've tried this workaround:
* Add a crontab to ping a website every 15 minutes. I'm using this command:
* ping -c 4 www.google.com
However, the connection still dies. Is there a better way to keep my connection alive? Perhaps if I increase the number of packets?
Offline
Do you experince this on other routers and/or operating systems?
Offline
No, only on my desktop running arch. Wifi ran fine before on the same setup before using suse (same hardware, same router, etc.).
Not ripping arch here, just trying to find a workaround.
Offline
As per this ubuntu forum post, I found something that might do the trick
http://ubuntuforums.org/showthread.php?t=420959
Adapted to arch, this may work:
#!/bin/sh
HOST=www.google.com
ping -c 1 -W 10 $HOST &>/dev/null
if [ $? -eq 0 ]; then
#ping is ok
exit
else
#first try
ifconfig wlan0 down
sleep 3
ifconfig wlan0 up
sleep 10
ping -c 1 -W 10 $HOST &>/dev/null
if [ $? -eq 0 ]; then
exit
else
#second try
/etc/rc.d/wlan restart
/etc/rc.d/network restart
iwconfig wlan0 essid NOAH_S_ARK
sleep 10
ping -c 1 -W 10 $HOST &>/dev/null
fi
fi
The corresponding root crontab entry to run it every 20 minutes is
*/20 * * * * <nameofscript>
Gonna try when I get home.
Offline
Well you could always connect manually, for instance by using wpa_supplicant. And if the disconnect occurs, just look at the output...
Offline