若鼠标一段时间不动,会有卡死现象,需要晃动等几秒才能恢复
可能性1
主要原因是自动控制功耗了,默认是auto,可以强制打开
echo on | sudo tee /sys/class/bluetooth/hci0/device/power/control echo on | sudo tee /sys/class/bluetooth/hci0*/device/power/control
注意:
- 如果有多个子目录,最好都设置
- 只对当前生效,重启后需要重新设置,可以加在开机自启动中或者cron中
可能性2
如果不好用,尝试这个
# /etc/bluetooth/main.conf [Policy] IdleTimeout=0
然后
sudo systemctl restart bluetooth.service
可能性3
251028更新:
如果你是Intel的CPU主板,也可能是USB休眠的锅,这么配置
sudo apt-get install -y powertop
按Tab切换到Tunables后,上下选到"Autosuspend for USB device...",按Enter切换到"Bad"
具体是哪个USB,可以这么看:
ls -l /sys/class/bluetooth/ total 0 lrwxrwxrwx 1 root root 0 Oct 27 09:12 hci0 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0 lrwxrwxrwx 1 root root 0 Oct 28 17:58 hci0:2048 -> ../../devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/hci0:2048
那么就是对应 "Autosuspend for unknown USB device 1-14 (8087:0026)" 这个
你甚至可以进入USB的目录详细检查vendor和product
root:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14# /bin/cat ./idVendor 8087 root:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14# /bin/cat ./idProduct 0026