Hi, I realized that automatic suspend would be much more useful if it did not kill my ssh connections over wlan. It seems that kernel does not restore the state of wlan networking on resume. It seems I can do this in userland. I added a few lines to a suspend hook:
essid="$(iwconfig eth0 | tr ' ' '\n' | grep ESSID | cut -d':' -f2|sed 's/^.//;s/.$//;')" ap="$(iwconfig eth0 | grep 'Access Point'|cut -d':' -f4-|cut -d' ' -f2)" ip="$(ip addr show eth0 | grep inet | awk '{print $2}'|cut -d'/' -f1)" ip route | grep eth0 > /tmp/eth0-routes and a few lines to resume hook: iwconfig eth0 essid "$essid" iwconfig eth0 ap "$ap" ifconfig eth0 "$ip" cat /tmp/eth0-routes | while read route; do ip route replace $route done and now my ssh connections don't die if I suspend the phone for a while. Is there some already existing software that should do this? Should kernel restore these parameters? -Timo _______________________________________________ Smartphones-userland mailing list Smartphones-userland@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland