我必须改变
[General]
Enable = Socket
在 /etc/bluetooth/audio.conf 中将其配对。但是现在它们配对了,我在 pavucontrol 中没有得到输出。
D: [pulseaudio] bluetooth-util.c: Registering /MediaEndpoint/HFPAG on adapter /org/bluez/3855/hci0.
D: [pulseaudio] bluetooth-util.c: Registering /MediaEndpoint/HFPHS on adapter /org/bluez/3855/hci0.
D: [pulseaudio] bluetooth-util.c: Registering /MediaEndpoint/A2DPSource on adapter /org/bluez/3855/hci0.
D: [pulseaudio] bluetooth-util.c: Registering /MediaEndpoint/A2DPSink on adapter /org/bluez/3855/hci0.
E: [pulseaudio] bluetooth-util.c: org.bluez.Media.RegisterEndpoint() failed: org.bluez.Error.AlreadyExists: Already Exists
E: [pulseaudio] bluetooth-util.c: org.bluez.Media.RegisterEndpoint() failed: org.bluez.Error.AlreadyExists: Already Exists
E: [pulseaudio] bluetooth-util.c: org.bluez.Media.RegisterEndpoint() failed: org.bluez.Error.AlreadyExists: Already Exists
E: [pulseaudio] bluetooth-util.c: org.bluez.Media.RegisterEndpoint() failed: org.bluez.Error.AlreadyExists: Already Exists
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'disconnected'
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'disconnected'
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'disconnected'
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'disconnected'
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'connected'
D: [pulseaudio] bluetooth-util.c: dbus: property 'State' changed to value 'connected'
D: [pulseaudio] bluetooth-util.c: Unknown Bluetooth minor device class 0
D: [pulseaudio] module-card-restore.c: Not restoring profile for card bluez_card.C8_84_47_15_B7_34, because already set.
I: [pulseaudio] module-card-restore.c: Restoring port latency offsets for card bluez_card.C8_84_47_15_B7_34.
I: [pulseaudio] card.c: Created 2 "bluez_card.C8_84_47_15_B7_34"
W: [pulseaudio] module-bluetooth-device.c: Profile has no transport
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
I: [pulseaudio] card.c: Changed profile of card 2 "bluez_card.C8_84_47_15_B7_34" to off
I: [pulseaudio] module.c: Loaded "module-bluetooth-device" (index: #22; argument: "address=C8:84:47:15:B7:34 profile=a2dp").
I: [alsa-source] alsa-source.c: Scheduling delay of 10,06ms, you might want to investigate this to improve latency...
I: [alsa-source] ratelimit.c: 5 events suppressed
I: [alsa-source] alsa-source.c: Overrun!
I: [alsa-source] alsa-source.c: Increasing minimal latency to 2,00 ms
D: [alsa-source] alsa-source.c: latency set to 20,00ms
D: [alsa-source] alsa-source.c: hwbuf_unused=62008
D: [alsa-source] alsa-source.c: setting avail_min=442
我该怎么做才能让它工作?
问候,
编辑:
>>> 2 sink(s) available.
index: 0
name: <alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1>
driver: <module-alsa-card.c>
[...cut...]
index: 1
name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
driver: <module-alsa-card.c>
[...cut...]
编辑2:
在 pavucontrol 中,我有“(34)Logitech Adapter”。如果我将配置文件从“关闭”更改为“高保真播放 (A2DP)”,那么我会从 pulseaudio 收到以下消息:
W: [pulseaudio] module-bluetooth-device.c: Profile has no transport
编辑3:
有趣的是,通过 blueman 断开设备会导致 pulseaudio 崩溃:
E: [pulseaudio] hook-list.c: Assertion 'hook->n_firing == 0' failed at pulsecore/hook-list.c:51, function pa_hook_done(). Aborting.
编辑4:
升级到 13.10 也没有解决问题。似乎与 bluez 和 pulseaudio 以及某些硬件存在一些不兼容问题...
编辑5:
flo@io2:~$ bt-autoconnect -v
(bt-autoconnect.py:11935): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:3274:48: Expected ',' in color definition
bt-autoconnect 1.0.1 scanning: C8:84:47:15:B7:34
17193981.46: (<type 'exceptions.IndexError'>, IndexError('list index out of range',), <traceback object at 0x26a3170>)
Unable to run PulseAudio CLI
17193981.46: Found BT-device: /org/bluez/10082/hci0/dev_C8_84_47_15_B7_34
17193981.46: Connecting to DBus: /org/bluez/10082/hci0/dev_C8_84_47_15_B7_34
17193993.18: (<class 'dbus.exceptions.DBusException'>, DBusException('Connect Failed',), <traceback object at 0x26a3200>)
17193994.18: (<class 'dbus.exceptions.DBusException'>, DBusException('Connect Failed',), <traceback object at 0x26a3170>)
17193995.18: (<class 'dbus.exceptions.DBusException'>, DBusException('Connect Failed',), <traceback object at 0x26a3248>)
17193996.18: (<class 'dbus.exceptions.DBusException'>, DBusException('Connect Failed',), <traceback object at 0x26a31b8>)
17193996.2: ['C8:84:47:15:B7:34', '5', 'N', 'N', 'N']
No PulseAudio daemon running, or not running as session daemon.
答案1
我很长时间都在寻找解决方案,最后那个链接帮助了我: http://ubuntuforums.org/showthread.php?t=2246613
Ubuntu 14.04 音频接收器问题至 Logitech 无线适配器
你好,jcmoriaud。我最近遇到了这个问题,因为我买了一个蓝牙扬声器并试图用我的笔记本电脑连接到它。它一直显示“连接失败:流设置失败”。我最终想出了如何让它像这样工作。您需要安装 pulseaudio,您可以在 Synaptic 软件包管理器中通过在搜索栏中输入 pulseaudio 来检查。如果尚未安装,您可以从那里安装它。接下来,您需要安装 pavucontrol,可以在 Synaptic 软件包管理器中安装,也可以在终端中运行它。代码:sudo apt-get install pavucontrol 这是不幸的部分。每次启动时,您都需要在任何蓝牙设备尝试连接之前在终端中运行此命令。代码:pactl load-module module-bluetooth-discover 您现在可以进入蓝牙管理器并告诉它作为 A2DP 音频接收器连接到设备。现在,最后,如果您进入 PulseAudio 音量控制,在“播放”选项卡上,您可以选择通过蓝牙设备发送音频的选项。祝你好运。”
我将其与 Blueman (GTK+ 蓝牙管理器) 一起使用
答案2
我也遇到过类似的问题。我设法通过从问题开头引用的 /etc/bluetooth/audio.conf 中的启用行中删除 Socket 来使其正常工作。接下来,从命令行运行:
pactl load-module module-bluetooth-discover
然后您应该能够正确连接到蓝牙音频设备。
答案3
在我清洁键盘之后,我的立体声音响系统就不再有声音了,我通过 Logitech Audio 蓝牙适配器的克隆版连接到了我的 Ubuntu 笔记本电脑。
经过大量浪费时间的研究后,我找到了这个简单的解决方案:
- 确保有连接。播放音乐时,你可以看到 MB 传输上升(=数据传输)。
- 在终端窗口中,运行 pavucontrol
- 在 pavucontrol 中转到“音频输出”选项卡(我使用的是荷兰语版本,所以不确定它的英语名称是什么)。
- 寻找你的蓝牙适配器。我的适配器名为“Esinkin BT Adapter”。
- 就我而言,“Esinkin BT Adapter”已静音。取消静音按钮后,音乐通过扬声器传出,加载且清晰。是的!