总共尝试了两种办法
1.利用nice命令行提高进程的优先级
1 2 3 |
renice -17 -p `ps -aux | grep bluetooth | awk '{print $2}'` |
2.采用Arch wiki上的解决办法
Troubleshooting
Mouse lag
If you experience mouse lag you can try to increase the polling rate. See Mouse polling rate for more information.
You can try to set the minimum/maximum latency for the mouse in BlueZ [1]:
Add or modify the following section in /var/lib/bluetooth/<mac-of-your-adapter>/<mac-of-your-mouse>/info (adapt the path accordingly):
1 2 3 4 5 6 7 |
[ConnectionParameters] MinInterval=6 MaxInterval=9 Latency=44 Timeout=216 |
第一个办法影响不大,加上第二个后效果很明显。
修改配置后需要执行如下命令(最高权限执行):
1 2 3 4 |
systemctl daemon-reload systemctl restart bluetooth |