每當插入我的 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
這樣它就不會在啟動時等待這個特定設備響應?