Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes it takes too long for the network manager to update to see new wireless AP. Is it possible to change the time interval between checks?

share|improve this question
up vote 12 down vote accepted

The "refresh rate" (scan interval) is hardcoded in the source code of network manager. The interval is some value between 20 and 120 seconds. Some heuristics decide when to scan more often and when less often. There seems to be no way to configure the interval other than patching the source and compiling.

See the relevant source file of network manager version 0.9.0 and search for interval.

There is a lot of discussion on the internet about allowing users to change the interval. The developers do not want that. They argue that users might set the interval too low and that will cause grievance for all members of the wireless network, not only for the user alone.

I am sorry I cannot provide you a link to that discussion. I forgot to save the link and now I couldn't find it again. You will have to take my word for it.

So it is not possible to configure the refresh rates, and it seems that it will not happen anytime soon.

You can trigger a scan manually using the following command:

sudo iwlist eth1 scan

Replace eth1 with the name of your wireless device. Use iwconfig to find out the name of your wireless device.

You can list the found networks using nm-tool.

You can observe the activity of your wireless device using iwevent.

share|improve this answer
Or you could just throw the above command in a script and setup a cron job to have it run every minute if you wanted it to run that frequent. – Justin Andrusk Aug 30 '11 at 16:31
@Justin: How do you enter a sudo command to a CRON job so that it runs without asking for a root password? – Richard Rodriguez Sep 3 '11 at 20:09
What it really should do is that if you click the AppIndicator it should scan then. I think that is what the Apple guys arrived at. I have to think someone would have forked this and added this functionality. – Elijah Lynn Jul 29 '15 at 11:44
Some links to some of the discussions mentioned would be very helpful. – Elijah Lynn Jul 29 '15 at 11:47

protected by RolandiXor Nov 3 '12 at 5:22

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.