Answers to: random wireless disconnections (lucid lynx)http://linuxexchange.org/questions/809/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>enWed, 07 Jul 2010 21:19:16 -0400Answer by dr. Hannibal Lecterhttp://linuxexchange.org/questions/809/random-wireless-disconnections-lucid-lynx/1007<p>It's been a while now, and the connection seems to be working reliably. The setup is as follows:</p> <ul> <li>Switched network to WPA2-PSK</li> <li>Broadcasting SSID is enabled</li> <li>Switched back to NetworkManager</li> </ul> <p>So, Andy's comment might have something to do with it (SSID)..or the WEP->WPA switch..or something completely different. I guess we'll never know..</p> <p>In any case, @everyone: thanks for your effort!</p>dr. Hannibal LecterWed, 07 Jul 2010 21:19:16 -0400http://linuxexchange.org/questions/809/random-wireless-disconnections-lucid-lynx/1007Answer by dr. Hannibal Lecterhttp://linuxexchange.org/questions/809/random-wireless-disconnections-lucid-lynx/848<p>I have found <a href="http://ubuntuforums.org/showthread.php?t=202834" rel="nofollow" title="ubuntu forums">this thread</a> on Ubuntu forums and followed the instructions on the first two posts.</p> <p>I have switched my network from WEP to WPA2-PSK (it's a good move anyway) and edited my <code>/etc/network/interfaces</code> to include the following:</p> <pre><code>auto wlan0 iface wlan0 inet static address 192.168.0.10 gateway 192.168.0.1 dns-nameservers 83.139.105.2 83.139.104.2 netmask 255.255.255.0 wpa-driver wext wpa-ssid {$MYESSID} wpa-ap-scan 2 wpa-proto RSN wpa-pairwise CCMP TKIP wpa-group CCMP TKIP wpa-key-mgmt WPA-PSK wpa-psk {$MYPSK} </code></pre> <p>I have also removed both wicd and NetworkManager (this didn't work with either one of them running...for some reason).</p> <p>It seems to be working for now, but I'll wait a week or so to see if it will happen again. If it doesn't I'll mark this as accepted, but if it does..feel free to post your solutions too :)</p> <p><strong>Edit:</strong> This did not work, results of this "experiment" have been added to the question.</p>dr. Hannibal LecterSun, 13 Jun 2010 12:20:25 -0400http://linuxexchange.org/questions/809/random-wireless-disconnections-lucid-lynx/848Answer by zorbixhttp://linuxexchange.org/questions/809/random-wireless-disconnections-lucid-lynx/839<p>Do you have an Atheros wireless card by any chance? If yes it could be the ath5k driver sausing the problem. You could compile and install the madwifi driver to substitute for the defective ath5k driver. Another option is to upgrade to the latest 2.6.34 series kernel.</p>zorbixFri, 11 Jun 2010 17:42:02 -0400http://linuxexchange.org/questions/809/random-wireless-disconnections-lucid-lynx/839