![]() |
![]() OCAU News - Wiki - PC Database - QuickLinks - Pix - Sponsors |
|
|||||||
|
Sign up for a free OCAU account and this ad will go away! |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 4,472
|
NOTE: This instruction does not work with Ubuntu Jaunty 9.04. Please refer to this guide for connecting your Bluetooth headset with Jaunty.
Just bought myself a cheap Bluetooth headset, so here's a HowTo on how to hook it up to Ubuntu and redirect your music and media players to it. This guide is based on the guides at Ubuntu Forums with some modifications to be more step-explicit and thus newbie-friendly. Purpose: To play your audio such as MP3's and movie output through a Bluetooth-connected audio headset. Scenario: You are too lazy to plug in a cable to your PC. You want to walk around your house without a long cable after you. You want to look cool to your mates. You want to psyche out your non-tech parents by listening to music without any audio device or cables attached to you. Problem is, very few Linux apps have direct support for directing sound to any other device. Solution: Redirect all audio using the PulseAudio Server on Ubuntu Hardy. Prerequisites:
Cons:
These instructions should be adaptable to other distributions.
__________________
Sometimes... I dream about cheese... Last edited by HyRax1; 13th May 2009 at 3:52 PM. Reason: Added disclaimer for Ubuntu Jaunty. |
|
|
|
|
|
#2 | |
|
New Member
Join Date: Jul 2008
Posts: 1
|
Quote:
thank you for this detailed how-to. I am curious if you or any other readers know how to disable this login sound from playing from the newly plugged in or "bonded" headset. I have all of my system sounds set to 'none' but apparently that is irrelevant. any info would be appreciated. thanks again, jacob |
|
|
|
|
|
|
#3 | |
|
Member
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 4,472
|
Quote:
Code:
$ aplay -D bluetooth -f s16_le /usr/share/sounds/question.wav Now, if you're referring to the login sound that plays when you plug in a USB headset or similar, then I can't say I've ever been bothered by it (personally I think it's cool), so I don't know if there's a config file somewhere to change this, but you could always rename the login.wav file to something else so that it cannot be found to play in the first place.
__________________
Sometimes... I dream about cheese... |
|
|
|
|
|
|
#4 |
|
Member
Join Date: May 2008
Location: Peterboro, Distro:Ubuntu
Posts: 212
|
This forum should have a +Rep facility.
Thats a good "how to" dude.. Worthy of Rep |
|
|
|
|
|
#5 | |
|
Member
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 4,472
|
Quote:
__________________
Sometimes... I dream about cheese... |
|
|
|
|
|
|
#6 |
|
Member
Join Date: Jul 2008
Posts: 2
|
Hi guys,
I have been following this how-to with great success until step 23 where we play a sample file. I get the following error john@john-laptop-Ubuntu:~$ aplay -D bluetooth -f s16_le /usr/share/sounds/login.wav Playing WAVE '/usr/share/sounds/login.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo aplay: set_params:906: Channels count non available I google this error but didn't get any information that was clear enough/relevant to this particular scenario. Now I do have to admit that I am new to Linux and this is my first sortie into using this OS. The pc (Dell Inspiron 1150)has a virgin Ubuntu (Hardy Heron) installation, a Belkin F8T012 dongle and the headset is a Plantronics 520. Can anyone give me any pointers/recommendations for follow to get past the above error. Le meas, John |
|
|
|
|
|
#7 |
|
Member
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 4,472
|
That error comes up when there's an issue with more than one sound interface on the system (which technically you have in this instance).
Does the sound play through your speakers if you specify "default" instead of "bluetooth" in the aplay command? If it does, then double-check that the headset is paired properly. Did Ubuntu prompt you for the headset's PIN to connect?
__________________
Sometimes... I dream about cheese... |
|
|
|
|
|
#8 |
|
Member
Join Date: Jul 2008
Posts: 2
|
Hi HyRax1,
Thanks for the quick reply. The sound does play to the speakers when I use "default" instead of "bluetooth". The headset appears to be paired ok, in that when I turn the headset on I'm prompted to grant authorisation, to which I reply yes. It would appear that the pc must have the passkey stored somewhere. I tried to disconnect so that I could go through the passkey setup again but I never get that step again. Also when I have the headset on and I run the pactl cmds in step 18, the headset makes some beeps. I did proceed to load the Pulse audio device chooser stuff and it all appears to run ok with the default sound card, but still nothing from the bluetooth. John |
|
|
|
|
|
#9 |
|
Member
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 4,472
|
Try:
__________________
Sometimes... I dream about cheese... |
|
|
|
|
|
#10 |
|
New Member
Join Date: Jul 2008
Posts: 2
|
I have followed your instructions which were great. However, all I get when trying to play sounds is crackle noises. This is on a Dell HCB29 headset.
|
|
|
|
|
|
#11 | |
|
Member
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 4,472
|
Quote:
EDIT: Googling around, there seems to be others having similar crackling issues with Dell-branded Bluetooth devices, and its not necessarily to do with the headset itself either. What Bluetooth dongle/device are you using?
__________________
Sometimes... I dream about cheese... Last edited by HyRax1; 18th July 2008 at 6:32 AM. Reason: Research on the problem. |
|
|
|
|
|
|
#12 |
|
New Member
Join Date: Jul 2008
Posts: 2
|
The computer I am running on is a Dell Vosto 1700 with a built in Broadcom bluetooth adaptor. Everything works fine in Skype as far as talking and listening. However, Skype is not using Pulse Audio as far as I know. When I try to listen to Music or anything in Pulse Audio I get the noise. Thanks for any help you mat provide, this was a great tutorial.
|
|
|
|
|
|
#13 |
|
New Member
Join Date: Jul 2008
Posts: 4
|
Hi HyRax1
I really apreciate this thread, it helps me to understand the way that bluetooth works, but... XD, i have a strange issue, i really follow all the steps, but when i try to play a sound in a Sample Cache, like gnome star, select Play_Back on: alsa_output.bluetooth i just hear a noise "ssssssssss", the same case for ever sound that i send to this device (selected in Volume Manager), in the step 23, i can hear the file correctly, even if i ignore the PA, and i configure i.e. the amarok to work with alsa and put the bluetooth for output device works fine. Thanks in advance if you can give me some ideas for correct the problem... |
|
|
|
|
|
#14 | |
|
Member
Join Date: Jun 2001
Location: At a desk. Distro:Ubuntu
Posts: 4,472
|
Quote:
__________________
Sometimes... I dream about cheese... |
|
|
|
|
|
|
#15 |
|
New Member
Join Date: Jul 2008
Posts: 4
|
I just hear noise through my headset , but in step 23 i hear the sound fine, I'm trying to find some suspicious on the system logs....
Last edited by ..:Be_Mons:..; 25th July 2008 at 5:26 AM. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| audio, bluetooth, guide, hardy, howto, ubuntu |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|