Where I live, there is power outage every few hours. This means my DSL WIFI routergets reset after 2-3 hours max. The network is secured and requires password to connect. So when the router resets and comes backup after a few minutes, my laptop (Ubuntu 10.04) doesnt auto reconnect to it. Instead I am presented with a password entry dialog box to connect to the network. How can this re-connection be made automatic? Is there some retry counts or timeout that I can set somewhere so that the network manager will try for at least 10 minutes to connect to this network before popping this dialog box.
Thanks.
Maybe not the cleanest way of doing this, but you could make a little script and let is execute every 5 min using cron. If pinging the router is not successful then the network manager is restarted.
In my humble opinion, the reconnection is automatic but probably passwords are not stored properly. Network-manager prompt for the password, that means it is trying to connect, otherwise it will just stay silent.
You can open the 'Edit Connections' window of network-manager and check whether passwords are stored. (Image copied from Where does network-manager store WPA keys when "Available to All Users" is ticked?)