连接到设备几秒钟后蓝牙关闭

连接到设备几秒钟后蓝牙关闭
  • 我在运行 Kubuntu 19 和现在的 20 的同一台计算机上遇到了这个问题。

  • 无论是否安装了 bluedevil、blueman 或 gnome-bluetooth(只安装其中一个),都会发生此问题

  • 我可以扫描设备,例如连接到我的耳机,但几秒钟后,蓝牙设备电源就会关闭。有时它会恢复,然后再次关闭。我该怎么办?似乎类似的问题长期困扰着很多人……有什么解决方案/建议吗?

  • 提前致谢。

请查看以下 /var/log/syslog 的输出。最后,蓝牙管理器仅显示蓝牙已断开连接。

May  4 19:36:58 laptop NetworkManager[1178]: <info>  [1588617418.3845] manager: (C0:BD:C8:E4:34:D6): new Bluetooth device (/org/freedesktop/NetworkManager/Devices/8)
May  4 19:36:58 laptop NetworkManager[1178]: <info>  [1588617418.3849] device (C0:BD:C8:E4:34:D6): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
May  4 19:36:58 laptop NetworkManager[1178]: <info>  [1588617418.3947] device (C0:BD:C8:E4:34:D6): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
May  4 19:37:30 laptop systemd[2468]: Reached target Bluetooth.
May  4 19:37:32 laptop kernel: [35648.423366] usb 1-8: USB disconnect, device number 6
May  4 19:37:32 laptop bluetoothd[1551]: No reply to Open request
May  4 19:37:32 laptop bluetoothd[1551]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
May  4 19:37:32 laptop NetworkManager[1178]: <info>  [1588617452.3624] device (C0:BD:C8:E4:34:D6): state change: disconnected -> unmanaged (reason 'removed', sys-iface-state: 'removed')
May  4 19:37:32 laptop bluetoothd[1551]: Endpoint unregistered: sender=:1.206 path=/MediaEndpoint/A2DPSink/sbc
May  4 19:37:32 laptop bluetoothd[1551]: Endpoint unregistered: sender=:1.206 path=/MediaEndpoint/A2DPSource/sbc
May  4 19:37:32 laptop systemd[1]: Stopped target Bluetooth.
May  4 19:37:32 laptop systemd[2468]: Stopped target Bluetooth.
May  4 19:37:32 laptop kernel: [35648.740064] usb 1-8: new full-speed USB device number 10 using xhci_hcd
May  4 19:37:32 laptop kernel: [35648.893099] usb 1-8: New USB device found, idVendor=8087, idProduct=07dc, bcdDevice= 0.01
May  4 19:37:32 laptop kernel: [35648.893103] usb 1-8: New USB device strings: Mfr=0, Product=0, SerialNumber=0
May  4 19:37:32 laptop kernel: [35648.908496] Bluetooth: hci0: read Intel version: 3707100180012d0d2a
May  4 19:37:32 laptop kernel: [35648.908499] Bluetooth: hci0: Intel device is already patched. patch num: 2a
May  4 19:37:32 laptop bluetoothd[1551]: Endpoint registered: sender=:1.206 path=/MediaEndpoint/A2DPSink/sbc
May  4 19:37:32 laptop bluetoothd[1551]: Endpoint registered: sender=:1.206 path=/MediaEndpoint/A2DPSource/sbc
May  4 19:37:32 laptop NetworkManager[1178]: <info>  [1588617452.9247] manager: (C0:BD:C8:E4:34:D6): new Bluetooth device (/org/freedesktop/NetworkManager/Devices/9)
May  4 19:37:32 laptop NetworkManager[1178]: <info>  [1588617452.9277] device (C0:BD:C8:E4:34:D6): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
May  4 19:37:32 laptop NetworkManager[1178]: <info>  [1588617452.9326] device (C0:BD:C8:E4:34:D6): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
May  4 19:37:33 laptop systemd[1]: Reached target Bluetooth.
May  4 19:37:33 laptop systemd[2468]: Reached target Bluetooth.
May  4 19:37:33 laptop NetworkManager[1178]: <info>  [1588617453.9173] device (C0:BD:C8:E4:34:D6): state change: disconnected -> unmanaged (reason 'removed', sys-iface-state: 'removed')
May  4 19:39:01 laptop systemd[1]: Starting Clean php session files...
May  4 19:39:01 laptop systemd[1]: phpsessionclean.service: Succeeded.
May  4 19:39:01 laptop systemd[1]: Finished Clean php session files.

答案1

我会尝试禁用 btusb 模块的自动暂停功能

echo "options btusb enable_autosuspend=N" | sudo tee /etc/modprobe.d/btusb.conf
重启

这应该会禁用蓝牙上的任何省电功能

相关内容