一天前,或者说在我从 17.04 更新到 17.10 之前,我能够通过蓝牙将我的电脑与耳机连接起来。现在却不行了。我想也许我需要从软件管理器安装蓝牙管理器和蓝牙适配器,但这没有用。有人能建议一些我可以通过终端使用的代码来重新安装蓝牙驱动程序或任何不起作用的东西,这样我就可以重新使用电脑上的蓝牙功能了吗?在设置中,蓝牙,它说现在插入一个适配器即可使用蓝牙。之前没有这么说。
brian@brian-Gazelle-Professional:~$ sudo 服务蓝牙状态 [sudo] brian 的密码: ● bluetooth.service - 蓝牙服务 已加载:已加载(/lib/systemd/system/bluetooth.service;已启用;供应商预设) 活跃:不活跃(死亡) 文档:man:bluetoothd(8) brian@brian-Gazelle-Professional:~$ dmesg | grep -i blue [1837.682565] 审计:类型=1400 审计(1509035362.629:112):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.bluetoothctl”pid=5534 comm=“apparmor_parser” [1837.739136] 审计:类型=1400 审计(1509035362.686:113):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.bluez”pid = 5536 comm=“apparmor_parser” [1837.796899] 审计:类型=1400 审计(1509035362.743:114):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.btmgmt”pid=5538 comm=“apparmor_parser” [1837.855706] 审计:类型=1400 审计(1509035362.802:115):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.btmon”pid=5540 comm=“apparmor_parser” [1837.906840] 审计:类型=1400 审计(1509035362.853:116):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.hciattach”pid=5542 comm=“apparmor_parser” [1837.960018] 审计:类型=1400 审计(1509035362.906:117):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.hciconfig”pid = 5544 comm=“apparmor_parser” [1838.017010] 审计:类型=1400 审计(1509035362.963:118):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.hcidump”pid=5546 comm=“apparmor_parser” [1838.071942] 审计:类型=1400 审计(1509035363.018:119):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.hcitool”pid=5548 comm=“apparmor_parser” [1838.121894] 审计:类型=1400 审计(1509035363.068:120):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.obex”pid=5550 comm=“apparmor_parser” [1838.170836] 审计:类型=1400 审计(1509035363.117:121):apparmor =“STATUS”操作=“profile_load”配置文件=“unconfined”名称=“snap.bluez.obexctl”pid=5552 comm=“apparmor_parser”
答案1
我昨天将 Kubuntu 从 17.04 升级到了 17.10。
对我来说基本上是同样的问题,即使我的蓝牙服务正在运行,我也无法再连接我的蓝牙扬声器(RYGHT TANK)。
这是我的sudo service bluetooth status
结果dmesg | grep -i blue
:
soul@soul-ZBOX-ID88-ID89-ID90:~$ sudo service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2017-10-27 23:50:19 CEST; 5min ago
Docs: man:bluetoothd(8)
Main PID: 11613 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─11613 /usr/lib/bluetooth/bluetoothd
oct. 27 23:50:18 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service...
oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Bluetooth daemon 5.46
oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service.
oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Starting SDP server
oct. 27 23:50:19 soul-ZBOX-ID88-ID89-ID90 bluetoothd[11613]: Bluetooth management interface 1.14 initialized
soul@soul-ZBOX-ID88-ID89-ID90:~$ dmesg | grep -i blue
[ 21.008903] Bluetooth: Core ver 2.22
[ 21.008918] Bluetooth: HCI device and connection manager initialized
[ 21.008920] Bluetooth: HCI socket layer initialized
[ 21.008922] Bluetooth: L2CAP socket layer initialized
[ 21.008927] Bluetooth: SCO socket layer initialized
[ 31.455093] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 31.455095] Bluetooth: BNEP filters: protocol multicast
[ 31.455098] Bluetooth: BNEP socket layer initialized
[ 116.012720] Bluetooth: RFCOMM TTY layer initialized
[ 116.012730] Bluetooth: RFCOMM socket layer initialized
[ 116.012738] Bluetooth: RFCOMM ver 1.11
尝试连接后的消息的屏幕打印: 连接失败
任何想法?
编辑(11/05):
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2017-11-05 09:42:42 CET; 7h ago
Docs: man:bluetoothd(8)
Main PID: 958 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─958 /usr/lib/bluetooth/bluetoothd
nov. 05 09:42:40 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service...
nov. 05 09:42:40 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Bluetooth daemon 5.46
nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Starting SDP server
nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: Bluetooth management interface 1.14 initialized
nov. 05 09:42:42 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service.
nov. 05 16:32:46 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available
nov. 05 16:32:54 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available
nov. 05 16:33:02 soul-ZBOX-ID88-ID89-ID90 bluetoothd[958]: a2dp-sink profile connect failed for FC:58:FA:55:F4:68: Protocol not available
编辑(11/05)(安装pulseaudio-module-bluetooth之后):
soul@soul-ZBOX-ID88-ID89-ID90:~$ service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2017-11-05 17:05:04 CET; 3min 32s ago
Docs: man:bluetoothd(8)
Main PID: 875 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─875 /usr/lib/bluetooth/bluetoothd
nov. 05 17:04:57 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Starting Bluetooth service...
nov. 05 17:04:58 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Bluetooth daemon 5.46
nov. 05 17:05:04 soul-ZBOX-ID88-ID89-ID90 systemd[1]: Started Bluetooth service.
nov. 05 17:05:04 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Starting SDP server
nov. 05 17:05:05 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Bluetooth management interface 1.14 initialized
nov. 05 17:06:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSource
nov. 05 17:06:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Endpoint registered: sender=:1.69 path=/MediaEndpoint/A2DPSink
nov. 05 17:07:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
nov. 05 17:07:23 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: connect error: Connection refused (111)
nov. 05 17:07:26 soul-ZBOX-ID88-ID89-ID90 bluetoothd[875]: connect error: Connection refused (111)
编辑(11/05 得到它!):我最终找到了一个解决方案:
sudo apt install kmix
reboot
然后
sudo apt install pulseaudio-module-bluetooth
reboot
pactl load-module module-bluetooth-discover
(最后一个命令可能失败)
然后删除所有已保存的蓝牙设备并重新配对。