Novell Home

Using Skype with a Bluetooth Headset on SLED 10

Novell Cool Solutions: Tip
By Sam Tingleff

Digg This - Slashdot This

Posted: 6 Jul 2006
 

  1. 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
  2. Turn on bluetooth using Yast: Hardware -> Bluetooth

  1. Turn on Authentication and Encryption (Yast -> Bluetooth -> Security Options)



  2. Install these packages using Yast -> Software -> Software Management: automake, autoconf, gcc, alsa, alsa-tools, alsa-devel, m4, cvs, kernel-source


  3. 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
  4. 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
  5. Edit /etc/bluetooth/rfcomm.conf to include the mac address of your dongle:
    ...
    device XX:XX:XX:XX:XX:XX;
    ...
  6. Create a shell script /etc/bluetooth/feed-pin.sh to echo your headset's pin:
    #!/bin/sh
    echo "PIN:0000"
  7. Make the script executable:
    # chmod 700 /etc/bluetooth/feed-pin.sh
  8. Set the pin_helper option in /etc/bluetooth/hcid.conf to use that script:
    ...
    pin_helper /etc/bluetooth/feed-pin.sh
    ...
  9. Restart bluetooth services
    # sudo /etc/init.d/bluetooth restart
  10. 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
  11. Pair with the headset:
    # sudo hcitool cc YY:YY:YY:YY:YY:YY
  12. 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
  13. Compile and install btsco
    # cd btsco
    # ./bootstrap
    # ./configure
    # make
    # sudo make install
  14. Compile and install the btsco kernel module
    # cd kernel
    # make
    # sudo make install
    # sudo /sbin/depmod -e
  15. 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
  16. (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
  17. Connect btsco to your headset
    # sudo btsco -v YY:YY:YY:YY:YY:YY
  18. Set the skype preferences to use /dev/dsp1 (Tools -> Options -> Hand/Headsets)



  19. 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


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell