LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nm-applet timeout (https://www.linuxquestions.org/questions/linux-newbie-8/nm-applet-timeout-832087/)

arunvk 09-14-2010 09:23 AM

nm-applet timeout
 
Hi,

I connect to the internet via wifi access. I have this problem that whenever there is a powercut, my wifi router switches off and then nm-applet tries to connect and then after sometime times out i.e. nm-applet gives up on trying to restore the connection.

I want nm-applet to keep trying to restore the connection indefinitely because if the electricity is back lets say after an hour then it should immediately connect without manual intervention.

I did google around trying to search for the configuration parameters but was not able to do so.

Has anyone found a solution to my particular problem or any work around.

thanks.

yooy 09-15-2010 08:56 AM

you can make some small script that check if there is connnection(iwconfig, grep), if not, it run killall nm-applet and than nm-applet&

buzzybeemarketing 09-15-2010 03:08 PM

Post the contents of your resolv.conf

arunvk 09-16-2010 04:06 AM

Hi yooy,

I can do that but trying to find simpler ways :)

Hi buzzybeemarketing,

following are the contents:

# Generated by NetworkManager
nameserver 10.0.0.1

buzzybeemarketing 09-17-2010 02:50 AM

nameserver
 
Your wifi connection is looking for a nameserver at your local address because of

nameserver 10.0.0.1

That's probably why it's timing out. Your connection should automatically retrieve the proper name servers through your ISP. Try commenting out that line and restarting.

buzzybeemarketing 09-17-2010 02:58 AM

resolv.conf
 
Here is what my resolv.conf looks like

# Generated by NetworkManager
domain home
search home
nameserver 192.168.1.1

I was using openDNS before where two name servers from openDNS were added by network manager to this file. I reverted back to regular dns.


All times are GMT -5. The time now is 08:50 AM.