键盘和鼠标无法在 USB 3.0 扩展坞上工作

键盘和鼠标无法在 USB 3.0 扩展坞上工作

我购买了一个Sabrent 的 USB 坞站,并安装后DisplayLink 驱动程序添加

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"

到 grubs 配置。在此之后,我启动并运行了它,第二个屏幕出现了,尽管它严重滞后,但它可以工作,至少我是这么认为的。

由于某种原因,我插入集线器的 USB 键盘或鼠标无法按预期工作。

  • 铝制 Apple 键盘不亮或无法打开。
  • Razer Naga那伽梵蛇鼠标亮起,侧面键盘可以工作,但鼠标不动。

但是 Razer Kraken USB 耳机是否能按预期工作呢?

Iv 通过谷歌尝试解决这个问题,并尝试了几件事。其中之一是尝试在 Bios 上禁用 UEFI,而我的主板(华硕 M5A78L-L USB3)甚至没有该选项。

Iv 还尝试从 BIOS 禁用传统 USB,但没有进行任何更改。

奇怪的是,鼠标显示在 lsusb 下,而 dmesg 显示没有任何问题。

鼠标插入 Dock:(Dmesg)

[5312.360339] usb 8-2.3.4: new full-speed USB device number 16 using xhci_hcd
[ 5312.698367] usb 8-2.3.4: New USB device found, idVendor=1532, idProduct=0053, bcdDevice= 2.00
[ 5312.698380] usb 8-2.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5312.698386] usb 8-2.3.4: Product: Razer Naga Chroma
[ 5312.698390] usb 8-2.3.4: Manufacturer: Razer
[ 5312.708921] input: Razer Razer Naga Chroma as /devices/pci0000:00/0000:00:07.0/0000:03:00.0/usb8/8-2/8-2.3/8-2.3.4/8-2.3.4:1.0/0003:1532:0053.0040/input/input141
[ 5312.774984] hid-generic 0003:1532:0053.0040: input,hidraw0: USB HID v1.11 Mouse [Razer Razer Naga Chroma] on usb-0000:03:00.0-2.3.4/input0
[ 5312.777379] input: Razer Razer Naga Chroma Keyboard as /devices/pci0000:00/0000:00:07.0/0000:03:00.0/usb8/8-2/8-2.3/8-2.3.4/8-2.3.4:1.1/0003:1532:0053.0041/input/input142
[ 5312.836533] input: Razer Razer Naga Chroma Consumer Control as /devices/pci0000:00/0000:00:07.0/0000:03:00.0/usb8/8-2/8-2.3/8-2.3.4/8-2.3.4:1.1/0003:1532:0053.0041/input/input143
[ 5312.836628] input: Razer Razer Naga Chroma System Control as /devices/pci0000:00/0000:00:07.0/0000:03:00.0/usb8/8-2/8-2.3/8-2.3.4/8-2.3.4:1.1/0003:1532:0053.0041/input/input144
[ 5312.836710] input: Razer Razer Naga Chroma as /devices/pci0000:00/0000:00:07.0/0000:03:00.0/usb8/8-2/8-2.3/8-2.3.4/8-2.3.4:1.1/0003:1532:0053.0041/input/input145
[ 5312.836806] hid-generic 0003:1532:0053.0041: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer Naga Chroma] on usb-0000:03:00.0-2.3.4/input1
[ 5312.837413] input: Razer Razer Naga Chroma as /devices/pci0000:00/0000:00:07.0/0000:03:00.0/usb8/8-2/8-2.3/8-2.3.4/8-2.3.4:1.2/0003:1532:0053.0042/input/input146
[ 5312.897090] hid-generic 0003:1532:0053.0042: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer Naga Chroma] on usb-0000:03:00.0-2.3.4/input2

鼠标已插入 PC:(Dmesg)

[5324.276234] usb 6-2: new full-speed USB device number 12 using ohci-pci
[ 5324.504637] usb 6-2: New USB device found, idVendor=1532, idProduct=0053, bcdDevice= 2.00
[ 5324.504649] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5324.504655] usb 6-2: Product: Razer Naga Chroma
[ 5324.504659] usb 6-2: Manufacturer: Razer
[ 5324.511504] input: Razer Razer Naga Chroma as /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.0/0003:1532:0053.0043/input/input147
[ 5324.511821] hid-generic 0003:1532:0053.0043: input,hidraw0: USB HID v1.11 Mouse [Razer Razer Naga Chroma] on usb-0000:00:13.1-2/input0
[ 5324.515645] input: Razer Razer Naga Chroma Keyboard as /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.1/0003:1532:0053.0044/input/input148
[ 5324.572516] input: Razer Razer Naga Chroma Consumer Control as /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.1/0003:1532:0053.0044/input/input149
[ 5324.572666] input: Razer Razer Naga Chroma System Control as /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.1/0003:1532:0053.0044/input/input150
[ 5324.572789] input: Razer Razer Naga Chroma as /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.1/0003:1532:0053.0044/input/input151
[ 5324.572902] hid-generic 0003:1532:0053.0044: input,hidraw1: USB HID v1.11 Keyboard [Razer Razer Naga Chroma] on usb-0000:00:13.1-2/input1
[ 5324.622050] input: Razer Razer Naga Chroma as /devices/pci0000:00/0000:00:13.1/usb6/6-2/6-2:1.2/0003:1532:0053.0045/input/input152
[ 5324.699441] hid-generic 0003:1532:0053.0045: input,hidraw2: USB HID v1.11 Keyboard [Razer Razer Naga Chroma] on usb-0000:00:13.1-2/input2

鼠标显示在 xinput 列表中:

Virtual core pointer                        id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Chroma Consumer Control  id=13   [slave  pointer  (2)]
⎜   ↳ Razer Razer Naga Chroma                   id=17   [slave  pointer  (2)]
⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Razer Razer Kraken 7.1 Chroma Consumer Control    id=8    [slave  keyboard (3)]
    ↳ Razer Razer Kraken 7.1 Chroma             id=9    [slave  keyboard (3)]
    ↳ Apple Inc. Apple Keyboard                 id=15   [slave  keyboard (3)]
    ↳ Apple Inc. Apple Keyboard                 id=16   [slave  keyboard (3)]
    ↳ Razer Razer Naga Chroma Keyboard          id=10   [slave  keyboard (3)]
    ↳ Razer Razer Naga Chroma                   id=11   [slave  keyboard (3)]
    ↳ Razer Razer Naga Chroma System Control    id=12   [slave  keyboard (3)]
    ↳ Razer Razer Naga Chroma Consumer Control  id=14   [slave  keyboard (3)]

他们的键盘在 dmesg 中确实有问题,我认为这与它也有内置集线器有关。键盘插入 Dock 时的 dmesg:

[ 4974.159538] usb 8-2.3.3: new high-speed USB device number 15 using xhci_hcd
[ 4974.372112] usb 8-2.3.3: New USB device found, idVendor=05ac, idProduct=1006, bcdDevice=96.15
[ 4974.372124] usb 8-2.3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4974.372130] usb 8-2.3.3: Product: Keyboard Hub
[ 4974.372134] usb 8-2.3.3: Manufacturer: Apple, Inc.
[ 4974.372138] usb 8-2.3.3: SerialNumber: 000000000000
[ 4974.377886] hub 8-2.3.3:1.0: USB hub found
[ 4974.377976] hub 8-2.3.3:1.0: 3 ports detected
[ 4974.479678] hub 8-2.3.3:1.0: hub_ext_port_status failed (err = -71)
[ 4974.605591] usb 8-2.3.3: USB disconnect, device number 15

插入 PC 时的键盘:

[ 4988.519415] usb 2-6: new high-speed USB device number 14 using ehci-pci
[ 4988.684291] usb 2-6: New USB device found, idVendor=05ac, idProduct=1006, bcdDevice=96.15
[ 4988.684300] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4988.684304] usb 2-6: Product: Keyboard Hub
[ 4988.684306] usb 2-6: Manufacturer: Apple, Inc.
[ 4988.684308] usb 2-6: SerialNumber: 000000000000
[ 4988.684587] hub 2-6:1.0: USB hub found
[ 4988.684655] hub 2-6:1.0: 3 ports detected
[ 4988.979406] usb 2-6.2: new low-speed USB device number 15 using ehci-pci
[ 4989.098659] usb 2-6.2: New USB device found, idVendor=05ac, idProduct=024f, bcdDevice= 0.74
[ 4989.098672] usb 2-6.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 4989.098677] usb 2-6.2: Product: Apple Keyboard
[ 4989.098681] usb 2-6.2: Manufacturer: Apple Inc.
[ 4989.104055] input: Apple Inc. Apple Keyboard as /devices/pci0000:00/0000:00:13.2/usb2/2-6/2-6.2/2-6.2:1.0/0003:05AC:024F.003E/input/input139
[ 4989.164002] apple 0003:05AC:024F.003E: input,hidraw3: USB HID v1.11 Keyboard [Apple Inc. Apple Keyboard] on usb-0000:00:13.2-6.2/input0
[ 4989.167119] apple 0003:05AC:024F.003F: Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling
[ 4989.167254] input: Apple Inc. Apple Keyboard as /devices/pci0000:00/0000:00:13.2/usb2/2-6/2-6.2/2-6.2:1.1/0003:05AC:024F.003F/input/input140
[ 4989.223701] apple 0003:05AC:024F.003F: input,hidraw4: USB HID v1.11 Device [Apple Inc. Apple Keyboard] on usb-0000:00:13.2-6.2/input1

我目前运行的是 Ubuntu 20.04。

我没主意了。帮助。

更新:在 Windows 笔记本电脑上尝试了底座和电缆。工作正常。显示没有延迟,鼠标按预期工作,耳机已打开。看来只有linux有问题。

答案1

我怀疑电缆有问题,您是否尝试过使用不同的电缆将扩展坞连接到电脑?

听起来 USB 链路的带宽受到限制,如视频中的高延迟以及显示已连接但无响应的键盘和鼠标所示。它们似乎可以通电并传输一些 USB 数据,但速度太慢,以至于无法正常工作。

您必须使用支持 USB 3.0 或更高版本(USB 3.1、3.2 等,以下我称为 USB 3.x)的电缆。我见过人们在这样的扩展坞上使用 USB 2.0 电缆或 USB 3.x 电缆,这些电缆制造成本低廉,因此实际上是 USB 2.0,并获得您所描述的行为。如果您使用的电缆与坞站附带的电缆不同,那么这可能会解释它。

USB 3.x 兼容电缆将具有“超高速”风格的“SS”和 USB“三叉戟”图标。较新的 USB 3.x 电缆通常有一个数字,显示最低测试带宽(以 Gbps 为单位),该数字为 5、10、20 或 40。有一些不兼容的电缆上带有这些图标,但很少见。事实证明,未经许可使用某人的商标是违法的,但销售劣质电缆并不违法,违法的人往往比那些销售廉价但无法使用的电缆的人更快地倒闭。

USB 3.x 的无源电缆长度限制为一米,因此,如果您的电缆比这长,那么它就违反了规格,或者是昂贵的中继器电缆。如果您购买了中继器电缆,那么您可能会意识到这一点,电缆的价格应该是一个线索。如果您使用的是扩展坞附带的电缆,请尝试使用不同的电缆(如果您有可以从其他设备借用的电缆或将一根电缆放在抽屉中)。如果可以的话,请用其他设备检查电缆。如果您必须购买一条电缆来测试这个理论,那么在购买之前请仔细检查它是否符合 USB 3.x 规范,即寻找 USB 图标等。更换电缆的价格不会太高,通常在网上售价 8 美元,在实体店售价 15 美元。

我可以建议的另一件事是,如果您购买了用于坞站的 USB-C 转 USB-B 电缆,请尝试翻转电缆的 USB-C 端。 USB-C 电缆应该可以任一面朝上工作,但廉价或损坏的电缆可能仅在一侧有损坏的数据路径,将其翻转可能会连接电缆的工作部分。

据我所知,您似乎很好地排除了软件问题,从而留下了硬件问题。最常见的硬件故障是在电缆中,幸运的是电缆便宜且易于修复。如果可以排除电缆,则扩展坞可能已损坏。

相关内容