在Archlinux上重置蓝牙


11

有时会发生蓝牙鼠标与笔记本电脑断开连接的情况。关闭/打开鼠标没有帮助。关闭/打开笔记本电脑的蓝牙也无济于事。甚至没有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


你找到罪魁祸首了吗?发生这种情况时,您是否将USB 3.0设备插入笔记本电脑?
istepaniuk

Answers:


0

我认为最简单的方法是bluetoothctl简单地打开和关闭蓝牙控制器本身。

echo -e 'show\npower off\npower on\nquit' | bluetoothctl


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.