Debian 支持蓝牙音响

当USB蓝牙查到电脑上看看电脑是否识别:

$ lsusb 
Bus 003 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

可以看到已经识别了USB蓝牙设备

$ lsmod | grep bluetooth
bluetooth             516096  37 bnep,btbcm,btrtl,btusb,rfcomm,btintel
rfkill                 24576  5 bluetooth
crc16                  16384  1 bluetooth
驱动程序已经加载。

所以接下来应该主要是应用层的问题。

参考文章:https://wiki.debian.org/BluetoothUser/a2dp

这里主要用到是a2dp:

A2DP is the "Advanced Audio Distribution Profile" which describes how Bluetooth devices can stream stereo-quality audio to remote devices. It enables connecting high quality audio bluetooth devices, such as headphones and speakers, to your system.  蓝牙音频传输程序。

apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol bluez-firmware
<pre name="code" class="python">apt-get install blueman   //非常好用的linux 蓝牙设备管理程序  图形界面的

 

此时安装结束,使用Bluetooth Manager已经可以搜索到设备并连接到电脑了,但是播放发现并没有声音。

解决过程参考:http://askubuntu.com/questions/775523/after-updating-to-16-04-bluetooth-audio-a2dp-mode-stopped-working

声明:我的版本的系统里面没有“/etc/bluetooth/audio.conf” 这个文件,一开始以为是没有这个音频配置文件而引起的问题,最后发现并不是,这个文件已经被舍弃使用了。

这里只是参考了后面的3 4 步骤:

编辑:/etc/pulse/default.pa 成下面的形式,即在这一行前面加一个# 号即可。

#load-module module-bluetooth-discover

然后,编辑 /usr/bin/start-pulseaudio-x11加入一行: /usr/bin/pactl load-module module-bluetooth-discover 像下面这样即可:

if [ x"$SESSION_MANAGER" != x ] ; then
    /usr/bin/pactl load-module module-x11-xsmp "display=$DISPLAY session_manager=$SESSION_MANAGER" > /dev/null
    # add this line here:
    /usr/bin/pactl load-module module-bluetooth-discover
fi

重启一下。

这时连接蓝牙音响后,在声音管理界面的 Output选项中就可以看到新增加的 Speaker - C6  线面的Profile显示为:High Fidelity Playback(A2DP Sink)选择后关闭窗口,此时蓝牙音响已经又声音输出。

  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值