Introduction
Bluetooth is finally emerging as a robust and widely supported local area communications technology for short-distance wireless data transfer. Bluetooth is being used for communications with cellphones, cameras, headsets and microphones, keyboards, mice, PDAs and storage devices.
See also BluetoothRemoteControl and BluetoothAudio on Ubuntu.
Devices
On some Dell laptops it appears to be necessary to install newest drivers from Dell's support pages in Windows to get the bluetooth module working under Linux. (At least D430 for with Gutsy / Hardy and D830 and D630 (http://ubuntuforums.org/showthread.php?t=572335 and https://wiki.ubuntu.com/LaptopTestingTeam/DellLatitudeD430#bluetooth)
On some Dell laptops which have Dell Wireless 355 Bluetooth card if you turn off the card you have to enable it before you can install it again, this affects both Windows and Linux. You have to use an utility in Windows to turn it on before you can install its driver again. If you turn the card off in Windows you have to enable it again or Ubuntu won't recognize it.
Installation and Configuration
Before you begin be sure to try:
sudo /etc/init.d/bluetooth start
The BlueTooth notification icon starts by default, but sometimes the service does not. The command shown above will start the BlueTooth system service if it isn't already running. Try the command, and then see if your device gets detected. If so, you can now attempt to connect it.
For Gutsy Gibbon (7.10) and above most of the instructions below are obsolete. For 7.10, just plug in your supported adapter and an icon appears in the top right. Right click to setup your preferences. Devices will auto connect to your PC and you can setup security as you connect each device, e.g. your phone.
To send files to your phone, install the gnome-bluetooth package. It will then be found in the accessories menu. Now sending a file is as easy as right clicking the file and select Send-to. To make this run every time you re-boot, select System --> Preferences --> Sessions. Add a Startup program. Call it, lets say, "Bluetooth File Transfer" and in the Command box, enter "gnome-obex-server". Click on OK.
Bluetooth support for Ubuntu 7.04 and earlier
sudo apt-get install bluez-utilsThen, connect your Bluetooth device if you are using one. Restart the Bluetooth services by doing:
sudo /etc/init.d/bluez-utils restart (On some machines - 7.04 feisty at least - it may be sudo /etc/init.d/bluetooth restart)Verify that your Bluetooth device has been detected, and the appropriate modules loaded by viewing the lsusb (in case of usb device) output. lsusb output:
Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Also, view the output of the command hcitool dev which will give you a listing of Bluetooth devices on your computer.
![]()
hcitool dev output:
Devices:
hci0 00:11:95:00:1A:CF
Your Bluetooth device will have a different id.
Setup Devices
Find Device Addresses
sudo hidd --search (If that command doesn't work, try this one:) hcitool scanEach device should have its own address in a aa:bb:cc:dd:ee:ff format.
Hint: If no devices are being shown and you are using Edgy Eft (6.10), you may try
sudo hciconfig hci0 inqmode 0
See bug #70718. If this helps, you may add the hciconfig command (without "sudo") to your /etc/rc.local file for a permanent workaround.
Connect Devices for Current Session Only
sudo hidd --connect aa:bb:cc:dd:ee:ffYour device should now be connected for the current session.
If you get a "Can't create HID control channel: Connection refused" error message, most likely the discovery period for the device timed out. Make the device discoverable and enter the above command again, but more quickly.
Connect Devices at Startup
sudo cp /etc/default/bluetooth /etc/default/bluetooth_backup sudo nano /etc/default/bluetoothLook for the following line:
HIDD_ENABLED=0Change it to:
HIDD_ENABLED=1Next, look in the same file for a line similar to:
HIDD_OPTIONS="--master --server"
You can leave the "--master" command or remove it, depending on the device. If you have problems with "--master", try removing it or vice versa.
HIDD_OPTIONS="--connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --connect aa:bb:cc:dd:ee:ff --server"Save the file. Finally, add HIDP to /etc/modules:
echo hidp | sudo tee -a /etc/modulesYour Bluetooth devices should now be connected at startup.
Using devices as modems
Refer to page BluetoothDialup
Using audio devices
Refer to page BluetoothAudio
For Bluetooth Headsets specically refer to BluetoothHeadset
Troubleshooting
"obex://[xx:xx:xx:xx:xx:xx]" is not a valid location.
If you get this error on gutsy it seems to be fixed with this command:
sudo apt-get install gnome-vfs-obexftp
Although this gives "Couldn't display "obex://[xx:xx:xx:xx:xx:xx]"." for some. See this forum thread for info. It seems to only be a problem on some phones.
hcitool scan/dev/inq '''Connection timed out''' Error
sudo hciconfig hci0 reset
Comments
No mention of bluez-gnome?
You may need to reboot your system after installing bluez packages even if your dongle is recognized right after package installation.
2/8/2009 bluez-gnome currently has problems see this bug:
and this forum page: http://ubuntuforums.org/showthread.php?p=6438656#post6438656
![[image]](http://mowser.com/img?url=https%3A%2F%2Fhelp.ubuntu.com%2Fhtdocs%2Fubuntunew%2Fimg%2Fhelp-faq.png)
