Ubuntu On Sony Vaio FW Series

Tips & Tricks related to Sony Vaio FW series laptops

Bluetooth or Not Bluetooth

with 6 comments

vaio white screen

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.

About these ads

Written by egaistek

September 27, 2008 at 03:02

Posted in Vaio

Tagged with , ,

6 Responses

Subscribe to comments with RSS.

  1. […] 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 […]

  2. damn, i switched off in windows, formatted it and im f**** with bt?

    tdi

    February 25, 2009 at 02:25

  3. probably =\ if you don’t see bt icon in notification area.

    egaistek

    February 25, 2009 at 02:32

  4. it is just an applet i can turn it on and off

    tdi

    March 4, 2009 at 01:26

  5. ok on debian lenny 2.6.28, bluetooth works, even if it was turned off in windows

    tdi

    March 9, 2009 at 19:02

  6. Works fine with VGN-C2S but blue led does’nt switch off.
    Thanks
    Sx

    Sx

    March 20, 2009 at 01:18


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: