Use*_*ame 103 debian audio bluetooth bluez
我正在运行 Debian Jessie 8.2。我有一个蓝牙 USB 加密狗连接到我的机器。
我运行sudo bluetoothctl -a然后执行以下操作:
[NEW] Controller 5C:F3:70:6B:57:60 debian [default]
Agent registered
[bluetooth]# scan on
Discovery started
[CHG] Controller 5C:F3:70:6B:57:60 Discovering: yes
[bluetooth]# devices
[NEW] Device 08:DF:1F:A7:B1:7B Bose Mini II SoundLink
[bluetooth]# pair 08:DF:1F:A7:B1:7B
Attempting to pair with 08:DF:1F:A7:B1:7B
[CHG] Device 08:DF:1F:A7:B1:7B Connected: yes
[CHG] Device 08:DF:1F:A7:B1:7B UUIDs:
0000110b-0000-1000-8000-00805f9b34fb
0000110c-0000-1000-8000-00805f9b34fb
0000110e-0000-1000-8000-00805f9b34fb
0000111e-0000-1000-8000-00805f9b34fb
00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 08:DF:1F:A7:B1:7B Paired: yes
Pairing successful
[CHG] Device 08:DF:1F:A7:B1:7B Connected: no
[bluetooth]# trust 08:DF:1F:A7:B1:7B
[CHG] Device 08:DF:1F:A7:B1:7B Trusted: yes
Changing 08:DF:1F:A7:B1:7B trust succeeded
[bluetooth]# connect 08:DF:1F:A7:B1:7B
Attempting to connect to 08:DF:1F:A7:B1:7B
Failed to connect: org.bluez.Error.Failed
Run Code Online (Sandbox Code Playgroud)
但是我可以通过这种方式连接到我的 iPhone。为什么我无法连接到 Bose Mini II SoundLink 扬声器?
Edw*_*lds 132
这可能是由于pulseaudio-module-bluetooth未安装软件包。如果丢失,请安装它,然后重新启动pulseaudio。
sudo apt install pulseaudio-module-bluetooth
pulseaudio -k
pulseaudio --start
Run Code Online (Sandbox Code Playgroud)
如果问题不是由于缺少包造成的,那么这种情况下的问题是 PulseAudio 没有赶上。此问题的常见解决方案是重新启动 PulseAudio。请注意,当 PulseAudio 以用户身份运行时,以 root 身份运行 bluetoothctl 完全没问题。重启 PulseAudio 后,重试连接。无需重复配对。
仅当以上不适合您时才继续尝试第二部分:
如果重启PulseAudio不起作用,则需要加载module-bluetooth-discover。
sudo pactl load-module module-bluetooth-discover
Run Code Online (Sandbox Code Playgroud)
可以将相同的 load-module 命令添加到/etc/pulse/default.pa. 如果这仍然不起作用,或者您正在使用 PulseAudio 的系统范围模式,还请加载以下 PulseAudio 模块(同样可以通过您的 default.pa 或 system.pa 加载):
module-bluetooth-policy
module-bluez5-device
module-bluez5-discover
Run Code Online (Sandbox Code Playgroud)
Dav*_*ung 47
在配对设备之前先尝试信任设备。
我在尝试将 AirPods 与 Ubuntu 16.04 配对时遇到了同样的错误。
在带有 sudo 的 bluetoothctl 中,我得到了
Attempting to pair with XX:XX:XX:XX:XX:XX
Failed to pair: org.bluez.Error.AuthenticationCanceled
Attempting to connect to XX:XX:XX:XX:XX:XX
Failed to connect: org.bluez.Error.Failed
Run Code Online (Sandbox Code Playgroud)
现在这就是我尝试过的(完全进展)
$ sudo bluetoothctl
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# scan on
[NEW] Device XX:XX:XX:XX:XX:XX David's AirPods
[bluetooth]# scan off
[bluetooth]# trust XX:XX:XX:XX:XX:XX
[bluetooth]# pair XX:XX:XX:XX:XX:XX
Attempting to pair with XX:XX:XX:XX:XX:XX
[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs: ...
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs: ...
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs: ...
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs: ...
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs: ...
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs: ...
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs: ...
[CHG] Device XX:XX:XX:XX:XX:XX UUIDs: ...
[CHG] Device XX:XX:XX:XX:XX:XX Paired: yes
Pairing successful
[CHG] Device XX:XX:XX:XX:XX:XX Connected: no
[bluetooth]# connect XX:XX:XX:XX:XX:XX
Attempting to connect to XX:XX:XX:XX:XX:XX
[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
Connection successful
[bluetooth]# quit
Run Code Online (Sandbox Code Playgroud)
现在 AirPods 在我的 iPhone 和 Ubuntu 之间完美运行。
小智 9
这个程序对我有用,谢谢。
补充评论:
我试图添加一个蓝牙扬声器,这是我收到的错误消息,
[NEW] Device FC:58:FA:B9:BF:A1 Anker A7910
[bluetooth]# connect FC:58:FA:B9:BF:A1
Attempting to connect to FC:58:FA:B9:BF:A1
[CHG] Device FC:58:FA:B9:BF:A1 Connected: yes
Failed to connect: org.bluez.Error.Failed
[CHG] Device FC:58:FA:B9:BF:A1 Connected: no
[CHG] Device FC:58:FA:B9:BF:A1 Connected: yes
[CHG] Device FC:58:FA:B9:BF:A1 Connected: no
Run Code Online (Sandbox Code Playgroud)
我取下设备,然后重复 David Jung 分享的所有陡峭坡度。
这是它现在的样子:
[Anker A7910]# info FC:58:FA:B9:BF:A1
Device FC:58:FA:B9:BF:A1
Name: Anker A7910
Alias: Anker A7910
Class: 0x260404
Icon: audio-card
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: yes
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-800
Run Code Online (Sandbox Code Playgroud)
再次感谢
| 归档时间: |
|
| 查看次数: |
199145 次 |
| 最近记录: |