USB 鍵盤在註冊之前需要數十次偵測

USB 鍵盤在註冊之前需要數十次偵測

我使用的是 Ubuntu 22.04。幾個月前,當我還在使用 20.04 時,我的機械鍵盤開始出現問題,直到那一刻為止,我的機械式鍵盤都可以正常工作。這肯定是在更新後發生的,但自從幾個月前開始以來,我無法追溯在此問題開始之前安裝了哪些更新。

重新啟動後以及將 KVM 交換器從工作筆記型電腦 (Windows) 切換到 Ubuntu 桌面後,會出現此問題。 KVM 切換器不是問題,當鍵盤直接插入桌上型電腦時也會出現問題。我的 Windows 筆記型電腦上沒有出現此問題。

問題是鍵盤被探測並且探測失敗;這種情況發生了幾十次。

來自journalctl(我已將主機名稱替換為[主機名稱]):

aug 08 17:20:43 [hostname] kernel: usb 1-5.1.4: new full-speed USB device number 86 using xhci_hcd
aug 08 17:20:43 [hostname] kernel: usb 1-5.1.4: New USB device found, idVendor=04d9, idProduct=0348, bcdDevice= 1.10
aug 08 17:20:43 [hostname] kernel: usb 1-5.1.4: New USB device strings: Mfr=3, Product=1, SerialNumber=0
aug 08 17:20:43 [hostname] kernel: usb 1-5.1.4: Product: Ducky Keyboard
aug 08 17:20:43 [hostname] kerl: usb 1-5.1.4: Manufacturer: DuckyChannel International Co., Ltd.
aug 08 17:20:43 [hostname] kernel: input: DuckyChannel International Co., Ltd. Ducky Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1.4/1-5.1.4:1.0/0003:04D9:0348.0>
aug 08 17:20:43 [hostname] kernel: hid-generic 0003:04D9:0348.0055: input,hidraw6: USB HID v1.11 Keyboard [DuckyChannel International Co., Ltd. Ducky Keyboard] on usb-0000:00:14.0-5>
aug 08 17:20:43 [hostname] kernel: usbhid 1-5.1.4:1.1: can't add hid device: -32
aug 08 17:20:43 [hostname] kernel: usbhid: probe of 1-5.1.4:1.1 failed with error -32
aug 08 17:20:43 [hostname] kernel: usbhid 1-5.1.4:1.2: can't add hid device: -32
aug 08 17:20:43 [hostname] kernel: usbhid: probe of 1-5.1.4:1.2 failed with error -32
aug 08 17:20:43 [hostname] kernel: usb 1-5.1.4: USB disconnect, device number 86
aug 08 17:20:43 [hostname] acpid[1320]: input device has been disconnected, fd 23
aug 08 17:20:43 [hostname] libvirtd[2050]: internal error: Missing udev property 'ID_VENDOR_ID' on '1-5.1.4'
aug 08 17:20:43 [hostname] libvirtd[2050]: internal error: Missing udev property 'ID_VENDOR_ID' on '1-5.1.4'
aug 08 17:20:43 [hostname] gnome-shell[2493]: Could not open device /dev/input/event21: Could not get device info for path /dev/input/event21: No such file or directory

最終探測成功,鍵盤工作:

aug 08 17:47:26 [hostname] kernel: usb 1-5.1.4: new full-speed USB device number 126 using xhci_hcd
aug 08 17:47:26 [hostname] kernel: usb 1-5.1.4: New USB device found, idVendor=04d9, idProduct=0348, bcdDevice= 1.10
aug 08 17:47:26 [hostname] kernel: usb 1-5.1.4: New USB device strings: Mfr=3, Product=1, SerialNumber=0
aug 08 17:47:26 [hostname] kernel: usb 1-5.1.4: Product: Ducky Keyboard
aug 08 17:47:26 [hostname] kernel: usb 1-5.1.4: Manufacturer: DuckyChannel International Co., Ltd.
aug 08 17:47:26 [hostname] kernel: input: DuckyChannel International Co., Ltd. Ducky Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1.4/1-5.1.4:1.0/0003:04D9:0348.0>
aug 08 17:47:26 [hostname] kernel: hid-generic 0003:04D9:0348.0C79: input,hidraw6: USB HID v1.11 Keyboard [DuckyChannel International Co., Ltd. Ducky Keyboard] on usb-0000:00:14.0-5>
aug 08 17:47:26 [hostname] kernel: hid-generic 0003:04D9:0348.0C7A: hiddev2,hidraw7: USB HID v1.11 Device [DuckyChannel International Co., Ltd. Ducky Keyboard] on usb-0000:00:14.0-5>
aug 08 17:47:26 [hostname] kernel: input: DuckyChannel International Co., Ltd. Ducky Keyboard System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1.4/1-5.1.4:1.2/0>
aug 08 17:47:26 [hostname] kernel: input: DuckyChannel International Co., Ltd. Ducky Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1.4/1-5.1.4:1.2>
aug 08 17:47:26 [hostname] kernel: input: DuckyChannel International Co., Ltd. Ducky Keyboard Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1.4/1-5.1.4:1.2/0003:04D9:>
aug 08 17:47:26 [hostname] kernel: input: DuckyChannel International Co., Ltd. Ducky Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1.4/1-5.1.4:1.2/0003:04D9:0348.0>
aug 08 17:47:26 [hostname] kernel: hid-generic 0003:04D9:0348.0C7B: input,hidraw8: USB HID v1.11 Mouse [DuckyChannel International Co., Ltd. Ducky Keyboard] on usb-0000:00:14.0-5.1.>
aug 08 17:47:26 [hostname] mtp-probe[267460]: checking bus 1, device 126: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5.1/1-5.1.4"
aug 08 17:47:26 [hostname] mtp-probe[267460]: bus: 1, device: 126 was not an MTP device
aug 08 17:47:26 [hostname] systemd-logind[1412]: Watching system buttons on /dev/input/event21 (DuckyChannel International Co., Ltd. Ducky Keyboard)
aug 08 17:47:26 [hostname] systemd-logind[1412]: Watching system buttons on /dev/input/event22 (DuckyChannel International Co., Ltd. Ducky Keyboard System Control)
aug 08 17:47:27 [hostname] systemd-logind[1412]: Watching system buttons on /dev/input/event25 (DuckyChannel International Co., Ltd. Ducky Keyboard)

我嘗試過其他鍵盤、其他 USB 連接埠和新的優質 USB 電纜,因為這種行為可能表明存在電源問題,並且我嘗試了不同的電源配置文件,但均未成功。鍵盤是 Ducky One2 RGB。

我在askubuntu、stackexchange 和其他網站上看到過各種描述類似問題的帖子,但都沒有最終的解決方案。因此,每次重新啟動後或從筆記型電腦切換到桌上型電腦後,我都會花費大量時間等待鍵盤可用。有誰知道可能是什麼原因造成的?

相關內容