个人工具
登录
查看“UbuntuHelp:BluetoothAudio/zh”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:BluetoothAudio/zh”的源代码
来自Ubuntu中文
←
UbuntuHelp:BluetoothAudio/zh
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Translation}} {{From|https://help.ubuntu.com/community/BluetoothAudio}} {{Languages|UbuntuHelp:BluetoothAudio}} = 蓝牙音频概况 = 使用蓝牙时有两种不同的音频配置方案,使用哪一个取决于你将如何使用你的耳机以及你如何计划使用它。 "sco" 音频配置是一个低品质、低延时的连接方案。音质近似于无线电话。糟糕的音质在听音乐的时候显得尤为明显。"a2d" 音频配置是一个高品质的压缩连接,并且提供出色的音频品质。截止到2007年7月13日a2d音频驱动无法通过apt获取,而是需要手动编译安装。这是首选的蓝牙音频配置方案。 === 安装低品质"sco" 音频驱动程序 === 注意:原作者已经停止维护此软件 ===== 载入前提: ===== <pre><nowiki> sudo apt-get install bluez-btsco sudo modprobe snd-bt-sco </nowiki></pre> 注意:如果你喜欢让这个模块在启动时被自动加载,运行'gksu gedit /etc/modules' 并加入一行:'snd-bt-sco'。 ==== 确定耳机的蓝牙地址 ==== <ol><li>将设备设置为“配对”模式。这个过程会因耳机不同而所有差异,但通常需要按住电源键10-15秒。 </li><li>打开一个终端运行'hcitool scan'</li></ol> ""注意:我使用的是我的地址'00:07:a4:b8:f9:77'来作为例子。"" ""在余下步骤中,请替换成用从hcitool scan输出的您的地址。"" <ol><li>寻找类似这样的输出</li></ol> <pre><nowiki> ellie@ellie-laptop:~$ hcitool scan Scanning ... 00:07:A4:B8:F0:77 Motorola HT820 ellie@ellie-laptop:~$ </nowiki></pre> <ol><li>编辑 /etc/bluetooth/hcid.conf (gksu gedit /etc/bluetooth/hcid.conf ) 并添加这样一段</li></ol> <pre><nowiki> device 00:07:A4:B8:F9:77 { name "Motorola HT820" auth enable; encrypt enable; } </nowiki></pre> <ol><li>重启蓝牙服务</li></ol> <pre><nowiki> sudo /etc/init.d/bluetooth restart </nowiki></pre> ==== 首次启动"sco"驱动 ==== <ol><li>像前面一样将耳机设置为“配对”模式 </li><li>打开一个终端并运行'btsco -v 00:07:a4:b8:f9:77' </li><li>Gnome蓝牙管理器会向你询问配对的pin码。通常是0000或者1234</li></ol> ==== 测试"sco"驱动 ==== <pre><nowiki> aplay -B 1000000 -D plughw:Headset /usr/share/sounds/login.wav </nowiki></pre> 你会听到Ubuntu登录音。 === 配置在每次启动时自动运行btsco === <ol><li>打开 系统 -> 首选项 -> 启动应用程序 </li><li>点击“添加”。 </li><li>输入名称 "BT Sco Headset audio"。 </li><li>输入命令 '/usr/bin/btsco -r -f 00:07:a4:b8:f9:77' </li><li>点击添加来应用设置</li></ol> ==== 设置耳机为你的默认alsa音频设备 ==== <pre><nowiki> asoundconf set-default-card Headset </nowiki></pre> 这会在你的.asoundrc 文件夹中创建适当的条目。此设置将应用于所有用户。 ==== 蓝牙Sco配置的GUI工具 ==== 一个配置你的蓝牙耳机的替代方法就是使用Gbtsco,一个简单的GUI就能实现我们前面所述的所有辛苦工作。 http://www.stgraber.org/2007/05/20/gbtsco-already-release-02/ 请考虑此时btsco和snd-bt-sco是否被新的bluez发展所支持,但btsco将一直有效直至被一个新的解决方案所取代。更多信息在http://www.bluez.org/ === 安装高品质的"a2d"音频驱动 === bluetooth-alsa报从Ubuntu 7.10 (Gutsy)起开始有效。 ==== 使用"a2d"音频驱动 ==== 通过GUI使用蓝牙管理器以设计方式配对耳机,然而向新的耳机发送声音是不可能使用声音选项的(该选项位于 系统 -> 首选项 -> 声音)。声音选项对话在 Devices > Music and Movies > Sound Playback 下,你应该能够找到配对的蓝牙耳机。然而耳机并没有出现在选项列表中。要想直接输出声音道耳机就打开一个终端窗口并输入如下命令: <pre><nowiki> gconftool -t string -s /system/gstreamer/0.10/default/musicaudiosink "sbcenc ! a2dpsink device=XX:XX:XX:XX:XX:XX" </nowiki></pre> XX:XX:XX:XX:XX:XX就是耳机的物理地址。 执行完该命令后你可以重新打开位于 Devices > Music and Movies > Sound Playback 下的声音选项窗口,这篇区域已经空白了(你的设备无法显示是因为在下拉菜单中耳机并不是一个有效选项)。 想要重定向声音回到计算机的扬声器则选择 Devices > Music and Movies > Sound Playback下的自动检测。 在每次做改变的时候你都需要重启Rhythmbox . 此信息是从这里获取的http://wiki.bluez.org/wiki/HOWTO/AudioDevices. === Troubleshooting === The [[UbuntuHelp:BluetoothSkype|BluetoothSkype]]; page has additional information for configuring the new driver. See [http://bluetooth-alsa.sf.net/contact.html Contact/troubleshooting] for troubleshooting information. There is additional information for audio troubleshooting at [[UbuntuHelp:BluetoothPulseaudioTroubleshooting|BluetoothPulseaudioTroubleshooting]] If you experience drop in audio while you use your bluetooth mouse, change this options in /etc/bluetooth/hcid.conf, device section: Change “lm accept;” to “lm master;” and change “lp rswitch,hold,sniff,park;” to “lp hold,sniff,park;”. Then restart bluetooth (/etc/init.d/bluetooth force-reload). ---- [[category:CategoryBluetooth]] [[category:CategoryAudio]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
模板:Translation
(
查看源代码
)
返回至
UbuntuHelp:BluetoothAudio/zh
。