Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old May 8th, 2008   #1
psyke777
5 Cups of Ubuntu
 
Join Date: Jul 2007
Beans: 15
Talking My Solution: Hardy 8.04, Bluetooth headsets & Skype

Notes: These instructions work for 32-bit Ubuntu. (64-bit needs more work by someone with a 64-bit system. See the 4th post below this.)

1) make sure linux-ubuntu-modules-(kernel version)-generic, bluetooth, bluez-audio, bluez-gnome and bluez-utils are installed
2) uninstall or do not install bluetooth-alsa or bluez-btsco

3) Make sure your bluetooth hub is plugged in and working
$ hciconfig -a
Code:
hci0:   Type: USB
        BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10
        UP RUNNING PSCAN
        RX bytes:3935493 acl:271 sco:76851 events:660 errors:0
        TX bytes:3437929 acl:264 sco:67270 commands:223 errors:0
        Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'dell-0'
        Class: 0x08010c
        Service Classes: Capturing
        Device Class: Computer, Laptop
        HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2 (0x2) LMP Subver: 0x1fe
        Manufacturer: Integrated System Solution Corp. (57)
4) discover your headset address by putting the headset in discoverable mode then using the command:
$ sudo hcitool scan
Code:
Scanning ...
        xx:xx:xx:xx:xx:xx       BT Headset-F
5) Add .asoundrc file to your home directory
6) In it put:
Code:
pcm.bluetooth {
  type bluetooth
  device xx:xx:xx:xx:xx:xx
  profile "auto"
}
where xx:xx:xx:xx:xx:xx is the address of your head set above.


7) enable bluetooth sound on bluetooth hub
$ sudo hciconfig hci0 voice 0x0060

8) Check bluetooth Audio service is running
right click the bluetooth icon in your Notification Area
click Preferences / Services Tab
make sure Audio service is running
close it

9) load bluetooth SCO drivers
$ sudo modprobe snd_bt_sco
$ sudo modprobe sco
You might want to put these in /etc/modules

10) turn on the headset and hit volume up on the headset which should cause your PC to ask for the passkey to pair with the headset

11) check bluetooth sees the head set and has realised it is for audio
right click the bluetooth icon in your Notification Area
click Preferences / Services Tab
select 'Audio service' and your headset should be listed below

12) Check bluetooth headset is seen by ALSA
$ sudo cat /proc/asound/cards
Code:
 0 [I82801CAICH3   ]: ICH - Intel 82801CA-ICH3
                      Intel 82801CA-ICH3 with CS4205 at irq 5
 1 [Headset        ]: Bluetooth SCO - BT Headset
                      BT Headset 1
13) adjust volumes for headset
$ alsamixer -c1
where 1 means card 1 listed above. Yours may be different.

14) Testing
$ arecord -D bluetooth -f s16_LE test.wav
talk for 10 seconds into the headset then press ctrl-C (note it might take a few seconds to start recording)
$ aplay -D bluetooth -f S16_LE test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono

15) in your software such as skype choose the device called 'bluetooth' which is the pcm.bluetooth name used in .asoundrc

I still have problems sometimes... bad recordings, error messages in the logs etc. But it works. Perhaps someone can add this in a more accessable place once it has been verified that it works. Some of my steps may be superfluous but I wanted to get the info out there.

It might be neccessary sometimes to remove the headset from the Bluetooth Manager and have it re-add itself by pressing Volume up.

Last edited by psyke777; May 11th, 2008 at 08:01 AM.. Reason: added linux-ubuntu-modules-(kernel version)-generic
psyke777 is offline   Reply With Quote
Old May 9th, 2008   #2
Permafrost91
A Carafe of Ubuntu
 
Join Date: Nov 2005
Beans: 148
Ubuntu Intrepid Ibex (testing)
Re: My Solution: Hardy 8.04, Bluetooth headsets & Skype

This works! Unfortunately, Ekiga still can't use my device. It finds it but says it can't read/write to the device.
Permafrost91 is offline   Reply With Quote
Old May 9th, 2008   #3
psyke777
5 Cups of Ubuntu
 
Join Date: Jul 2007
Beans: 15
Re: My Solution: Hardy 8.04, Bluetooth headsets & Skype

Quote:
Originally Posted by Permafrost91 View Post
This works! Unfortunately, Ekiga still can't use my device. It finds it but says it can't read/write to the device.
This might help?

https://bugs.launchpad.net/ubuntu/+s...ga/+bug/178555
psyke777 is offline   Reply With Quote
Old May 10th, 2008   #4
mhnagaoka
First Cup of Ubuntu
 
Join Date: May 2008
Beans: 2
Ubuntu 8.04 Hardy Heron
Smile Re: My Solution: Hardy 8.04 and Bluetooth headsets

Works for me on Skype. Thanks a lot! I've been struggling with this for quite some time.
mhnagaoka is offline   Reply With Quote
Old May 10th, 2008   #5
pangloss
5 Cups of Ubuntu
 
Join Date: May 2005
Location: Nice
Beans: 24
Ubuntu 9.04 Jaunty Jackalope
Re: My Solution: Hardy 8.04 and Bluetooth headsets

Even following these instructions, Skype audio with my bluetooth headset doesn't work:

Code:
ALSA lib ../../../src/pcm/pcm_params.c:2135:(snd_pcm_hw_refine_slave) Slave PCM not usable
ALSA lib ../../../src/pcm/pcm.c:2106:(snd_pcm_open_conf) Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so
I assume this is because I am running 32-bit Skype on Hardy 64-bit.

Searching packages.ubuntu.com for libasound_module_pcm_bluetooth.so returned bluez-audio. I grabbed the deb for i386 and copied libasound_module_pcm_bluetooth.so to /usr/lib32/alsa-lib/ and now audio works-sort of. The sound quality is poor: crackling and static. I also still see the following output:
Code:
ALSA lib ../../../src/pcm/pcm_params.c:2135:(snd_pcm_hw_refine_slave) Slave PCM not usable
ALSA lib ../../../src/pcm/pcm_params.c:2135:(snd_pcm_hw_refine_slave) Slave PCM not usable
I think it's quite a shame that there are so many hurdles to getting a bluetooth headset & Skype to work with Ubuntu. Any suggestions on getting Bluetooth headset + Skype + Ubuntu 8.05 amd64 working better?
pangloss is offline   Reply With Quote
Old May 10th, 2008   #6
gattopi
Spilled the Beans
 
Join Date: Jan 2008
Beans: 14
Re: My Solution: Hardy 8.04 and Bluetooth headsets

Thanks the Blue Audio is go..
But Skype have error: Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so

Help me Bye
gattopi is offline   Reply With Quote
Old May 11th, 2008   #7
psyke777
5 Cups of Ubuntu
 
Join Date: Jul 2007
Beans: 15
Re: My Solution: Hardy 8.04 and Bluetooth headsets

Quote:
Originally Posted by gattopi View Post
Thanks the Blue Audio is go..
But Skype have error: Cannot open shared library /usr/lib32/alsa-lib/libasound_module_pcm_bluetooth.so

Help me Bye
I will assume you are using 64-bit. See the post above yours. I use 32-bit and so I cannot help you.
psyke777 is offline   Reply With Quote
Old May 11th, 2008   #8
gattopi
Spilled the Beans
 
Join Date: Jan 2008
Beans: 14
Re: My Solution: Hardy 8.04 and Bluetooth headsets

Yes I use Ubuntu 64..
Only skype is not works
gattopi is offline   Reply With Quote
Old May 11th, 2008   #9
damis648
May the Ubuntu Be With You!
 
damis648's Avatar
 
Join Date: Jan 2008
Location: the space between spaces.
Beans: 1,652
Re: My Solution: Hardy 8.04 and Bluetooth headsets

I think it is much simpler to go into Bluez preferences and then click the services tab, enable audio service and click add at the bottom? Maybe just me...
damis648 is offline   Reply With Quote
Old May 12th, 2008   #10
Gizmonty
5 Cups of Ubuntu
 
Join Date: Dec 2006
Location: Melbourne, Australia
Beans: 39
Re: My Solution: Hardy 8.04 and Bluetooth headsets

It seems like far more work than it should be but it works and I am very grateful. Thankyou.
Gizmonty is offline   Reply With Quote

Bookmarks

Tags
8.04, bluetooth, hardy, headset, heron

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:01 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry