18.04 蓝牙崩溃

18.04 蓝牙崩溃

您好,我有一台 Dell Precision 5520(2018 年 2 月购买),配备 Qualcomm Atheros QCA6174 802.11ac 无线网络适配器,运行 Ubuntu 18.04。

我在笔记本电脑和 Logitech MX Master 无线鼠标之间的蓝牙连接方面遇到了麻烦。电脑每天都会多次与鼠标失去连接。当这种情况发生时,屏幕右上角的蓝牙图标就会消失。检查蓝牙系统偏好设置面板,蓝牙已关闭。我可以将开关切换到“开”,但蓝牙仍然处于关闭状态。无论是重新启动电脑还是关闭电脑电源都无法恢复蓝牙。$ sudo service bluetooth restart也不起作用。我发现重新启用蓝牙的唯一方法是:

  1. 重启
  2. 在 BIOS 中禁用蓝牙
  3. 重启
  4. 在 BIOS 中启用蓝牙
  5. 重启

另外,直到上周五我还在运行 Ubuntu 16.04。我在 16.04 下也遇到过这个问题,但发生的频率要低得多(大约每两周一次)。我先升级到 18.04,然后才升级到 18.04.1,希望更新的内核/驱动程序能更好地与我的全新硬件配合使用。现在,在 18.04 下,蓝牙每天都会崩溃多次。

$ grep blue /var/log/syslog这是蓝牙崩溃后立即的输出。

Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:dev_class_changed_callback() Class: 0x000000
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:new_settings_callback() Settings: 0x00000ada
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:settings_changed() Changed settings: 0x00000001
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:cancel_passive_scanning()
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_remove_connection()
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_remove_connection()
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_stop() adapter /org/bluez/hci0 has been disabled
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/device.c:att_disconnected_cb()
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/device.c:att_disconnected_cb() Software caused connection abort (103)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278ad2320: device F9:9B:77:D9:08:61 profile batt-profile state changed: connected -> disconnecting (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278ad2320: device F9:9B:77:D9:08:61 profile batt-profile state changed: disconnecting -> disconnected (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278ad2230: device F9:9B:77:D9:08:61 profile deviceinfo state changed: connected -> disconnecting (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278ad2230: device F9:9B:77:D9:08:61 profile deviceinfo state changed: disconnecting -> disconnected (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278adce30: device F9:9B:77:D9:08:61 profile gap-profile state changed: connected -> disconnecting (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278adce30: device F9:9B:77:D9:08:61 profile gap-profile state changed: disconnecting -> disconnected (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278adc150: device F9:9B:77:D9:08:61 profile input-hog state changed: connected -> disconnecting (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: attrib/gattrib.c:g_attrib_unref() 0x565278add490: g_attrib_unref=1
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278adc150: device F9:9B:77:D9:08:61 profile input-hog state changed: disconnecting -> disconnected (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:btd_gatt_client_disconnected() Device disconnected. Cleaning up.
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: attrib/gattrib.c:g_attrib_unref() 0x565278add490: g_attrib_unref=0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:index_removed() index 0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_unregister() Unregister path: /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_remove() Removing adapter /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/device.c:device_remove() Removing device /org/bluez/hci0/dev_F9_9B_77_D9_08_61
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278ad2320: device F9:9B:77:D9:08:61 profile batt-profile state changed: disconnected -> unavailable (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/battery/battery.c:batt_remove() BATT profile remove (F9:9B:77:D9:08:61)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:btd_service_unref() 0x565278ad2320: ref=0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278ad2230: device F9:9B:77:D9:08:61 profile deviceinfo state changed: disconnected -> unavailable (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:btd_service_unref() 0x565278ad2230: ref=0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278adce30: device F9:9B:77:D9:08:61 profile gap-profile state changed: disconnected -> unavailable (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/gap/gas.c:gap_remove() GAP profile remove (F9:9B:77:D9:08:61)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:btd_service_unref() 0x565278adce30: ref=0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:change_state() 0x565278adc150: device F9:9B:77:D9:08:61 profile input-hog state changed: disconnected -> unavailable (0)
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:btd_service_unref() 0x565278adc150: ref=1
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/input/hog.c:hog_remove() path /org/bluez/hci0/dev_F9_9B_77_D9_08_61
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/service.c:btd_service_unref() 0x565278adc150: ref=0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/device.c:btd_device_unref() Freeing device /org/bluez/hci0/dev_F9_9B_77_D9_08_61
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service0008
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service0008/char0009
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_descriptor() Removing GATT descriptor: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service0008/char0009/desc000b
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service000c
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service000c/char000d
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service000c/char000f
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service000c/char0011
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service000c/char0013
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service000c/char0015
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service000c/char0017
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service000c/char0019
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_service() Removing GATT service: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service003f
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_characteristic() Removing GATT characteristic: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service003f/char0040
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/gatt-client.c:unregister_descriptor() Removing GATT descriptor: /org/bluez/hci0/dev_F9_9B_77_D9_08_61/service003f/char0040/desc0042
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/device.c:device_free() 0x565278adc490
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: plugins/hostname.c:hostname_remove()
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/a2dp.c:media_server_remove() path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/media.c:release_endpoint() sender=:1.452 path=/MediaEndpoint/A2DPSource
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10003
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/media.c:release_endpoint() sender=:1.452 path=/MediaEndpoint/A2DPSource
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: Endpoint unregistered: sender=:1.452 path=/MediaEndpoint/A2DPSource
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.452 path=/MediaEndpoint/A2DPSource
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x565278ade790 unregistered: type:0 codec:0 seid:1
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/media.c:release_endpoint() sender=:1.452 path=/MediaEndpoint/A2DPSink
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10004
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/media.c:release_endpoint() sender=:1.452 path=/MediaEndpoint/A2DPSink
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: Endpoint unregistered: sender=:1.452 path=/MediaEndpoint/A2DPSink
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/media.c:media_endpoint_destroy() sender=:1.452 path=/MediaEndpoint/A2DPSink
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/avdtp.c:avdtp_unregister_sep() SEP 0x565278ae1c90 unregistered: type:1 codec:0 seid:2
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/profile.c:ext_adapter_remove() "Headset Voice gateway" removed
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10005
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/a2dp.c:a2dp_source_server_remove() path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/a2dp.c:a2dp_sink_server_remove() path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/avrcp.c:avrcp_target_server_remove() path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10002
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/audio/avrcp.c:avrcp_controller_server_remove() path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_service_remove() /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:remove_uuid() sending remove uuid command for index 0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/sdpd-service.c:remove_record_from_server() Removing record with handle 0x10001
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/network/manager.c:nap_server_remove() path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/network/manager.c:gn_server_remove() path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/network/manager.c:panu_server_remove() path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: profiles/network/server.c:path_unregister() Unregistered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:btd_adapter_unref() Freeing adapter /org/bluez/hci0
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/adapter.c:adapter_free() 0x565278acdb00
Jun  6 09:12:41 Precision-5520 bluetoothd[3189]: src/rfkill.c:rfkill_event() RFKILL event idx 9 type 2 op 1 soft 0 hard 0
Jun  6 09:12:42 Precision-5520 systemd[1]: bluetooth.target: Unit not needed anymore. Stopping.

我是 Ubuntu 新手,不知道下一步该怎么做。任何见解或帮助都将不胜感激。这很快就会变得烦人!谢谢。

答案1

我在 ubuntu 16.04 上有时会遇到蓝牙问题,我用另一个应用程序解决了这个问题

sudo apt install blueman

所以我的蓝牙连接问题基本解决了,并且可以配置多个蓝牙适配器的处理。

所以我不是硬件专家。

相关内容