This is a really nice feature to have working if you have a Bluetooth headset. Especially for watching movies or listening to music on your laptop. And lately BT under Linux has been making good progress toward becoming seamlessly integrated. Although it still requires a bit of manual configuration. Hopefully this howto will help others get BT audio up and running.
This howto should work equally well under F8 or F9. Of course, you'll need a supported Bluetooth module and BT headset. I use a Motorola S9 headset and it works great.
Some packages you should have:
Code:
yum install bluez-gnome pulseaudio-module-bluetooth bluez-utils-gstreamer bluez-utils-alsa
In order for ALSA to recognize your headset, you need to determine its device MAC address and create a ~/.asoundrc file.
To determine your headset's device MAC, turn it on and issue the command:
You should see something like: 00:11:22:33:44:55. That's the MAC you need, write it down or copy to clipboard.
Next, create the file: ~/.asoundrc (in your home folder) with the following contents:
Code:
pcm.bluetooth {
type plug
slave {
pcm "bluetooth_hw"
}
}
pcm.bluetooth_hw {
type bluetooth
device 00:11:22:33:44:55 # Make sure you put YOUR device MAC here
profile "auto"
}
In order to get PulseAudio to recognize your headset, you need to issue a few commands each time you power up your headset. Eventually someone will add auto-detect functionality, but for now I've just created a script that I launch whenever I want to use my headset. You can add a launcher to your panel beside the volume control for one-click-to-go. The ~/bt_snd script contains:
Code:
#!/bin/bash
pactl load-module module-alsa-sink device=bluetooth
pactl load-module module-alsa-source device=bluetooth
After powering up your headset and running the script, open the PulseAudio volume control. You should see your Bluetooth device under the Output tab. At this point, you can right-click on it to set it as Default, or right-click on individual streams to direct them to the Bluetooth output.
Hope this helps,
Jason