我的蓝牙(耳机)出现了一个奇怪的问题。它连接上了,但仅在 HSP/HFP 配置文件上断开连接,我无法再次连接,蓝牙被禁用,无法再次启用——A2DP 配置文件工作正常,无需断开连接。
journalctl --unit=bluetooth -f
并且它掉落的瞬间的输出是:
Aug 22 09:45:43 enigma bluetoothd[1094]: Endpoint registered: sender=:1.74 path=/MediaEndpoint/A2DPSink
Aug 22 09:57:28 enigma bluetoothd[1094]: /org/bluez/hci0/dev_A0_60_90_5D_20_C5/fd0: fd(25) ready
Aug 22 10:13:42 enigma bluetoothd[1094]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Aug 22 10:13:42 enigma bluetoothd[1094]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSource
Aug 22 10:13:42 enigma bluetoothd[1094]: Endpoint unregistered: sender=:1.74 path=/MediaEndpoint/A2DPSink
/var/log/syslog
并且秒连接的输出下降。
Aug 22 10:13:45 enigma kernel: [ 1920.621889] Bluetooth: hci0: Reading Intel version information failed (-110)
Aug 22 10:13:45 enigma kernel: [ 1920.621936] Bluetooth: hci0: command 0xfc05 tx timeout
Aug 22 10:13:43 enigma baloo_file.desktop[3762]: UdevQt: unhandled device action "bind"
Aug 22 10:13:48 enigma systemd[1]: systemd-rfkill.service: Succeeded.
Aug 22 10:14:13 enigma dbus-daemon[1759]: [session uid=1000 pid=1759] Activating via systemd: service name='org.bluez.obex' unit='dbus-org.bluez.obex.service' requested by ':1.101' (uid=1000 pid=7636 comm="gnome-control-center " label="unconfined")
检查状态时显示正在运行
~ systemctl status bluetooth.service
bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
Active: active (running) since Thu 2019-08-22 11:15:36 EET; 7min ago
Docs: man:bluetoothd(8)
Main PID: 12348 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
Memory: 852.0K
CGroup: /system.slice/bluetooth.service
└─12348 /usr/lib/bluetooth/bluetoothd
为了使蓝牙再次工作,我尝试了类似问题的解决方案,但没有一个对我有用。
只需重新加载内核模块即可使蓝牙再次工作,并且我能够再次连接到耳机。
$ sudo rmmod btusb
$ sudo modprobe btusb
但在通话过程中花费一些时间重新加载模块以使其再次工作仍然令人沮丧
感谢你的帮助