Linux-Mint

啟動後滑鼠幾分鐘不工作

  • October 7, 2019

重新啟動筆記型電腦後,我的 USB 滑鼠有幾分鐘不工作。觸摸板、跟踪點和鍵盤工作正常。滑鼠在 Windows(雙啟動)下也能正常工作。我刪除了該滑鼠的所有 udev 規則,嘗試切換埠,但沒有任何效果。

跑步

xinput -list 

在它工作之前不顯示滑鼠。滑鼠上的燈亮著,我可以通過滑鼠內部 dpi 設置進行切換,僅此而已。幾分鐘後,它將正常工作。

任何幫助表示讚賞,謝謝!

資訊:

  • Linux Mint 19.2 肉桂
  • 核心:4.15.0-65-generic
  • 聯想 Thinkpad L380 Yoga

dmesg(我故意拔掉並重新插入滑鼠並將該部分上方的所有內容都切斷。如果需要該部分,我會添加它):


[   53.031552] usb 1-3: USB disconnect, device number 2
[   57.968552] usb 1-3: new full-speed USB device number 6 using xhci_hcd
[   58.119794] usb 1-3: New USB device found, idVendor=145f, idProduct=0405
[   58.119800] usb 1-3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   58.119804] usb 1-3: Product: Trust Gaming Mouse
[   58.294621] input: Trust Gaming Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:145F:0405.0008/input/input25
[   58.353504] hid-generic 0003:145F:0405.0008: input,hidraw0: USB HID v1.00 Keyboard [Trust Gaming Mouse] on usb-0000:00:14.0-3/input0
[   58.355957] input: Trust Gaming Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:145F:0405.0009/input/input26
[   58.413543] hid-generic 0003:145F:0405.0009: input,hidraw2: USB HID v1.00 Mouse [Trust Gaming Mouse] on usb-0000:00:14.0-3/input1
[   61.820538] [UFW BLOCK] IN=wlp2s0 OUT= MAC=18:1d:ea:30:c1:1d:44:fe:3b:ab:7b:57:08:00 SRC=192.168.2.1 DST=192.168.2.137 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=41633 DF PROTO=TCP SPT=52988 DPT=80 WINDOW=29200 RES=0x00 SYN URGP=0 
[   61.820560] [UFW BLOCK] IN=wlp2s0 OUT= MAC=18:1d:ea:30:c1:1d:44:fe:3b:ab:7b:57:08:00 SRC=192.168.2.1 DST=192.168.2.137 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=39679 DF PROTO=TCP SPT=36498 DPT=8080 WINDOW=29200 RES=0x00 SYN URGP=0 
[   61.820573] [UFW BLOCK] IN=wlp2s0 OUT= MAC=18:1d:ea:30:c1:1d:44:fe:3b:ab:7b:57:08:00 SRC=192.168.2.1 DST=192.168.2.137 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=29099 DF PROTO=TCP SPT=53794 DPT=443 WINDOW=29200 RES=0x00 SYN URGP=0

xorg.log(需要從頂部刪除一點以使其保持在 30k 字元以下:

[     8.249] 
X.Org X Server 1.19.6
Release Date: 2017-12-20
[     8.249] X Protocol Version 11, Revision 0
[     8.249] Build Operating System: Linux 4.4.0-148-generic x86_64 Ubuntu
[     8.249] Current Operating System: Linux mwuerbs-l380 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64
[     8.249] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-65-generic root=UUID=c38a79f6-3dcb-4123-82e0-d4d66108188e ro
[     8.249] Build Date: 03 June 2019  08:10:35AM

[     8.292] (==) intel(0): Silken mouse enabled
[     8.292] (II) intel(0): HW Cursor enabled
[     8.292] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[     8.292] (==) intel(0): DPMS enabled
[     8.293] (==) intel(0): Display hotplug detection enabled
[     8.293] (II) intel(0): [DRI2] Setup complete
[     8.293] (II) intel(0): [DRI2]   DRI driver: i965
[     8.293] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[     8.293] (II) intel(0): direct rendering: DRI2 enabled
[     8.293] (II) intel(0): hardware support for Present enabled
[     8.293] (--) RandR disabled
[     8.295] (II) SELinux: Disabled on system
[     8.304] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[     8.304] (II) AIGLX: enabled GLX_ARB_create_context
[     8.304] (II) AIGLX: enabled GLX_ARB_create_context_profile
[     8.304] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[     8.304] (II) AIGLX: enabled GLX_INTEL_swap_event
[     8.304] (II) AIGLX: enabled GLX_SGI_swap_control
[     8.304] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[     8.304] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[     8.304] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[     8.304] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[     8.304] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[     8.304] (II) AIGLX: Loaded and initialized i965
[     8.304] (II) GLX: Initialized DRI2 GL provider for screen 0
[     8.306] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[     8.310] (II) intel(0): switch to mode 1920x1080@60.0 on HDMI2 using pipe 1, position (0, 0), rotation normal, reflection none
[     8.319] (II) intel(0): Setting screen physical size to 508 x 285
[     8.345] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[     8.345] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[     8.345] (II) LoadModule: "libinput"
[     8.345] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[     8.347] (II) Module libinput: vendor="X.Org Foundation"
[     8.347]    compiled for 1.19.6, module version = 0.27.1
[     8.347]    Module class: X.Org XInput Driver
[     8.347]    ABI class: X.Org XInput driver, version 24.1
[     8.347] (II) Using input driver 'libinput' for 'Power Button'
[     8.347] (**) Power Button: always reports core events
[     8.347] (**) Option "Device" "/dev/input/event2"
[     8.347] (**) Option "_source" "server/udev"
[     8.347] (II) event2  - Power Button: is tagged by udev as: Keyboard
[     8.347] (II) event2  - Power Button: device is a keyboard
[     8.347] (II) event2  - Power Button: device removed
[     8.356] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[     8.356] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[     8.356] (**) Option "xkb_model" "pc105"
[     8.356] (**) Option "xkb_layout" "de"
[     8.371] (II) event2  - Power Button: is tagged by udev as: Keyboard
[     8.371] (II) event2  - Power Button: device is a keyboard
[     8.371] (II) config/udev: Adding input device Video Bus (/dev/input/event10)
[     8.371] (**) Video Bus: Applying InputClass "libinput keyboard catchall"
[     8.371] (II) Using input driver 'libinput' for 'Video Bus'
[     8.371] (**) Video Bus: always reports core events
[     8.371] (**) Option "Device" "/dev/input/event10"
[     8.371] (**) Option "_source" "server/udev"
[     8.371] (II) event10 - Video Bus: is tagged by udev as: Keyboard
[     8.371] (II) event10 - Video Bus: device is a keyboard
[     8.372] (II) event10 - Video Bus: device removed
[     8.420] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input15/event10"
[     8.420] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[     8.420] (**) Option "xkb_model" "pc105"
[     8.420] (**) Option "xkb_layout" "de"
[     8.420] (II) event10 - Video Bus: is tagged by udev as: Keyboard
[     8.420] (II) event10 - Video Bus: device is a keyboard
[     8.420] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
[     8.420] (II) No input driver specified, ignoring this device.
[     8.420] (II) This device may have been added with another device file.
[     8.421] (II) config/udev: Adding input device Sleep Button (/dev/input/event0)
[     8.421] (**) Sleep Button: Applying InputClass "libinput keyboard catchall"
[     8.421] (II) Using input driver 'libinput' for 'Sleep Button'
[     8.421] (**) Sleep Button: always reports core events
[     8.421] (**) Option "Device" "/dev/input/event0"
[     8.421] (**) Option "_source" "server/udev"
[     8.421] (II) event0  - Sleep Button: is tagged by udev as: Keyboard
[     8.421] (II) event0  - Sleep Button: device is a keyboard
[     8.421] (II) event0  - Sleep Button: device removed
[     8.460] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input0/event0"
[     8.460] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 8)
[     8.460] (**) Option "xkb_model" "pc105"
[     8.460] (**) Option "xkb_layout" "de"
[     8.460] (II) event0  - Sleep Button: is tagged by udev as: Keyboard
[     8.460] (II) event0  - Sleep Button: device is a keyboard
[     8.461] (II) config/udev: Adding input device Integrated Camera: Integrated C (/dev/input/event12)
[     8.461] (**) Integrated Camera: Integrated C: Applying InputClass "libinput keyboard catchall"
[     8.461] (II) Using input driver 'libinput' for 'Integrated Camera: Integrated C'
[     8.461] (**) Integrated Camera: Integrated C: always reports core events
[     8.461] (**) Option "Device" "/dev/input/event12"
[     8.461] (**) Option "_source" "server/udev"
[     8.462] (II) event12 - Integrated Camera: Integrated C: is tagged by udev as: Keyboard
[     8.462] (II) event12 - Integrated Camera: Integrated C: device is a keyboard
[     8.462] (II) event12 - Integrated Camera: Integrated C: device removed
[     8.504] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input17/event12"
[     8.504] (II) XINPUT: Adding extended input device "Integrated Camera: Integrated C" (type: KEYBOARD, id 9)
[     8.504] (**) Option "xkb_model" "pc105"
[     8.504] (**) Option "xkb_layout" "de"
[     8.504] (II) event12 - Integrated Camera: Integrated C: is tagged by udev as: Keyboard
[     8.504] (II) event12 - Integrated Camera: Integrated C: device is a keyboard
[     8.505] (II) config/udev: Adding input device Wacom Pen and multitouch sensor Finger (/dev/input/event7)
[     8.505] (**) Wacom Pen and multitouch sensor Finger: Applying InputClass "libinput touchscreen catchall"
[     8.505] (**) Wacom Pen and multitouch sensor Finger: Applying InputClass "Wacom USB touchscreen class"
[     8.505] (**) Wacom Pen and multitouch sensor Finger: Applying InputClass "Wacom touchscreen class"
[     8.505] (II) LoadModule: "wacom"
[     8.505] (II) Loading /usr/lib/xorg/modules/input/wacom_drv.so
[     8.505] (II) Module wacom: vendor="X.Org Foundation"
[     8.505]    compiled for 1.19.6, module version = 0.36.1
[     8.505]    Module class: X.Org XInput Driver
[     8.505]    ABI class: X.Org XInput driver, version 24.1
[     8.505] (II) Build version: 0.36.1
[     8.505] (II) wacom: Driver for Wacom graphics tablets: PenPartner, Graphire,
   Graphire2 4x5, Graphire2 5x7, Graphire3 4x5, Graphire3 6x8,
   Graphire4 4x5, Graphire4 6x8, BambooFun 4x5, BambooFun 6x8,
   Bamboo1 Medium, Graphire4 6x8 BlueTooth, CTL-460, CTH-461, CTL-660,
   CTL-461/S, Bamboo Touch, CTH-460/K, CTH-461/S, CTH-661/S1, CTH-461/L,
   CTH-661/L, Intuos 4x5, Intuos 6x8, Intuos 9x12, Intuos 12x12,
   Intuos 12x18, PTU600, PL400, PL500, PL600, PL600SX, PL550, PL800,
   PL700, PL510, PL710, DTI520, DTF720, DTF720a, DTF521, DTU1931,
   DTU2231, DTU1631, DTH1152, DTH1152, DTK2451, DTH2452, DTH2452,
   Intuos2 4x5, Intuos2 6x8, Intuos2 9x12, Intuos2 12x12, Intuos2 12x18,
   Intuos2 6x8 , Volito, PenStation, Volito2 4x5, Volito2 2x3,
   PenPartner2, Bamboo, Bamboo1, Bamboo1 4x6, Bamboo1 5x8, Intuos3 4x5,
   Intuos3 6x8, Intuos3 9x12, Intuos3 12x12, Intuos3 12x19,
   Intuos3 6x11, Intuos3 4x6, Intuos4 4x6, Intuos4 6x9, Intuos4 8x13,
   Intuos4 12x19, Intuos4 WL USB Endpoint,
   Intuos4 WL Bluetooth Endpoint, Intuos5 touch S, Intuos5 touch M,
   Intuos5 touch L, Intuos5 S, Intuos5 M, Intuos Pro S, Intuos Pro M,
   Intuos Pro L, Cintiq 21UX, Cintiq 20WSX, Cintiq 12WX, Cintiq 21UX2,
   Cintiq 24HD, Cintiq 22HD, Cintiq 24HD touch (EMR digitizer),
   Cintiq 13HD, DTK2241, DTH2242, Cintiq 22HDT, Cintiq 27QHDT,
   Cintiq 27QHDT, Mobilestudio Pro 13, MobileStudio Pro 16,
   MobileStudio Pro 13, MobileStudio Pro 16, Cintiq 13 FHD Pro,
   Cintiq 16 UHD Pro, Cintiq Pro 24, Cintiq Pro 32, Cintiq 13 FHD Pro,
   Cintiq 16 UHD Pro, Cintiq Pro 24, Cintiq Pro 32, Cintiq Pro 24,
   TabletPC 0x90, TabletPC 0x93, TabletPC 0x97, TabletPC 0x9A,
   CapPlus  0x9F, TabletPC 0xE2, TabletPC 0xE3, TabletPC 0xE5,
   TabletPC 0xE6, TabletPC 0xEC, TabletPC 0xED, TabletPC 0xEF,
   TabletPC 0x100, TabletPC 0x101, TabletPC 0x10D, TabletPC 0x116,
   TabletPC 0x12C, TabletPC 0x4001, TabletPC 0x4004, TabletPC 0x5000,
   TabletPC 0x5002, usb:172f:0024, usb:172f:0025, usb:172f:0026,
   usb:172f:0027, usb:172f:0028, usb:172f:0030, usb:172f:0031,
   usb:172f:0032, usb:172f:0033, usb:172f:0034, usb:172f:0035,
   usb:172f:0036, usb:172f:0037, usb:172f:0038, usb:172f:0039,
   usb:172f:0051, usb:172f:0052, usb:172f:0053, usb:172f:0054,
   usb:172f:0055, usb:172f:0056, usb:172f:0057, usb:172f:0058,
   usb:172f:0500, usb:172f:0501, usb:172f:0502, usb:172f:0503,
   usb:1b96:0001, usb:17ef:6004
[     8.506] (II) Using input driver 'wacom' for 'Wacom Pen and multitouch sensor Finger'
[     8.506] (**) Wacom Pen and multitouch sensor Finger: always reports core events
[     8.506] (**) Option "Device" "/dev/input/event7"
[     8.564] (EE) Wacom Pen and multitouch sensor Finger: Invalid type 'stylus' for this device.
[     8.564] (EE) Wacom Pen and multitouch sensor Finger: Invalid type 'eraser' for this device.
[     8.564] (EE) Wacom Pen and multitouch sensor Finger: Invalid type 'cursor' for this device.
[     8.564] (II) Wacom Pen and multitouch sensor Finger: type not specified, assuming 'touch'.
[     8.564] (II) Wacom Pen and multitouch sensor Finger: other types will be automatically added.
[     8.564] (**) Wacom Pen and multitouch sensor Finger touch: panscroll is 0
[     8.564] (**) Wacom Pen and multitouch sensor Finger touch: panscroll modified to 13
[     8.564] (--) Wacom Pen and multitouch sensor Finger touch: maxX=11748 maxY=6608 maxZ=0 resX=40000 resY=40000 
[     8.564] (II) Wacom Pen and multitouch sensor Finger touch: hotplugging dependent devices.
[     8.564] (EE) Wacom Pen and multitouch sensor Finger touch: Invalid type 'stylus' for this device.
[     8.564] (EE) Wacom Pen and multitouch sensor Finger touch: Invalid type 'eraser' for this device.
[     8.564] (EE) Wacom Pen and multitouch sensor Finger touch: Invalid type 'cursor' for this device.
[     8.564] (EE) Wacom Pen and multitouch sensor Finger touch: Invalid type 'pad' for this device.
[     8.564] (II) Wacom Pen and multitouch sensor Finger touch: hotplugging completed.
[     8.596] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:056A:5157.0006/input/input9/event7"
[     8.596] (II) XINPUT: Adding extended input device "Wacom Pen and multitouch sensor Finger touch" (type: TOUCH, id 10)
[     8.596] (**) Wacom Pen and multitouch sensor Finger touch: (accel) keeping acceleration scheme 1
[     8.596] (**) Wacom Pen and multitouch sensor Finger touch: (accel) acceleration profile 0
[     8.596] (**) Wacom Pen and multitouch sensor Finger touch: (accel) acceleration factor: 2.000
[     8.596] (**) Wacom Pen and multitouch sensor Finger touch: (accel) acceleration threshold: 4
[     8.656] (II) config/udev: Adding input device Wacom Pen and multitouch sensor Finger (/dev/input/mouse2)
[     8.656] (II) No input driver specified, ignoring this device.
[     8.656] (II) This device may have been added with another device file.
[     8.656] (II) config/udev: Adding input device Wacom Pen and multitouch sensor Pen (/dev/input/event9)
[     8.656] (**) Wacom Pen and multitouch sensor Pen: Applying InputClass "libinput tablet catchall"
[     8.656] (**) Wacom Pen and multitouch sensor Pen: Applying InputClass "Wacom USB tablet class"
[     8.656] (**) Wacom Pen and multitouch sensor Pen: Applying InputClass "Wacom tablet class"
[     8.656] (II) Using input driver 'wacom' for 'Wacom Pen and multitouch sensor Pen'
[     8.656] (**) Wacom Pen and multitouch sensor Pen: always reports core events
[     8.656] (**) Option "Device" "/dev/input/event9"
[     8.716] (II) Wacom Pen and multitouch sensor Pen: type not specified, assuming 'stylus'.
[     8.716] (II) Wacom Pen and multitouch sensor Pen: other types will be automatically added.
[     8.716] (--) Wacom Pen and multitouch sensor Pen stylus: using pressure threshold of 851 for button 1
[     8.716] (**) Wacom Pen and multitouch sensor Pen stylus: panscroll is 0
[     8.716] (**) Wacom Pen and multitouch sensor Pen stylus: panscroll modified to 1300
[     8.716] (--) Wacom Pen and multitouch sensor Pen stylus: maxX=29376 maxY=16524 maxZ=4095 resX=100000 resY=100000  tilt=enabled
[     8.716] (II) Wacom Pen and multitouch sensor Pen stylus: hotplugging dependent devices.
[     8.716] (EE) Wacom Pen and multitouch sensor Pen stylus: Invalid type 'cursor' for this device.
[     8.716] (EE) Wacom Pen and multitouch sensor Pen stylus: Invalid type 'touch' for this device.
[     8.716] (EE) Wacom Pen and multitouch sensor Pen stylus: Invalid type 'pad' for this device.
[     8.716] (II) Wacom Pen and multitouch sensor Pen stylus: hotplugging completed.
[     8.772] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1/0003:056A:5157.0007/input/input12/event9"
[     8.772] (II) XINPUT: Adding extended input device "Wacom Pen and multitouch sensor Pen stylus" (type: STYLUS, id 11)
[     8.772] (**) Wacom Pen and multitouch sensor Pen stylus: (accel) keeping acceleration scheme 1
[     8.772] (**) Wacom Pen and multitouch sensor Pen stylus: (accel) acceleration profile 0
[     8.772] (**) Wacom Pen and multitouch sensor Pen stylus: (accel) acceleration factor: 2.000
[     8.772] (**) Wacom Pen and multitouch sensor Pen stylus: (accel) acceleration threshold: 4
[     8.833] (II) config/udev: Adding input device Wacom Pen and multitouch sensor Pen (/dev/input/mouse4)
[     8.833] (II) No input driver specified, ignoring this device.
[     8.833] (II) This device may have been added with another device file.
[     8.833] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event13)
[     8.833] (II) No input driver specified, ignoring this device.
[     8.833] (II) This device may have been added with another device file.
[     8.833] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event14)
[     8.833] (II) No input driver specified, ignoring this device.
[     8.833] (II) This device may have been added with another device file.
[     8.833] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event15)
[     8.833] (II) No input driver specified, ignoring this device.
[     8.833] (II) This device may have been added with another device file.
[     8.834] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=7 (/dev/input/event16)
[     8.834] (II) No input driver specified, ignoring this device.
[     8.834] (II) This device may have been added with another device file.
[     8.834] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=8 (/dev/input/event17)
[     8.834] (II) No input driver specified, ignoring this device.
[     8.834] (II) This device may have been added with another device file.
[     8.834] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=9 (/dev/input/event18)
[     8.834] (II) No input driver specified, ignoring this device.
[     8.834] (II) This device may have been added with another device file.
[     8.834] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=10 (/dev/input/event19)
[     8.834] (II) No input driver specified, ignoring this device.
[     8.834] (II) This device may have been added with another device file.
[     8.834] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
[     8.834] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[     8.834] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[     8.834] (**) AT Translated Set 2 keyboard: always reports core events
[     8.834] (**) Option "Device" "/dev/input/event3"
[     8.834] (**) Option "_source" "server/udev"
[     8.835] (II) event3  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[     8.835] (II) event3  - AT Translated Set 2 keyboard: device is a keyboard
[     8.835] (II) event3  - AT Translated Set 2 keyboard: device removed
[     8.848] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input3/event3"
[     8.848] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 12)
[     8.848] (**) Option "xkb_model" "pc105"
[     8.848] (**) Option "xkb_layout" "de"
[     8.849] (II) event3  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[     8.849] (II) event3  - AT Translated Set 2 keyboard: device is a keyboard
[     8.849] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event5)
[     8.849] (**) ETPS/2 Elantech Touchpad: Applying InputClass "libinput touchpad catchall"
[     8.849] (II) Using input driver 'libinput' for 'ETPS/2 Elantech Touchpad'
[     8.849] (**) ETPS/2 Elantech Touchpad: always reports core events
[     8.849] (**) Option "Device" "/dev/input/event5"
[     8.849] (**) Option "_source" "server/udev"
[     8.849] (II) event5  - ETPS/2 Elantech Touchpad: is tagged by udev as: Touchpad
[     8.849] (II) event5  - ETPS/2 Elantech Touchpad: device is a touchpad
[     8.850] (II) event5  - ETPS/2 Elantech Touchpad: device removed
[     8.904] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input5/event5"
[     8.904] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 13)
[     8.904] (**) Option "AccelerationScheme" "none"
[     8.904] (**) ETPS/2 Elantech Touchpad: (accel) selected scheme none/0
[     8.904] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[     8.904] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[     8.905] (II) event5  - ETPS/2 Elantech Touchpad: is tagged by udev as: Touchpad
[     8.905] (II) event5  - ETPS/2 Elantech Touchpad: device is a touchpad
[     8.905] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse1)
[     8.905] (II) No input driver specified, ignoring this device.
[     8.905] (II) This device may have been added with another device file.
[     8.905] (II) config/udev: Adding input device ETPS/2 Elantech TrackPoint (/dev/input/event4)
[     8.905] (**) ETPS/2 Elantech TrackPoint: Applying InputClass "libinput pointer catchall"
[     8.905] (II) Using input driver 'libinput' for 'ETPS/2 Elantech TrackPoint'
[     8.905] (**) ETPS/2 Elantech TrackPoint: always reports core events
[     8.905] (**) Option "Device" "/dev/input/event4"
[     8.905] (**) Option "_source" "server/udev"
[     8.906] (II) event4  - ETPS/2 Elantech TrackPoint: is tagged by udev as: Mouse Pointingstick
[     8.906] (II) event4  - ETPS/2 Elantech TrackPoint: trackpoint device set to range 20
[     8.906] (II) event4  - ETPS/2 Elantech TrackPoint: device is a pointer
[     8.906] (II) event4  - ETPS/2 Elantech TrackPoint: device removed
[     8.944] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input6/event4"
[     8.944] (II) XINPUT: Adding extended input device "ETPS/2 Elantech TrackPoint" (type: MOUSE, id 14)
[     8.944] (**) Option "AccelerationScheme" "none"
[     8.944] (**) ETPS/2 Elantech TrackPoint: (accel) selected scheme none/0
[     8.944] (**) ETPS/2 Elantech TrackPoint: (accel) acceleration factor: 2.000
[     8.944] (**) ETPS/2 Elantech TrackPoint: (accel) acceleration threshold: 4
[     8.944] (II) event4  - ETPS/2 Elantech TrackPoint: is tagged by udev as: Mouse Pointingstick
[     8.944] (II) event4  - ETPS/2 Elantech TrackPoint: trackpoint device set to range 20
[     8.944] (II) event4  - ETPS/2 Elantech TrackPoint: device is a pointer
[     8.945] (II) config/udev: Adding input device ETPS/2 Elantech TrackPoint (/dev/input/mouse0)
[     8.945] (II) No input driver specified, ignoring this device.
[     8.945] (II) This device may have been added with another device file.
[     8.946] (II) config/udev: Adding input device ThinkPad Extra Buttons (/dev/input/event11)
[     8.946] (**) ThinkPad Extra Buttons: Applying InputClass "libinput keyboard catchall"
[     8.946] (II) Using input driver 'libinput' for 'ThinkPad Extra Buttons'
[     8.946] (**) ThinkPad Extra Buttons: always reports core events
[     8.946] (**) Option "Device" "/dev/input/event11"
[     8.946] (**) Option "_source" "server/udev"
[     8.946] (II) event11 - ThinkPad Extra Buttons: is tagged by udev as: Keyboard Switch
[     8.946] (II) event11 - ThinkPad Extra Buttons: device is a keyboard
[     8.946] (II) event11 - ThinkPad Extra Buttons: device is a switch device
[     8.946] (II) event11 - ThinkPad Extra Buttons: device removed
[     8.960] (**) Option "config_info" "udev:/sys/devices/platform/thinkpad_acpi/input/input16/event11"
[     8.960] (II) XINPUT: Adding extended input device "ThinkPad Extra Buttons" (type: KEYBOARD, id 15)
[     8.960] (**) Option "xkb_model" "pc105"
[     8.960] (**) Option "xkb_layout" "de"
[     8.960] (II) event11 - ThinkPad Extra Buttons: is tagged by udev as: Keyboard Switch
[     8.960] (II) event11 - ThinkPad Extra Buttons: device is a keyboard
[     8.960] (II) event11 - ThinkPad Extra Buttons: device is a switch device
[     8.985] (**) Wacom Pen and multitouch sensor Pen eraser: Applying InputClass "libinput tablet catchall"
[     8.985] (**) Wacom Pen and multitouch sensor Pen eraser: Applying InputClass "Wacom USB tablet class"
[     8.985] (**) Wacom Pen and multitouch sensor Pen eraser: Applying InputClass "Wacom tablet class"
[     8.986] (II) Using input driver 'wacom' for 'Wacom Pen and multitouch sensor Pen eraser'
[     8.986] (**) Wacom Pen and multitouch sensor Pen eraser: always reports core events
[     8.986] (**) Option "Device" "/dev/input/event9"
[     8.986] (**) Option "Type" "eraser"
[     8.986] (**) Wacom Pen and multitouch sensor Pen eraser: panscroll is 1300
[     8.986] (**) Wacom Pen and multitouch sensor Pen eraser: panscroll modified to 1300
[     8.986] (--) Wacom Pen and multitouch sensor Pen eraser: maxX=29376 maxY=16524 maxZ=4095 resX=100000 resY=100000  tilt=enabled
[     9.000] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.1/0003:056A:5157.0007/input/input12/event9"
[     9.000] (II) XINPUT: Adding extended input device "Wacom Pen and multitouch sensor Pen eraser" (type: ERASER, id 16)
[     9.000] (**) Wacom Pen and multitouch sensor Pen eraser: (accel) keeping acceleration scheme 1
[     9.000] (**) Wacom Pen and multitouch sensor Pen eraser: (accel) acceleration profile 0
[     9.000] (**) Wacom Pen and multitouch sensor Pen eraser: (accel) acceleration factor: 2.000
[     9.000] (**) Wacom Pen and multitouch sensor Pen eraser: (accel) acceleration threshold: 4
[    10.292] (II) intel(0): EDID vendor "LGD", prod id 1459
[    10.292] (II) intel(0): Printing DDC gathered Modelines:
[    10.292] (II) intel(0): Modeline "1920x1080"x0.0  138.70  1920 1968 2000 2080  1080 1083 1088 1111 -hsync -vsync (66.7 kHz eP)
[    10.292] (II) intel(0): Modeline "1920x1080"x0.0  111.00  1920 1968 2000 2080  1080 1083 1088 1111 -hsync -vsync (53.4 kHz e)
[    16.873] (II) intel(0): resizing framebuffer to 1920x2160
[    16.902] (II) intel(0): switch to mode 1920x1080@60.0 on eDP1 using pipe 0, position (0, 1080), rotation normal, reflection none

還不是真正的答案,而是對日誌的解釋:

dmesg您可以看到滑鼠立即被拾起,甚至在載入 HID 驅動程序之前:

[    2.132040] usb 1-3: new full-speed USB device number 2 using xhci_hcd
[    2.282469] usb 1-3: New USB device found, idVendor=145f, idProduct=0405
[    2.283727] usb 1-3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    2.285005] usb 1-3: Product: Trust Gaming Mouse
[    3.319439] usbcore: registered new interface driver usbhid
[    3.320141] usbhid: USB HID core driver
[    3.323079] input: Trust Gaming Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:145F:0405.0004/input/input7
[    3.380824] hid-generic 0003:145F:0405.0004: input,hidraw0: USB HID v1.00 Keyboard [Trust Gaming Mouse] on usb-0000:00:14.0-3/input0
[    3.381732] input: Trust Gaming Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:145F:0405.0005/input/input11
[    3.441052] hid-generic 0003:145F:0405.0005: input,hidraw2: USB HID v1.00 Mouse [Trust Gaming Mouse] on usb-0000:00:14.0-3/input1

但是查看 X 日誌,它被完全忽略了,即使後來檢測到的所有其他設備都被列舉了,並且僅在 138 秒時被拾取:

[   138.289] (**) Option "Device" "/dev/input/event8"
[   138.289] (**) Option "_source" "server/udev"
[   138.289] (II) event8  - Trust Gaming Mouse: is tagged by udev as: Keyboard Mouse
[   138.289] (II) event8  - Trust Gaming Mouse: device is a pointer
[   138.289] (II) event8  - Trust Gaming Mouse: device is a keyboard
[   138.289] (II) event8  - Trust Gaming Mouse: device removed
[   138.320] (II) libinput: Trust Gaming Mouse: needs a virtual subdevice
[   138.320] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:145F:0405.0005/input/input11/event8"
[   138.320] (II) XINPUT: Adding extended input device "Trust Gaming Mouse" (type: MOUSE, id 18)

同時,防火牆會阻止數據包,當您重新插入滑鼠時也會看到這些阻止:

[  138.249752] [UFW BLOCK] IN=wlp2s0 OUT= MAC= SRC=2003:00e5:9f0d:82aa:9e4d:f753:9456:fa0a DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=94302 PROTO=UDP SPT=8612 DPT=8612 LEN=24
[  138.249766] [UFW BLOCK] IN=wlp2s0 OUT= MAC= SRC=2003:00e5:9f0d:82aa:9e4d:f753:9456:fa0a DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=390035 PROTO=UDP SPT=8612 DPT=8610 LEN=24
[  138.249777] [UFW BLOCK] IN=wlp2s0 OUT= MAC= SRC=fe80:0000:0000:0000:c3d4:139e:fbdf:5c13 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=236403 PROTO=UDP SPT=8612 DPT=8612 LEN=24
[  138.249786] [UFW BLOCK] IN=wlp2s0 OUT= MAC= SRC=fe80:0000:0000:0000:c3d4:139e:fbdf:5c13 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=46973 PROTO=UDP SPT=8612 DPT=8610 LEN=24
[  138.259911] [UFW BLOCK] IN=wlp2s0 OUT= MAC= SRC=2003:00e5:9f0d:82aa:9e4d:f753:9456:fa0a DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=94302 PROTO=UDP SPT=8612 DPT=8612 LEN=24
[  138.259923] [UFW BLOCK] IN=wlp2s0 OUT= MAC= SRC=2003:00e5:9f0d:82aa:9e4d:f753:9456:fa0a DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=390035 PROTO=UDP SPT=8612 DPT=8610 LEN=24
[  138.259934] [UFW BLOCK] IN=wlp2s0 OUT= MAC= SRC=fe80:0000:0000:0000:c3d4:139e:fbdf:5c13 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=236403 PROTO=UDP SPT=8612 DPT=8612 LEN=24
[  138.259943] [UFW BLOCK] IN=wlp2s0 OUT= MAC= SRC=fe80:0000:0000:0000:c3d4:139e:fbdf:5c13 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=64 TC=0 HOPLIMIT=1 FLOWLBL=46973 PROTO=UDP SPT=8612 DPT=8610 LEN=24

這很奇怪,但當然也可能是完全無關的巧合。想法:

  1. 滑鼠的早期拾取不知何故把事情搞砸了,儘管它看起來像 HID 處理它很好。
  2. 還有一些額外的 udev 規則,無論是預設情況下還是因為您安裝了它們,當您插入滑鼠時出於某種原因需要訪問 Internet。防火牆會阻止這些規則,因此您只能在超時後看到滑鼠。

我想不出測試(1)的好方法。對於 (2),您可以嘗試禁用防火牆,嘗試記住您第一次使用滑鼠時是否安裝了其他任何東西,或者調試 udev 操作(這有點痛苦)。

引用自:https://unix.stackexchange.com/questions/545372