Ubuntu 20.04 LTS 中无线鼠标半随机断开连接

Ubuntu 20.04 LTS 中无线鼠标半随机断开连接

当我不希望我的无线鼠标断开连接时,它会随机断开连接。它会断开连接大约一秒钟,然后再次连接。

我正在运行 Ubuntu 20.04 LTS。使用 MX Ergo。鼠标通过 连接blueman-manager。鼠标是不是使用加密狗

鼠标在以下情况下断开连接:

  • 计算机已闲置约一分钟
  • 工作时将手从鼠标上移开约 15-30 秒
  • 有时会在我工作时随机掉线,然后再次连接

最初我以为是电源设置的问题,尝试了以下解决方法

  • 设置并UserspaceHID=true重启/etc/bluetooth/input.conf蓝牙服务

  • 取消配对鼠标。重新连接并信任使用bluetoothctl

  • 添加以下 udev 规则

    ACTION=="add", SUBSYSTEM=="bluetooth", ATTR{product}=="MX Ergo", ATTR{power/control}="on"
    

该解决方案不起作用:https://askubuntu.com/questions/1090149/bluetooth-mouse-lags-after-upgrading-to-18-10-cosmic/1090150#1090150

当闲置bluetoothctl一段时间时,这是连接/断开连接的日志

[CHG] Device F2:42:AC:F6:0B:67 ServicesResolved: yes
[CHG] Device F2:42:AC:F6:0B:67 Paired: yes
[CHG] Device F2:42:AC:F6:0B:67 ServicesResolved: no
[CHG] Device F2:42:AC:F6:0B:67 Connected: no
[CHG] Device F2:42:AC:F6:0B:67 Connected: yes
[CHG] Device F2:42:AC:F6:0B:67 ServicesResolved: yes

这是我的尾巴journalctl

Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                                                                                                                                 [0/1738]
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                               
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:12:54 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)  
Mar 20 12:12:54 box1 kernel: input: MX Ergo Mouse as /devices/virtual/misc/uhid/0005:046D:B01D.002D/input/input104
Mar 20 12:12:54 box1 kernel: hid-generic 0005:046D:B01D.002D: input,hidraw2: BLUETOOTH HID v0.22 Mouse [MX Ergo] on 40:ec:99:53:79:2d
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) config/udev: Adding input device MX Ergo Mouse (/dev/input/mouse0)
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) No input driver specified, ignoring this device.                                                                                                                                                                       
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) This device may have been added with another device file.                                                                                                                                                              
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) config/udev: Adding input device MX Ergo Mouse (/dev/input/event17)                                                                                                                                                    
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: Applying InputClass "libinput pointer catchall"                                                                                                                                                         
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) Using input driver 'libinput' for 'MX Ergo Mouse'                                                                                                                                                                      
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) systemd-logind: got fd for /dev/input/event17 13:81 fd 81 paused 0                                                                                                                                                     
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: always reports core events                                                                                                                                                                              
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "Device" "/dev/input/event17"                                                                                                                                                                                   
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "_source" "server/udev"                                                                                                                                                                                         
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: is tagged by udev as: Mouse Trackball                                                                                                                                                         
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: device is a pointer         
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: device removed                                 
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "config_info" "udev:/sys/devices/virtual/misc/uhid/0005:046D:B01D.002D/input/input104/event17"
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) XINPUT: Adding extended input device "MX Ergo Mouse" (type: MOUSE, id 11)
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "AccelerationScheme" "none"                       
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: (accel) selected scheme none/0                      
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: (accel) acceleration factor: 2.000             
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: (accel) acceleration threshold: 4 
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: is tagged by udev as: Mouse Trackball    
Mar 20 12:12:54 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: device is a pointer
Mar 20 12:14:05 box1 systemd-resolved[627]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Mar 20 12:14:20 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) config/udev: removing device MX Ergo Mouse
Mar 20 12:14:20 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "fd" "81"                                                                                        
Mar 20 12:14:20 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: device removed     
Mar 20 12:14:20 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) UnloadModule: "libinput"               
Mar 20 12:14:20 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) systemd-logind: releasing fd for 13:81                                                               
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 bluetoothd[13084]: bt_uhid_send: Invalid argument (22)                                                                                          
Mar 20 12:14:22 box1 kernel: input: MX Ergo Mouse as /devices/virtual/misc/uhid/0005:046D:B01D.002E/input/input106
Mar 20 12:14:22 box1 kernel: hid-generic 0005:046D:B01D.002E: input,hidraw2: BLUETOOTH HID v0.22 Mouse [MX Ergo] on 40:ec:99:53:79:2d                                                                                                                                               
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) config/udev: Adding input device MX Ergo Mouse (/dev/input/mouse0)                                                                                                                                                     
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) No input driver specified, ignoring this device.                                                                                                                                                                       
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) This device may have been added with another device file.                                                                                                                                                              
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) config/udev: Adding input device MX Ergo Mouse (/dev/input/event17)                                                                                                                                                    
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: Applying InputClass "libinput pointer catchall"                                                                                                                                                         
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) Using input driver 'libinput' for 'MX Ergo Mouse'                                                                                                                                                                      
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) systemd-logind: got fd for /dev/input/event17 13:81 fd 81 paused 0                                                                                                                                                     
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: always reports core events                                                                                                                                                                              
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "Device" "/dev/input/event17"                                                                                                                                                                                   
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "_source" "server/udev"                                                                                                                                                                                         
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: is tagged by udev as: Mouse Trackball                                                                                                                                                         
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: device is a pointer                                                                                                                                                                           
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: device removed                                                                                                                                                                                
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "config_info" "udev:/sys/devices/virtual/misc/uhid/0005:046D:B01D.002E/input/input106/event17"                                                                                                                  
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) XINPUT: Adding extended input device "MX Ergo Mouse" (type: MOUSE, id 11)                                                                                                                                              
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) Option "AccelerationScheme" "none"                                                                                                                                                                                     
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: (accel) selected scheme none/0                                                                                                                                                                          
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: (accel) acceleration factor: 2.000                                                                                                                                                                      
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (**) MX Ergo Mouse: (accel) acceleration threshold: 4                                                                                                                                                                       
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: is tagged by udev as: Mouse Trackball                                                                                                                                                         
Mar 20 12:14:22 box1 /usr/lib/gdm3/gdm-x-session[1678]: (II) event17 - MX Ergo Mouse: device is a pointer                                                                                                                                                                           
Mar 20 12:15:01 box1 CRON[13606]: pam_unix(cron:session): session opened for user root by (uid=0)                                                                                                                                                                                   
Mar 20 12:15:01 box1 CRON[13607]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

相关内容