Bluetooth or Not Bluetooth
I have found problem with ath9k driver for my wifi card. When bluetooth enabled I get random disconnects from AP and after some disconnects it loses AP completely and can not get ip again. If I disable bluetooth in Linux or in Windows wifi works almost ok, sometime it looses AP too and I need to reboot.
I guess you notice that on FW series laptop we have only one wireless switch for bluetooth and wifi both. You can’t just disable bluetooth by switching it on case.
Another problem is if you disable bluetooth in Windows, you can’t then enable it in Linux. I’ve enabled it in Windows then rebooted into Ubuntu and wrote two shell scripts to enable/disable bluetooth in runtime. All you should do is open your text editor (gedit maybe) and make two files named bluetooth-off and bluetooth-on then put this lines into files.
sudo hciconfig hci0 down
sudo modprobe -r hci_usb
And for bluetooth-on:
sudo modprobe hci_usb
Save this files on your desktop, or somewhere you can find it quick. Open your terminal and go where you saved files (e.g.
cd ~/Desktop/). You must give this files execution permission to run it. Using this commands
chmod +x bluetooth-off and the same for bluetooth-on. Or right click on file select Permissions tab and select Allow executing file as program.
Ok, that’s it, now double click on bluetooth-off/on file, select Run in terminal and you should get a terminal window asking your password, enter it and bluetooth will turn off/on.
UPD: If I’m constantly ping any server or my router it helps to hold connection too. That’s strange, but it works.
UPD2: If I lost connectio to AP and can get IP again, I can just disable wireless and enable it again from right click menu on network applet in tray. If it does not help, just do it again, it help almost time.