Udev 需要 15 秒来检测鼠标

Udev 需要 15 秒来检测鼠标

每当插入我的 SteelSeries Xai 鼠标时,都会有 15 秒的延迟,直到鼠标被正确识别并开始工作。这在启动时特别麻烦,udev 等待 15 秒什么也不做。

以下是我在dmesg开机时找到的相关信息:

[    1.238572] hidraw: raw HID events driver (C) Jiri Kosina
[   16.249791] usbcore: registered new interface driver usbhid
[   16.249794] usbhid: USB HID core driver
[   16.250382] input: Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input1
[   16.250463] hid-generic 0003:1038:1360.0001: input,hidraw0: USB HID v1.00 Mouse [Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device] on usb-0000:00:1d.0-1/input0
[   16.250608] input: Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input2
[   16.250642] hid-generic 0003:1038:1360.0002: input,hidraw1: USB HID v1.00 Keyboard [Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device] on usb-0000:00:1d.0-1/input1
[   16.254873] hid-generic 0003:1038:1360.0003: hiddev0,hidraw2: USB HID v1.00 Device [Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device] on usb-0000:00:1d.0-1/input2

正如您所看到的,在 15 秒的时间里,udev什么也没做。

但是,当我拔下插头然后重新插入时,过程有点不同:

[22660.547752] usb 6-1: new full-speed USB device number 3 using uhci_hcd
[22665.718517] input: Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input19
[22665.718676] hid-generic 0003:1038:1360.0004: input,hidraw0: USB HID v1.00 Mouse [Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device] on usb-0000:00:1d.0-1/input0
[22670.724539] input: Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.1/input/input20
[22670.724665] hid-generic 0003:1038:1360.0005: input,hidraw1: USB HID v1.00 Keyboard [Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device] on usb-0000:00:1d.0-1/input1
[22675.735427] hid-generic 0003:1038:1360.0006: hiddev0,hidraw2: USB HID v1.00 Device [Ruling Technologies Sdn. Bhd. SteelSeries Gaming Device] on usb-0000:00:1d.0-1/input2

现在它似乎以 5 秒的间隔识别鼠标的各个部分。

问题可能出在鼠标上。我过去在 Linux 上遇到过问题,所以我不会放弃它。不过,我感兴趣的是至少一个解决方法,这样我的启动过程就不会花那么长时间(DE 大约需要 45 秒,所以 15 秒什么都没有很多)。如果每次插入电源时我仍然需要等待 15 秒,那也没关系。鼠标工作正常,不会自行重新连接。

那么:有没有办法加快设备检测速度,即使是手动检测?

或者:有什么我可以做的,udev这样它就不会在启动时等待这个特定设备响应?

相关内容