蓝牙耳机在 ubuntu 8.04 的配对

本文提供了一种在Ubuntu 8.04 Hardy系统中解决蓝牙立体声耳机A2DP配对问题的方法。通过手动配置蓝牙设备参数及音频配置文件,可以成功建立蓝牙连接并完成配对过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Bluetooth Stereo Headset A2DP Pairing in Ubuntu 8.04 Hardy

Well, I got my HTC stereo a2dp headset in. 

While pairing was very straight-forward on my WinMo phone, it wasnt quite so obvious in Ubuntu.

(对8.04下的版本而言, 因取消了gbscto)

The problem is like any other Bluetooth device in Ubuntu you simply click on the Bluetooth icon, select “Browse Device”, and an authentication pop-up appears.   Apparently behind the scenes the gnome bluetooth manager is trying to establish an OBEX file connection with the device which a Headset generally does not have, thus you will get an OBEX error before the pairing process is complete.  Instead you need to establish an audio connection with it to trigger the authentication process, which seemingly the gnome bluetooth manager cannot do via a GUI. 转文件会弹出认证窗口?

Here is what I did (based on http://wiki.bluez.org/wiki/HOWTO/AudioDevices):

Determine the MAC address of the headset.  Place device in discovery mode and run
# hcitool scan
Copy the MAC address of the BT adapter

Setup BT Master Mode for devices (avoid skipping):
- Create file /etc/default/hcid.conf  (replace XX with your mac address)

device XX:XX:XX:XX:XX:XX {
name “HTC Headset”;
auth enable;
lm master;
passkey “0000″;
}

- Create personal ALSA sound profile as ~/.asoundrc
pcm.bluetooth {
type bluetooth
device XX:XX:XX:XX:XX:XX
profile “hifi”
}

Initiate a connection and start the pairing process
# mplayer -ao alsa:device=bluetooth someaudiofile.mp3

Gnome will popup an authentication dialog, enter in your passkey, and your device will be forever paired in the system.  Done.

 

 

** For General Pulse System Audio  **
- Install PulseAudio Volume Control:
# apt-get install pavucontrol
- Load modules for bluetooth:

# pactl load-module module-alsa-sink device=bluetooth
# pactl load-module module-alsa-source device=bluetooth

- Run a program using PulseAudio
# totem
- Run PulseAudio Volume Control:
# pavucontrol
- Right Click playback audio source and select “Bluetooth”.
- Whoila

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值