蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 系统管理


Linux配置蓝牙立体声耳机
蓝森林 http://www.lslnet.com 2008年3月5日 04:58






系统配置:Linux debian 2.6.22.6 #7 Mon Sep 3 10:46:00 CST 2007 ppc GNU/Linux


bluetooth software: bluez-lib bluez-utils 均是3.22。bluez.org


bluetooth hardware: iBook G4 内置的CSR 蓝牙2.0芯片、Motorola S705蓝牙立体声耳机,也是CSR 蓝牙2.0芯片。


NOTE: 请在blue-utils ./configure的时候,加上--enable-audio


1、scan你的蓝牙耳机,得到bluetooth address, 并且能够跟主机上的bluetooth正确配对


2、edit $(HOME)/.asoundrc 内容 如下:

pcm.bluetooth{

type bluetooth

device 00:02:76:64:94:F9 //蓝牙耳机地址

}


3、edit /etc/bluetooth/audio.conf, check一下你配置是否正确

[General]

# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)

# Defaults to HCI

SCORouting=HCI

[Headset]

# Defaults to false

DisableHFP=true

[A2DP]

SourceCount=1


4、运行 bluez-utils-6.22/audio 下的bluetoothd-service-audio,安装后一般在/usr/lib/bluetooth下


5、运行mplayer来测试一下你的蓝牙立体声耳机,命令如下: mplayer -ao alsa:device=bluetooth audio/demo.mp3




摘自:蓝森林linux-自由软件



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com