random wireless disconnections (lucid lynx)
<p>I'm using Ubuntu 10.04 and I'm having problems with my wireless connection. It simply stops working randomly.</p>
<p>I thought the cause might be a number of connections or something like that, but it's not. Sometimes it stops working while you're off doing something unrelated to the network.</p>
<p>Also, once it stops working, I'm unable to connect anymore until I reboot the machine. Some say it might be a problem with NetworkManager, but I can't use the recommended wicd because it won't even connect (it seems like hidden SSID + wep bothers wicd).</p>
<p>I'd also like to note that I have a windows PC connected to the same router and it never drops a connection like that, so there's obviously nothing wrong with the router.</p>
<p>Any hints would be helpful. I'd like to drop NM altogether if possible, but I'm not aware of any good alternative.</p>
<p><strong>Edit:</strong></p>
<pre><code>lecterror@feck:~$ lspci -nnk | grep -i net -A2
07:00.0 Network controller [0280]: Intel Corporation Wireless WiFi Link 5100 [8086:4232]
Kernel driver in use: iwlagn
Kernel modules: iwlagn
09:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme BCM5764M Gigabit Ethernet PCIe [14e4:1684] (rev 10)
Kernel driver in use: tg3
Kernel modules: tg3
lecterror@feck:~$ rfkill list
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
1: acer-bluetooth: Bluetooth
Soft blocked: yes
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
</code></pre>
<p><code>sudo iwlist scan</code> got me a large list of available networks, I'm assuming you don't need it if that's the expected output :)</p>
<p><strong>Edit 2:</strong></p>
<p>No dice! :( My "solution" in the answers below didn't work, in fact it made everything worse, disconnections every few seconds. dmesg said this:</p>
<pre><code>[ 1170.188961] wlan0: deauthenticating from XXXXXX by local choice (reason=3)
</code></pre>
<p>I have no idea what it means, but it sure as hell wasn't by MY local choice!</p>
<p>For now I've reverted to NetworkManager and the funny thing is that is seems more stable than before(?). Possibly due to WEP->WPA switch, but I can't be sure..</p>
<p>Any ideas?</p>