有时我的蓝牙鼠标会与笔记本电脑断开连接。关闭/打开鼠标没有帮助。关闭/打开我的笔记本电脑蓝牙也没有帮助。甚至没有systemctl restart bluetooth.service
帮助。
但是,如果我关闭笔记本电脑盖子进入睡眠状态并在几秒钟后重新打开它,则与 bt 鼠标的连接将重新建立,然后一切正常。
重新启动也没有帮助。我必须关闭/打开笔记本电脑的电源
编辑: 根据要求,这里是一些调试信息:
$ systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-09-05 09:44:14 CEST; 4h 5min ago
Docs: man:bluetoothd(8)
Main PID: 388 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
Memory: 3.4M
CGroup: /system.slice/bluetooth.service
└─388 /usr/lib/bluetooth/bluetoothd
set 05 09:44:17 xps-13-luca bluetoothd[388]: Endpoint registered: sender=:1.77 path=/MediaEndpoint/A2DPSource
set 05 09:44:17 xps-13-luca bluetoothd[388]: Endpoint registered: sender=:1.77 path=/MediaEndpoint/A2DPSink
set 05 09:49:50 xps-13-luca bluetoothd[388]: Endpoint registered: sender=:1.159 path=/MediaEndpoint/A2DPSource
set 05 09:49:50 xps-13-luca bluetoothd[388]: Endpoint registered: sender=:1.159 path=/MediaEndpoint/A2DPSink
set 05 09:49:50 xps-13-luca bluetoothd[388]: RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
set 05 09:49:50 xps-13-luca bluetoothd[388]: RFCOMM server failed for :1.159/Profile/HSPHSProfile/00001108-0000-1000-8000-00805f9b34fb: rfcomm_bind: Address already in use (9>
set 05 13:48:06 xps-13-luca bluetoothd[388]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSource
set 05 13:48:06 xps-13-luca bluetoothd[388]: Endpoint unregistered: sender=:1.77 path=/MediaEndpoint/A2DPSink
set 05 13:48:06 xps-13-luca bluetoothd[388]: Endpoint unregistered: sender=:1.159 path=/MediaEndpoint/A2DPSource
set 05 13:48:06 xps-13-luca bluetoothd[388]: Endpoint unregistered: sender=:1.159 path=/MediaEndpoint/A2DPSink
请考虑该问题Address already in use
发生在 bt 鼠标问题发生前几个小时
输出journalctl -xe
很长......
https://pastebin.com/gViN5Tqp
答案1
我认为最简单的方法就是bluetoothctl
简单地打开和关闭蓝牙控制器本身。
echo -e 'show\npower off\npower on\nquit' | bluetoothctl
答案2
尝试这个:
sudo rfkill block bluetooth && sleep 0.1 && sudo rfkill unblock bluetooth;
答案3
尝试卸载/加载 ( modprobe
) 蓝牙模块。