You are not logged in.

#1 2024-03-10 21:14:14

Subbeh
Member
Registered: 2020-07-25
Posts: 16

[SOLVED] Docking issues with USB and monitors

Hi all,

I recently bought a new laptop (Lenovo X1) and installed Arch on it, coming from a similar setup on a Dell XPS.

Everything works flawlessly, except for when I dock the laptop to my Dell WD19TB.

When the laptop is booted while being docked, it mostly works, but randomly only the external screens work, or only the mouse and keyboard work.

When connecting the laptop to the dock after being booted in Arch, the external screens work but the mouse and keyboard never work.

The output of 'lsusb' does not show any of the external devices when the dock is connected and keyboard and mouse don't work:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 06cb:00fc Synaptics, Inc.
Bus 003 Device 003: ID 04f2:b751 Chicony Electronics Co., Ltd Integrated Camera
Bus 003 Device 004: ID 8087:0033 Intel Corp. AX211 Bluetooth
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Compared to when it is connected and everything is recognised:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 06cb:00fc Synaptics, Inc.
Bus 003 Device 003: ID 04f2:b751 Chicony Electronics Co., Ltd Integrated Camera
Bus 003 Device 004: ID 8087:0033 Intel Corp. AX211 Bluetooth
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0bda:5487 Realtek Semiconductor Corp. Dell dock
Bus 005 Device 003: ID 0bda:5413 Realtek Semiconductor Corp. Dell dock
Bus 005 Device 004: ID 413c:b06e Dell Computer Corp. Dell dock
Bus 005 Device 005: ID 046d:c548 Logitech, Inc. Logi Bolt Receiver
Bus 005 Device 006: ID 3434:0340 Keychron Keychron V4
Bus 005 Device 007: ID 0bda:402e Realtek Semiconductor Corp. USB Audio
Bus 005 Device 008: ID 413c:b06f Dell Computer Corp. Dell dock
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 002: ID 0bda:0487 Realtek Semiconductor Corp. Dell dock
Bus 006 Device 003: ID 0bda:0413 Realtek Semiconductor Corp. Dell dock
Bus 006 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter

This is what I see in the logs along the way:

  1. Boot undocked (everything works)

  2. Connect to dock (external monitors work, usb devices don't work)

    Mar 11 07:27:03 x1 kernel: thunderbolt 1-0:1.1: new retimer found, vendor=0x8087 device=0x15ee
    Mar 11 07:27:04 x1 kernel: thunderbolt 1-1: new device found, vendor=0xd4 device=0xb070
    Mar 11 07:27:04 x1 kernel: thunderbolt 1-1: Dell WD19TB Thunderbolt Dock
  3. Powercycle docking station (no changes)

    Mar 11 07:30:07 x1 kernel: thunderbolt 1-0:1.1: retimer disconnected
    Mar 11 07:30:07 x1 kernel: thunderbolt 1-1: device disconnected
    Mar 11 07:30:27 x1 kernel: thunderbolt 1-0:1.1: new retimer found, vendor=0x8087 device=0x15ee
    Mar 11 07:30:27 x1 kernel: thunderbolt 1-1: new device found, vendor=0xd4 device=0xb070
    Mar 11 07:30:27 x1 kernel: thunderbolt 1-1: Dell WD19TB Thunderbolt Dock
    Mar 11 07:30:34 x1 kernel: usb usb2-port3: attempt power cycle
    Mar 11 07:30:42 x1 kernel: usb usb2-port3: unable to enumerate USB device
  4. Reset input devices (disable and enable /sys/bus/usb/devices/*/authorized and reset atkbd kernel module -> no changes)

    Mar 11 07:32:13 x1 kernel: usb 3-6: USB disconnect, device number 2
    Mar 11 07:32:13 x1 kernel: usb 3-8: USB disconnect, device number 3
    Mar 11 07:32:13 x1 kernel: usb 3-10: USB disconnect, device number 4
    Mar 11 07:32:13 x1 kernel: hub 1-0:1.0: USB hub found
    Mar 11 07:32:13 x1 kernel: hub 1-0:1.0: 1 port detected
    Mar 11 07:32:13 x1 kernel: usb usb1: authorized to connect
    Mar 11 07:32:13 x1 kernel: hub 2-0:1.0: USB hub found
    Mar 11 07:32:13 x1 kernel: hub 2-0:1.0: 4 ports detected
    Mar 11 07:32:13 x1 kernel: usb usb2: authorized to connect
    Mar 11 07:32:13 x1 systemd[1]: Starting Load/Save RF Kill Switch Status...
    Mar 11 07:32:13 x1 systemd[1]: Stopped target Bluetooth Support.
    Mar 11 07:32:13 x1 systemd[1]: Started Load/Save RF Kill Switch Status.
    Mar 11 07:32:13 x1 kernel: hub 3-0:1.0: USB hub found
    Mar 11 07:32:13 x1 kernel: hub 3-0:1.0: 12 ports detected
    Mar 11 07:32:13 x1 kernel: typec port0: bound usb3-port1 (ops connector_ops)
    Mar 11 07:32:13 x1 kernel: typec port0: bound usb2-port1 (ops connector_ops)
    Mar 11 07:32:13 x1 kernel: typec port1: bound usb3-port3 (ops connector_ops)
    Mar 11 07:32:13 x1 kernel: typec port1: bound usb2-port3 (ops connector_ops)
    Mar 11 07:32:13 x1 kernel: usb usb3: authorized to connect
    Mar 11 07:32:13 x1 kernel: hub 4-0:1.0: USB hub found
    Mar 11 07:32:13 x1 kernel: hub 4-0:1.0: 4 ports detected
    Mar 11 07:32:13 x1 kernel: usb usb4: authorized to connect
    Mar 11 07:32:13 x1 kernel: usb 3-6: new full-speed USB device number 6 using xhci_hcd
    Mar 11 07:32:14 x1 kernel: usb 3-6: New USB device found, idVendor=06cb, idProduct=00fc, bcdDevice= 0.00
    Mar 11 07:32:14 x1 kernel: usb 3-6: New USB device strings: Mfr=0, Product=0, SerialNumber=1
    Mar 11 07:32:14 x1 kernel: usb 3-6: SerialNumber: 206bee0a6c40
    Mar 11 07:32:14 x1 kernel: usb 3-8: new high-speed USB device number 7 using xhci_hcd
    Mar 11 07:32:14 x1 kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input23
    Mar 11 07:32:14 x1 systemd-logind[1076]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
    Mar 11 07:32:14 x1 kernel: usb 3-8: New USB device found, idVendor=04f2, idProduct=b751, bcdDevice=74.20
    Mar 11 07:32:14 x1 kernel: usb 3-8: New USB device strings: Mfr=3, Product=1, SerialNumber=2
    Mar 11 07:32:14 x1 kernel: usb 3-8: Product: Integrated Camera
    Mar 11 07:32:14 x1 kernel: usb 3-8: Manufacturer: Chicony Electronics Co.,Ltd.
    Mar 11 07:32:14 x1 kernel: usb 3-8: SerialNumber: 0001
    Mar 11 07:32:14 x1 kernel: usb 3-8: Found UVC 1.10 device Integrated Camera (04f2:b751)
    Mar 11 07:32:14 x1 kernel: usb 3-8: Found UVC 1.50 device Integrated Camera (04f2:b751)
    Mar 11 07:32:14 x1 kernel: usb 3-10: new full-speed USB device number 8 using xhci_hcd
    Mar 11 07:32:14 x1 kernel: usb 3-10: New USB device found, idVendor=8087, idProduct=0033, bcdDevice= 0.00
    Mar 11 07:32:14 x1 kernel: usb 3-10: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    Mar 11 07:32:14 x1 kernel: Bluetooth: hci0: Firmware timestamp 2023.48 buildtype 1 build 75324
    Mar 11 07:32:14 x1 kernel: Bluetooth: hci0: DSM reset method type: 0x00
    Mar 11 07:32:14 x1 kernel: Bluetooth: hci0: Found device firmware: intel/ibt-0040-0041.sfi
    Mar 11 07:32:14 x1 kernel: Bluetooth: hci0: Boot Address: 0x100800
    Mar 11 07:32:14 x1 kernel: Bluetooth: hci0: Firmware Version: 60-48.23
    Mar 11 07:32:14 x1 kernel: Bluetooth: hci0: Firmware already loaded
    Mar 11 07:32:14 x1 kernel: Bluetooth: MGMT ver 1.22
    ... bluetooth and pipewire stuff ...
    Mar 11 07:32:15 x1 systemd[1351]: Reached target Bluetooth.
    Mar 11 07:32:15 x1 systemd[1]: Reached target Bluetooth Support.
    Mar 11 07:32:20 x1 systemd[1]: systemd-rfkill.service: Deactivated successfully.
  5. Reboot (external monitors work initially but turn off during the boot process. usb devices work now)

  6. Reconnect docking station (external monitors are turned on again, but usb devices stop working)

    Mar 11 07:35:36 x1 kernel: thunderbolt 1-0:1.1: retimer disconnected
    Mar 11 07:35:36 x1 kernel: thunderbolt 1-1: device disconnected
    Mar 11 07:35:36 x1 kernel: pcieport 0000:00:07.2: pciehp: Slot(5): Link Down
    Mar 11 07:35:36 x1 kernel: pcieport 0000:00:07.2: pciehp: Slot(5): Card not present
    Mar 11 07:35:36 x1 kernel: xhci_hcd 0000:52:00.0: remove, state 4
    Mar 11 07:35:36 x1 kernel: usb usb6: USB disconnect, device number 1
    Mar 11 07:35:36 x1 kernel: usb 6-2: USB disconnect, device number 2
    Mar 11 07:35:36 x1 kernel: usb 6-2.3: USB disconnect, device number 3
    Mar 11 07:35:36 x1 kernel: r8152-cfgselector 6-2.4: USB disconnect, device number 4
    Mar 11 07:35:36 x1 kernel: xhci_hcd 0000:52:00.0: USB bus 6 deregistered
    Mar 11 07:35:36 x1 kernel: xhci_hcd 0000:52:00.0: xHCI host controller not responding, assume dead
    Mar 11 07:35:36 x1 kernel: xhci_hcd 0000:52:00.0: remove, state 1
    Mar 11 07:35:36 x1 kernel: usb usb5: USB disconnect, device number 1
    Mar 11 07:35:36 x1 kernel: usb 5-2: USB disconnect, device number 2
    Mar 11 07:35:36 x1 kernel: usb 5-2.3: USB disconnect, device number 3
    Mar 11 07:35:36 x1 kernel: usb 5-2.3.1: USB disconnect, device number 5
    Mar 11 07:35:36 x1 kernel: pci 0000:51:04.0: Runtime PM usage count underflow!
    Mar 11 07:35:37 x1 kernel: usb 5-2.3.3: USB disconnect, device number 6
    Mar 11 07:35:38 x1 kernel: usb 5-2.3.4: USB disconnect, device number 7
    Mar 11 07:35:38 x1 kernel: usb 5-2.3.5: USB disconnect, device number 8
    Mar 11 07:35:38 x1 kernel: usb 5-2.5: USB disconnect, device number 4
    Mar 11 07:35:38 x1 kernel: xhci_hcd 0000:52:00.0: Host halt failed, -19
    Mar 11 07:35:38 x1 kernel: xhci_hcd 0000:52:00.0: Host not accessible, reset failed.
    Mar 11 07:35:38 x1 kernel: xhci_hcd 0000:52:00.0: USB bus 5 deregistered
    Mar 11 07:35:38 x1 kernel: pci_bus 0000:52: busn_res: [bus 52] is released
    Mar 11 07:35:38 x1 kernel: pci_bus 0000:53: busn_res: [bus 53-79] is released
    Mar 11 07:35:38 x1 kernel: pci_bus 0000:51: busn_res: [bus 51-79] is released
    Mar 11 07:35:44 x1 kernel: thunderbolt 1-0:1.1: new retimer found, vendor=0x8087 device=0x15ee
    Mar 11 07:35:45 x1 kernel: thunderbolt 1-1: new device found, vendor=0xd4 device=0xb070
    Mar 11 07:35:45 x1 kernel: thunderbolt 1-1: Dell WD19TB Thunderbolt Dock
    Mar 11 07:35:52 x1 kernel: usb usb2-port3: attempt power cycle
    Mar 11 07:36:00 x1 kernel: usb usb2-port3: unable to enumerate USB device
  7. Shutdown laptop, reconnect dock, and start (external monitors work, usb works)

I see a few things, including "usb usb2-port3: unable to enumerate USB device", but I don't know what could be causing this.

Any ideas how I can further investigate this are much appreciated.

Last edited by Subbeh (2024-03-29 23:56:58)

Offline

#2 2024-03-19 15:55:39

bendwerner
Member
Registered: 2024-03-19
Posts: 3

Re: [SOLVED] Docking issues with USB and monitors

Ive got exact the same problem... Using an Dell Latitude 5300 2-in-1 and a Dell Dock WD19TB.  Using kernel 6.8.1-arch

Offline

#3 2024-03-19 18:25:08

bendwerner
Member
Registered: 2024-03-19
Posts: 3

Re: [SOLVED] Docking issues with USB and monitors

found a solution: its related to your thunderbolt 3 settings in UEFI. theres a secure mode you have to disable that you can adhoc plug in usb devices. the other solution i found is to use this udev rule described here https://wiki.archlinux.org/title/Thunderbolt section 2.2

Offline

#4 2024-03-25 20:24:48

retn
Member
Registered: 2024-03-25
Posts: 1

Re: [SOLVED] Docking issues with USB and monitors

THANK YOU SO MUCH! This has been driving me crazy for hours.

I was perplexed as to why my monitor with usb hub works on boot but not after disconnecting the USB-C cable and re-connecting. Nothing was showing up in lsusb, but dmesg was showing that my monitor had been connected.
I added the Thunderbolt udev rule to allow hot plugging and voila.

Not that my specific setup is relevant here, but in case someone is searching random search terms everywhere like I was, with a similar setup:
Laptop: Asus Zenbook 14X (UX3404)
Monitor: Dell U4021QW
Software: Vanilla Arch, systemd-boot, Wayland, KDE Plasma
Keywords: plug, unplug, hotplug, boot, keyboard

Offline

#5 2024-03-28 01:00:05

Subbeh
Member
Registered: 2020-07-25
Posts: 16

Re: [SOLVED] Docking issues with USB and monitors

bendwerner wrote:

found a solution: its related to your thunderbolt 3 settings in UEFI. theres a secure mode you have to disable that you can adhoc plug in usb devices. the other solution i found is to use this udev rule described here https://wiki.archlinux.org/title/Thunderbolt section 2.2

Thanks so much! It didn't solve the issue with monitors turning off during boot, but at least now I can replug the dock and everything comes back on using the udev rules.

Offline

#6 2024-03-29 10:31:20

KasTasMykolas
Member
Registered: 2022-10-27
Posts: 4

Re: [SOLVED] Docking issues with USB and monitors

Ummm, had similar issue, but the culprit was Thunderbolt passthrough disabled under the UEFI settings (yay, reboot). Apparently, fwdupd occasionally resets some of the UEFI options.

Offline

#7 2024-03-29 11:38:14

bendwerner
Member
Registered: 2024-03-19
Posts: 3

Re: [SOLVED] Docking issues with USB and monitors

@Subbeh please  mark post as [SOLVED]

Offline

Board footer

Powered by FluxBB