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.
For bluetooth-off:
#!/bin/bash
sudo hciconfig hci0 down
sudo modprobe -r hci_usb
And for bluetooth-on:
#!/bin/bash
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.

[...] a comment » I have wrote about turning off bluetooth and simple shell scripts to do it. Because we have a single switch for wifi and bluetooth, I have [...]
Bluetooth switcher Gnome panel applet « Ubuntu On Sony Vaio FW Series
October 24, 2008 at 00:57
damn, i switched off in windows, formatted it and im f**** with bt?
tdi
February 25, 2009 at 02:25
probably =\ if you don’t see bt icon in notification area.
egaistek
February 25, 2009 at 02:32
it is just an applet i can turn it on and off
tdi
March 4, 2009 at 01:26
ok on debian lenny 2.6.28, bluetooth works, even if it was turned off in windows
tdi
March 9, 2009 at 19:02
Works fine with VGN-C2S but blue led does’nt switch off.
Thanks
Sx
Sx
March 20, 2009 at 01:18