在最新的 Ubuntu 更新(使用 19.04)之后,我在使用通过蓝牙连接的 Logitech M720 鼠标时出现了异常延迟。
使用 USB 加密狗时,它可以完美运行。
关于为什么会发生这种情况的任何想法?(尝试删除它,再次配对等等)
小智 6
您面临的问题与蓝牙超时无关,而更可能与内核内置的 USB 自动挂起功能有关。
我正在运行Ubuntu 22.04 LTS,并且我有一台Logitech MX Anywhere 2S
这就是我修复它的方法:
$ lsusb -vt
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
ID 1d6b:0002 Linux Foundation 2.0 root hub
|__ Port 5: Dev 2, If 0, Class=Vendor Specific Class, Driver=, 12M
ID 27c6:538d Shenzhen Goodix Technology Co.,Ltd.
|__ Port 6: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
ID 0bda:565a Realtek Semiconductor Corp.
|__ Port 6: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
ID 0bda:565a Realtek Semiconductor Corp.
|__ Port 10: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
|__ Port 10: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Run Code Online (Sandbox Code Playgroud)
我的蓝牙模块的id是8087:0aaa
$ echo 'ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aaa", ATTR{power/autosuspend}="-1"' >> /etc/udev/rules.d/50-usb_power_save.rules
Run Code Online (Sandbox Code Playgroud)
重新启动您的电脑后,延迟就会消失。
请注意,idVendor设置为8087,idProduct设置为0aaa以反映我的蓝牙设置
我使用以下链接作为参考。
https://wiki.archlinux.org/title/Power_management#USB_autosuspend
在尝试降级蓝牙包以查看是否有所不同后,我决定/意识到虽然它可能有所改善,但并没有解决问题。继续研究发现:https : //ubuntuforums.org/showthread.php?t=2372916。
建议是:
echo "options iwlwifi bt_coex_active=0" | sudo tee /etc/modprobe.d/iwlopt.conf
然后重新启动。
似乎工作得更好
归档时间: |
|
查看次数: |
5494 次 |
最近记录: |