- Plug in your bluetooth dongle. You should see something like this in /var/log/messages:
usb 1-1: new full speed USB device using uhci_hcd and address 2
usb 1-1: new device found, idVendor=0a12, idProduct=0001
usb 1-1: new device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: configuration #1 chosen from 1 choice
Bluetooth: Core ver 2.8
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: HCI USB driver ver 2.9
usbcore: registered new driver hci_usb
- Turn on bluetooth using Yast: Hardware -> Bluetooth
- Turn on Authentication and Encryption (Yast -> Bluetooth -> Security Options)
- Install these packages using Yast -> Software -> Software Management: automake, autoconf, gcc, alsa, alsa-tools, alsa-devel, m4, cvs, kernel-source
- Add yourself to the ‘audio’ group: (as root) edit /etc/group and add your username to the end of the line for the audio group (my username is stingleff):
audio:x:17:stingleff
- Ensure that bluetooth is running, and grab the mac address of your bluetooth dongle. For the reminder of this document, wherever you see XX:XX:XX:XX:XX:XX you should replace that with the value from your actual hardware.
# sudo hcitool dev
Devices:
hci0 XX:XX:XX:XX:XX:XX
- Edit /etc/bluetooth/rfcomm.conf to include the mac address of your dongle:
...
device XX:XX:XX:XX:XX:XX;
...
- Create a shell script /etc/bluetooth/feed-pin.sh to echo your headset’s pin:
#!/bin/sh
echo "PIN:0000"
- Make the script executable:
# chmod 700 /etc/bluetooth/feed-pin.sh
- Set the pin_helper option in /etc/bluetooth/hcid.conf to use that script:
...
pin_helper /etc/bluetooth/feed-pin.sh
...
- Restart bluetooth services
# sudo /etc/init.d/bluetooth restart
- Put your headset into pairing mode and grab the mac address. For the remainder of this document, replace YY:YY:YY:YY:YY:YY with the mac from your actual headset.
# sudo hcitool scan
Scanning ...
YY:YY:YY:YY:YY:YY Jabra BT 250v
- Pair with the headset:
# sudo hcitool cc YY:YY:YY:YY:YY:YY
- Checkout the btsco source code. btsco is used to connect your headset as an audio device.
# cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/bluetooth-alsa co btsco
- Compile and install btsco
# cd btsco
# ./bootstrap
# ./configure
# make
# sudo make install
- Compile and install the btsco kernel module
# cd kernel
# make
# sudo make install
# sudo /sbin/depmod -e
- Load the emu10k1 kernel module (add the command ‘/sbin/modprobe
emu10k1’ [without quotes] to /etc/rc.d/boot.local to load the module
automatically on boot):
# sudo /sbin/modprobe emu10k1
- (add the command ‘/sbin/modprobe
snd-bt-sco’ [without quotes] to /etc/rc.d/boot.local to load the module
automatically on boot):
# sudo /sbin/modprobe snd-bt-sco
- Connect btsco to your headset
# sudo btsco -v YY:YY:YY:YY:YY:YY
- Set the skype preferences to use /dev/dsp1 (Tools -> Options -> Hand/Headsets)
- To automate the process each time you start Skype, save this script as ~/bin/skype.sh and execute instead of the standard skype command.
#!/bin/bash
gnomesu btsco -v YY:YY:YY:YY:YY:YY &
skype
gnomesu pkill btsco
(Visited 1 times, 1 visits today)
No comments yet