UBUNTU 20.04 上的蓝牙不断断开

Leo*_*ira 31 mouse headphones bluetooth disconnect 20.04

我已经在笔记本电脑上安装了 Ubuntu 20.04,但蓝牙似乎无法按预期工作。

\n

它正在连接到我的 Logi MX ERGO 设备,也连接到我的 TWS 耳机,但运行一段时间后(显然是随机时间)它停止工作,所以我需要使用触摸板将蓝牙管理器或布鲁斯曼切换为关闭状态,然后再次打开,所以它会自动连接到我的设备...但一段时间后它会再次断开连接;

\n

这是 grep blue /var/log/syslog 的输出

\n
Apr 12 18:06:34 leonardo-G3-3579 bluetoothd[834]: /org/bluez/hci0/dev_60_F4_3A_3A_91_F2/sep2/fd0: fd(53) ready\nApr 12 18:06:46 leonardo-G3-3579 systemd[1]: blueman-mechanism.service: Succeeded.\nApr 12 18:06:49 leonardo-G3-3579 bluetoothd[834]: bt_uhid_send: Invalid argument (22)\nApr 12 18:06:49 leonardo-G3-3579 bluetoothd[834]: message repeated 10 times: [ bt_uhid_send: Invalid argument (22)]\nApr 12 18:08:49 leonardo-G3-3579 bluetoothd[834]: No reply to Suspend request\nApr 12 18:08:53 leonardo-G3-3579 dbus-daemon[838]: [system] Activating via systemd: service name='org.blueman.Mechanism' unit='blueman-mechanism.service' requested by ':1.100' (uid=1000 pid=2163 comm="/usr/bin/python3 /usr/bin/blueman-applet " label="unconfined")\nApr 12 18:08:53 leonardo-G3-3579 blueman-mechanism[4127]: Unable to init server: Could not connect: Connection refused\nApr 12 18:08:53 leonardo-G3-3579 blueman-mechanism[4127]: Unable to init server: N\xc3\xa3o foi poss\xc3\xadvel conectar: Connection refused\nApr 12 18:08:53 leonardo-G3-3579 blueman-mechani[4127]: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed\nApr 12 18:08:53 leonardo-G3-3579 dbus-daemon[838]: [system] Successfully activated service 'org.blueman.Mechanism'\nApr 12 18:08:59 leonardo-G3-3579 bluetoothd[834]: /org/bluez/hci0/dev_60_F4_3A_3A_91_F2/sep2/fd1: fd(39) ready\nApr 12 18:09:23 leonardo-G3-3579 systemd[1]: blueman-mechanism.service: Succeeded.\nApr 12 18:11:47 leonardo-G3-3579 bluetoothd[834]: bt_uhid_send: Invalid argument (22)\nApr 12 18:11:47 leonardo-G3-3579 bluetoothd[834]: message repeated 10 times: [ bt_uhid_send: Invalid argument (22)]\nApr 12 18:11:52 leonardo-G3-3579 dbus-daemon[838]: [system] Activating via systemd: service name='org.blueman.Mechanism' unit='blueman-mechanism.service' requested by ':1.100' (uid=1000 pid=2163 comm="/usr/bin/python3 /usr/bin/blueman-applet " label="unconfined")\nApr 12 18:11:52 leonardo-G3-3579 blueman-mechanism[4425]: Unable to init server: Could not connect: Connection refused\nApr 12 18:11:52 leonardo-G3-3579 blueman-mechanism[4425]: Unable to init server: N\xc3\xa3o foi poss\xc3\xadvel conectar: Connection refused\nApr 12 18:11:52 leonardo-G3-3579 blueman-mechani[4425]: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed\nApr 12 18:11:52 leonardo-G3-3579 dbus-daemon[838]: [system] Successfully activated service 'org.blueman.Mechanism'\nApr 12 18:12:00 leonardo-G3-3579 bluetoothd[834]: bt_uhid_send: Invalid argument (22)\nApr 12 18:12:00 leonardo-G3-3579 bluetoothd[834]: message repeated 9 times: [ bt_uhid_send: Invalid argument (22)]\nApr 12 18:12:10 leonardo-G3-3579 bluetoothd[834]: /org/bluez/hci0/dev_60_F4_3A_3A_91_F2/sep2/fd2: fd(55) ready\nApr 12 18:12:24 leonardo-G3-3579 systemd[1]: blueman-mechanism.service: Succeeded.\nApr 12 18:35:58 leonardo-G3-3579 blueman.desktop[2309]: Traceback (most recent call last):\nApr 12 18:35:58 leonardo-G3-3579 blueman.desktop[2309]:   File "/usr/lib/python3/dist-packages/blueman/main/indicators/GtkStatusIcon.py", line 19, in <lambda>\nApr 12 18:35:58 leonardo-G3-3579 blueman.desktop[2309]:     gtk_item.connect('activate', lambda _, idx=index: activate(idx))\nApr 12 18:35:58 leonardo-G3-3579 blueman.desktop[2309]:   File "/usr/lib/python3/dist-packages/blueman/main/Tray.py", line 37, in _activate_menu_item\nApr 12 18:35:58 leonardo-G3-3579 blueman.desktop[2309]:     return AppletService().ActivateMenuItem('(ai)', indexes)\nApr 12 18:35:58 leonardo-G3-3579 blueman.desktop[2309]:   File "/usr/lib/python3/dist-packages/gi/overrides/Gio.py", line 351, in __call__\nApr 12 18:35:58 leonardo-G3-3579 blueman.desktop[2309]:     result = self.dbus_proxy.call_sync(self.method_name, arg_variant,\nApr 12 18:35:58 leonardo-G3-3579 blueman.desktop[2309]: gi.repository.GLib.Error: g-io-error-quark: Timeout was reached (24)\nApr 12 18:35:58 leonardo-G3-3579 whoopsie-upload-all[6745]: /var/crash/_usr_bin_blueman-tray.1000.crash already marked for upload, skipping\nApr 12 18:35:58 leonardo-G3-3579 whoopsie-upload-all[6745]: /var/crash/_usr_bin_blueman-assistant.1000.crash already marked for upload, skipping\nApr 12 18:53:15 leonardo-G3-3579 dbus-daemon[838]: [system] Activating via systemd: service name='org.blueman.Mechanism' unit='blueman-mechanism.service' requested by ':1.100' (uid=1000 pid=2163 comm="/usr/bin/python3 /usr/bin/blueman-applet " label="unconfined")\nApr 12 18:53:15 leonardo-G3-3579 blueman-mechanism[9135]: Unable to init server: Could not connect: Connection refused\nApr 12 18:53:15 leonardo-G3-3579 blueman-mechanism[9135]: Unable to init server: N\xc3\xa3o foi poss\xc3\xadvel conectar: Connection refused\nApr 12 18:53:15 leonardo-G3-3579 blueman-mechani[9135]: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed\nApr 12 18:53:15 leonardo-G3-3579 dbus-daemon[838]: [system] Successfully activated service 'org.blueman.Mechanism'\nApr 12 18:53:25 leonardo-G3-3579 bluetoothd[834]: /org/bluez/hci0/dev_60_F4_3A_3A_91_F2/sep2/fd3: fd(62) ready\nApr 12 18:53:29 leonardo-G3-3579 bluetoothd[834]: bt_uhid_send: Invalid argument (22)\nApr 12 18:53:29 leonardo-G3-3579 bluetoothd[834]: message repeated 10 times: [ bt_uhid_send: Invalid argument (22)]\nApr 12 18:53:47 leonardo-G3-3579 systemd[1]: blueman-mechanism.service: Succeeded.\n
Run Code Online (Sandbox Code Playgroud)\n

有人遇到过这个问题吗?我阅读了很多论坛主题并尝试了一些替代方案,但没有人为我工作。

\n

对于有关如何解决此问题的任何帮助或参考,我将非常感激。

\n

Tad*_*dej 25

取消注释以下行来/etc/bluetooth/input.conf修复它:

UserspaceHID=true

确保systemctl restart bluetooth应用更改

  • 似乎也适合我(Linux Mint 20.3)。直到几天前,我的 Bose Soundlink II 在开机自动连接后 5 秒内十分之九断开连接,我必须使用蓝牙实用程序手动重新连接。我没有看到任何“确认提示”,但自从应用此修复程序以来,系统已经启动了至少 4 次,而且问题还没有再次出现。非常感谢! (2认同)

小智 16

我有同样的问题。在 Reddit 上找到了解决方案, 请先完全断开设备连接,然后再尝试以下步骤:

跑步

bluetoothctl
Run Code Online (Sandbox Code Playgroud)

您将收到一个新提示,您应该输入

agent on
default agent
Run Code Online (Sandbox Code Playgroud)

然后,使用要连接的设备的 MAC 地址(一长串以冒号分隔的字母数字字符11:BB:3C:44:5E:FF:7G对,类似于 )(您应该能够通过devices在此提示符下键入来找到它),运行

trust <MAC>
pair <MAC>
connect <MAC>
Run Code Online (Sandbox Code Playgroud)

  • 我收到以下信息:“连接失败:org.bluez.Error.Failed”:( (5认同)

归档时间:

查看次数:

47342 次

最近记录:

1 年,10 月 前