Bluetooth Support for Toshiba Laptops on Ubuntu

(0 votes, average 0 out of 5)

bluetooth
The following tutorial describes how to enable bluetooth support on Toshiba laptops running Linux. This guide is written from an Ubuntu perspective but should be very similar for other distros.

Image credit goes to gadgetsteria.

I've found that there are two types of Toshiba laptops - those with Toshiba BIOS and those with Phoenix BIOS. It is easy to test which kind of BIOS you have, just open a terminal and type 

1
sudo modprobe toshiba_acpi

If the response is something like FATAL: Error inserting toshiba_acpi (/lib/modules/xxxx/toshiba_acpi.ko): Operation not permitted then you have the Phoenix BIOS. In that case, skip ahead to the Phoenix section. It is recommended that the following packages be installed for bluetooth support (if they aren't already installed): bluez and gnome-bluetooth. First, test if the bluetooth adapter is recognized

1
sudo hcitool dev

 If this returns just "Dev:" and nothing else, then continue with the steps below. If it does show a device and its MAC address, then just run

1
bluetooth-applet



Toshiba BIOS

This is pretty easy to get working in Ubuntu. Since you already have done the modprobe command above and have not encountered an error, the toshiba_acpi kernel module should be loaded. Now all you have to do to enable bluetooth is
1
sudo toshset -bluetooth on

 

Now, run
1
bluetooth-properties

 

 and confirm that your adapter is detected. If it is, you can start the bluetooth applet using
1
bluetooth-applet

 

To turn bluetooth off again, simply run
1
sudo toshset -bluetooth off

 



Phoenix BIOS

We're going to use the omnibook kernel module to add support for the Phoenix BIOS. The best way is to use checkinstall (available via synaptic or apt-get) instead of "make install" because it is then easily possible to uninstall the omnibook module later on. However, you can just substitute the checkinstall command below with "make install" if you like.

First, clone the latest version of omnibook from git  

1
2
git clone git://omnibook.git.sourceforge.net/gitroot/omnibook/omnibook
cd omnibook/

Now, compile and install the omnibook module

1
2
make
sudo checkinstall

We now need to load the module and see if we can now see the bluetooth adapter

1
2
3
sudo depmod -a
sudo modprobe omnibook ectype=14
hcitool dev # should reveal the device

 If you get the same result as before with hcitool, then you'll need to try a different ectype until you find the right one for your hardware. Valid ectype values are 1-16. To do this, repeat the following commands, trying different ectypes

1
2
sudo make unload # alternatively try $ sudo modprobe -r omnibook 
sudo modprobe omnibook ectype=14 && dmesg | grep omnibook && hcitool dev

Once you find the right ectype, your model will no longer show up as "unknown" and you should see the device. Moreover, the directory /proc/omnibook should contain a file called bluetooth. You can check the status of your bluetooth adapter by running

1
cat /proc/omnibook/bluetooth

 

Now its time to automate this process so the adapter is available when you boot. Substitute your ectype value in the following commands

1
sudo su echo "omnibook" >> /etc/modules echo "options omnibook ectype=14 userset=1 bluetooth=1" > /etc/modprobe.d/omnibook.conf exit

Now, set the program bluetooth-applet to start with your window manager (for Gnome look at Startup Applications from the main menu). This should do it - now you have a working bluetooth adapter for your Toshiba laptop on Linux! I have also created a script to automate the process of enabling/disabling your adapter as well as checking on it's status. You can download it here:




Partner Links:
Last Updated on Sunday, 25 July 2010 17:31  
Related Articles

» Setting ownership (chown) on an NTFS partition in Ubuntu with NTFS-3G

If you want to set ownership of a folder on an NTFS drive in Linux, you need to change the ownership of its entry in /etc/fstab. Unfortunately you cannot use chown because NTFS is not a POSIX-compatible filesystem. Open up Users and Groups and find your user's ID. The first user on an Ubuntu install has uid 1000. Similarly, click on Manage Groups and find your group - the gid for the first user is 1000. Open /etc/fstab as root sudo gedit /etc/fstab and change the mount line to include the uid...

» How to connect an Apple Bluetooth Keyboard to Ubuntu (Troubleshooting)

Note: This guide uses programs specific to Ubuntu 10.04 (Lucid Lynx) and newer. For older versions of Ubuntu, please refer to .Sometimes the Ubuntu bluetooth stack can behave erratically and prevent you from connecting your Apple Bluetooth Keyboard (or other bluetooth device). The normal procedure for connecting your bluetooth keyboard involves the following steps:First, make sure the bluetooth applet is running by looking for the bluetooth icon on your panel:If it is not running, press ALT+F2,...