External monitor over USB-C dock not working since 26.05 upgrade

I got an HP Elitebook 840 G10 plugged into an HP G5 essential dock over USB-C.

I’m on nixos 26.05 with Gnome and Wayland, also up to date.

My two monitors (HDMI and DP) were working fine before the 26.05 upgrade.
Everything else (network, usb devices) are working fine.

I tried rolling back the kernel version to 6.6 without success.
My BIOS and dock firmware are up to date.

I really don’t know where to search next, it seems in the logs that no display devices are recognize when plugging the dock.

The dmesg i got when unplugging / plugging the dock :

<6>[ 6623.807740] usb 1-4: USB disconnect, device number 5
<6>[ 6623.807766] usb 1-4.2: USB disconnect, device number 6
<6>[ 6623.889481] usb 1-4.3: USB disconnect, device number 7
<6>[ 6623.889508] usb 1-4.3.1: USB disconnect, device number 9
<6>[ 6624.173517] usb 1-4.3.4: USB disconnect, device number 11
<6>[ 6624.259463] usb 1-4.3.5: USB disconnect, device number 13
<6>[ 6624.295928] r8152-cfgselector 1-4.4: USB disconnect, device number 8
<6>[ 6624.337063] usb 1-4.5: USB disconnect, device number 10
<6>[ 6624.339029] usb 1-4.6: USB disconnect, device number 12
<6>[ 6632.701335] usb 1-4: new high-speed USB device number 15 using xhci_hcd
<6>[ 6632.903695] usb 1-4: New USB device found, idVendor=03f0, idProduct=079d, bcdDevice= 0.19
<6>[ 6632.903713] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 6632.903718] usb 1-4: Product: USB2.1 Hub
<6>[ 6632.903721] usb 1-4: Manufacturer: Generic
<6>[ 6632.907351] hub 1-4:1.0: USB hub found
<6>[ 6632.908521] hub 1-4:1.0: 6 ports detected
<6>[ 6633.205315] usb 1-4.2: new high-speed USB device number 16 using xhci_hcd
<6>[ 6633.864685] usb 1-4.2: New USB device found, idVendor=03f0, idProduct=879d, bcdDevice= 0.03
<6>[ 6633.864690] usb 1-4.2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
<6>[ 6633.864692] usb 1-4.2: Product: USB Audio
<6>[ 6633.864693] usb 1-4.2: Manufacturer: Generic
<6>[ 6633.864694] usb 1-4.2: SerialNumber: 201604140001
<6>[ 6634.417212] input: Generic USB Audio Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.2/1-4.2:1.3/0003:03F0:879D.0011/input/input32
<6>[ 6634.470828] input: Generic USB Audio as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.2/1-4.2:1.3/0003:03F0:879D.0011/input/input33
<6>[ 6634.470925] hid-generic 0003:03F0:879D.0011: input,hiddev97,hidraw3: USB HID v1.11 Device [Generic USB Audio] on usb-0000:00:14.0-4.2/input3
<6>[ 6634.551106] usb 1-4.3: new high-speed USB device number 17 using xhci_hcd
<6>[ 6634.654054] usb 1-4.3: New USB device found, idVendor=03f0, idProduct=179d, bcdDevice= 0.08
<6>[ 6634.654058] usb 1-4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 6634.654060] usb 1-4.3: Product: USB2.1 Hub
<6>[ 6634.654061] usb 1-4.3: Manufacturer: Generic
<6>[ 6635.095301] hub 1-4.3:1.0: USB hub found
<6>[ 6635.096423] hub 1-4.3:1.0: 5 ports detected
<6>[ 6635.287302] usb 1-4.4: new high-speed USB device number 18 using xhci_hcd
<6>[ 6635.380049] usb 1-4.4: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.01
<6>[ 6635.380063] usb 1-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
<6>[ 6635.380067] usb 1-4.4: Product: USB 10/100/1000 LAN
<6>[ 6635.380070] usb 1-4.4: Manufacturer: Realtek
<6>[ 6635.380073] usb 1-4.4: SerialNumber: 000001
<6>[ 6635.454366] usb 1-4.3.1: new full-speed USB device number 19 using xhci_hcd
<6>[ 6635.545627] usb 1-4.3.1: New USB device found, idVendor=1038, idProduct=1872, bcdDevice= 1.04
<6>[ 6635.545633] usb 1-4.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 6635.545635] usb 1-4.3.1: Product: Rival 3 Wireless Gen 2
<6>[ 6635.545637] usb 1-4.3.1: Manufacturer: SteelSeries
<6>[ 6635.655304] input: SteelSeries Rival 3 Wireless Gen 2 as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3.1/1-4.3.1:1.0/0003:1038:1872.0012/input/input35
<6>[ 6635.655430] hid-generic 0003:1038:1872.0012: input,hidraw4: USB HID v1.11 Mouse [SteelSeries Rival 3 Wireless Gen 2] on usb-0000:00:14.0-4.3.1/input0
<6>[ 6635.657166] input: SteelSeries Rival 3 Wireless Gen 2 Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3.1/1-4.3.1:1.1/0003:1038:1872.0013/input/input36
<6>[ 6635.733324] r8152-cfgselector 1-4.4: reset high-speed USB device number 18 using xhci_hcd
<6>[ 6635.735221] hid-generic 0003:1038:1872.0013: input,hidraw5: USB HID v1.11 Keyboard [SteelSeries Rival 3 Wireless Gen 2] on usb-0000:00:14.0-4.3.1/input1
<6>[ 6635.735895] hid-generic 0003:1038:1872.0014: hiddev98,hidraw6: USB HID v1.11 Device [SteelSeries Rival 3 Wireless Gen 2] on usb-0000:00:14.0-4.3.1/input2
<6>[ 6635.737339] hid-generic 0003:1038:1872.0015: hiddev99,hidraw7: USB HID v1.11 Device [SteelSeries Rival 3 Wireless Gen 2] on usb-0000:00:14.0-4.3.1/input3
<6>[ 6635.924101] usb 1-4.3.4: new full-speed USB device number 20 using xhci_hcd
<6>[ 6636.019870] usb 1-4.3.4: New USB device found, idVendor=0b0e, idProduct=0312, bcdDevice= 3.04
<6>[ 6636.019877] usb 1-4.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[ 6636.019879] usb 1-4.3.4: Product: Jabra EVOLVE 30 II
<6>[ 6636.019881] usb 1-4.3.4: Manufacturer: GN Audio A/S
<6>[ 6636.019883] usb 1-4.3.4: SerialNumber: 0006A148BCEA09
<6>[ 6636.225765] input: GN Audio A/S Jabra EVOLVE 30 II as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.3/1-4.3.4/1-4.3.4:1.3/0003:0B0E:0312.0016/input/input37
<6>[ 6636.237498] r8152 1-4.4:1.0: load rtl8153a-4 v3 06/12/25 successfully
<6>[ 6636.261664] r8152 1-4.4:1.0 eth0: v1.12.13
<6>[ 6636.277601] jabra 0003:0B0E:0312.0016: input,hiddev100,hidraw8: USB HID v1.00 Device [GN Audio A/S Jabra EVOLVE 30 II] on usb-0000:00:14.0-4.3.4/input3
<6>[ 6636.301577] r8152 1-4.4:1.0 enp0s20f0u4u4: renamed from eth0
<6>[ 6636.339097] usb 1-4.5: new high-speed USB device number 21 using xhci_hcd
<6>[ 6636.450219] usb 1-4.5: New USB device found, idVendor=03f0, idProduct=279d, bcdDevice= 1.01
<6>[ 6636.450226] usb 1-4.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 6636.450229] usb 1-4.5: Product: HP USB-C G5 Essential Dock
<6>[ 6636.450231] usb 1-4.5: Manufacturer: HP
<6>[ 6636.521149] usb 1-4.3.5: new high-speed USB device number 22 using xhci_hcd
<6>[ 6636.618937] usb 1-4.3.5: New USB device found, idVendor=03f0, idProduct=479d, bcdDevice= 1.01
<6>[ 6636.618952] usb 1-4.3.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 6636.618957] usb 1-4.3.5: Product: HID Device
<6>[ 6636.618960] usb 1-4.3.5: Manufacturer: Realtek
<6>[ 6636.623559] hid-generic 0003:03F0:479D.0017: hiddev101,hidraw9: USB HID v1.11 Device [Realtek HID Device] on usb-0000:00:14.0-4.3.5/input0
<6>[ 6636.691142] usb 1-4.6: new high-speed USB device number 23 using xhci_hcd
<6>[ 6636.794395] usb 1-4.6: New USB device found, idVendor=03f0, idProduct=379d, bcdDevice= 1.01
<6>[ 6636.794406] usb 1-4.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
<6>[ 6636.794409] usb 1-4.6: Product: HID Device
<6>[ 6636.794412] usb 1-4.6: Manufacturer: Realtek
<6>[ 6636.799069] hid-generic 0003:03F0:379D.0018: hiddev102,hidraw10: USB HID v1.11 Device [Realtek HID Device] on usb-0000:00:14.0-4.6/input0
<6>[ 6639.233689] r8152 1-4.4:1.0 enp0s20f0u4u4: carrier on

Do you still have a boot entry that works? Then you could diff the two generations:

```
nix store diff-closures /nix/var/nix/profiles/system-$FIRST-link /nix/var/nix/profiles/system-$SECOND-link
```

Also maybe USB-C DisplayPort alt-mode broken on 6.19.8-surface-3: typec/UCSI modules not autoloading · Issue #2195 · linux-surface/linux-surface · GitHub is related? the kernel module check is something I’d do

So the check is:

  ls /sys/class/typec/
  lsmod | grep -iE 'typec|ucsi'

and if that’s empty: (then replug)

  sudo modprobe typec typec_ucsi ucsi_acpi typec_displayport

Thanks for your reply, sadly no i don’t have a working generation…

The kernel module are loaded properly, i explicitely set them in my config :

  boot.kernelModules = [
    "kvm-intel"
    # DP alt
    "typec"
    "ucsi_acpi"
    "typec_displayport"
  ];
$   lsmod | grep -iE 'typec|ucsi'
ucsi_acpi              12288  0
typec_ucsi             90112  1 ucsi_acpi
typec_displayport      24576  0
roles                  20480  1 typec_ucsi
typec                 135168  2 typec_displayport,typec_ucsi
thunderbolt           606208  1 typec

$ sudo dmesg | grep -iE 'typec|ucsi'
[    0.005358] ACPI: SSDT 0x000000004BBEC000 001A39 (v02 HP     UcsiAcpi 00000001 INTL 20200717)
[    0.005359] ACPI: SSDT 0x000000004BBEB000 0000FB (v02 HP     UcsiCntr 00000001 INTL 20200717)

But i don’t see any device using it, ls /sys/class/typec/ returns nothing.

I suspect a BIOS issue, i tried booting a live Mint ISO and i got the same issue.

The probleme was indeed not NixOS.

I tried what i saw on some reddit threads : pressing the power button for a minute.
After that the laptop seems to have reinitialized something, my monitors are working again.

I have no idea what caused it in the first place or what the “pressing the power button” fix actually did but it’s working again.

1 Like