omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

linux-omarchy 7.2.5: external monitors on Thunderbolt/MST dock get wrong EDID or fail to modeset (Panther Lake, upstream xe regression)

Open DanielHartl opened this issue 2 months ago • 4 comments

Summary

linux-omarchy 7.2.5-3 (and stock Arch linux 7.2.3) corrupt the EDIDs of monitors that are connected through a Thunderbolt dock over DP MST, on Panther Lake (xe). The result is wrong monitor names and resolutions, and after a dock hotplug every modeset fails with -EINVAL, so the external monitors stay dark. Kernel 7.1 (linux-ptl 7.1.8) works correctly on the same hardware.

This is an upstream kernel regression (7.1 → 7.2), reported to the xe driver here with EDID dumps from both kernels: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9421

I'm filing it here because linux-omarchy became the default boot entry (migration 1789325478), so affected users on Panther Lake with MST docks get this without having changed anything.

System

  • Omarchy 4.0.4-1, Hyprland 0.56.2, aquamarine 0.15.0
  • Dell laptop, Intel Panther Lake, Arc B390 [8086:b080], driver xe
  • Lenovo ThinkPad Thunderbolt 3 Dock, 3 monitors (HP 27ea 1080p, 2x Lenovo P27h-10 1440p)

Symptoms

  • One monitor reports another monitor's EDID (identical name and serial), so mode = "preferred" picks 1920x1080 on a 2560x1440 panel. Power-cycling the monitor does not help.
  • After the dock re-enumerates: atomic drm request: failed to commit: Invalid argument for every mode, and the monitors stay at 0x0.

Workaround

Boot a 7.1 kernel. Here, linux-ptl is first in BOOT_ORDER in /etc/default/limine, followed by limine-update.

DanielHartl avatar Sep 26 '26 17:09 DanielHartl

Same failure here on a different Intel driver: Tiger Lake with i915, not xe. So this looks like a 7.1 → 7.2 regression in shared DP MST code rather than something specific to xe.

System

  • Dell XPS 15 9510, i7-11800H, Intel UHD (TigerLake-H GT1, i915) plus RTX 3050 Mobile (nvidia, not driving the dock); BIOS 1.47.0
  • Lenovo ThinkPad USB-C Dock Gen2 (USB 17ef:a391/a392, fw c.d4), connected by USB-C DP alt mode; the monitor goes through the dock's MST hub
  • Samsung S34CG50 ultrawide, [email protected]
  • Broken: Omarchy 4.0.4-1, linux-omarchy 7.2.5-3 and stock linux 7.2.3.arch1-3, aquamarine 0.15.0-2, Hyprland 0.56.2-2
  • Working: the pre-update snapshot with Omarchy 4.0.2-1, linux 7.1.9.arch1-2, aquamarine 0.14.0-2, Hyprland 0.56.2-1. This dock and monitor worked daily for weeks on 7.1.9.

What happens

On 7.2.x the dock works on first connect: the monitor comes up as DP-4 and modesets at 3440x1440. It keeps working across normal undock/redock cycles as long as it comes back as DP-4.

It breaks when the dock re-enumerates the MST connector under a new name (DP-5). I hit that three ways: the dock dropping off USB on its own with the lid closed, the monitor waking from idle DPMS-off, and a plain replug soon after boot on stock 7.2.3. From then on, every atomic commit on the new connector fails, even the lowest mode:

drm: Connector DP-5 connected
drm: Connecting connector DP-5, CRTC ID 309
atomic drm request: failed to commit: Invalid argument, flags: ATOMIC_ALLOW_MODESET ATOMIC_TEST_ONLY
drm: atomic commit failed with max_bpc set, retrying without max_bpc
drm: Modesetting DP-5 with [email protected]
atomic drm request: failed to commit: Invalid argument, flags: ATOMIC_ALLOW_MODESET PAGE_FLIP_EVENT

hyprctl monitors all then shows DP-5 0x0, and the monitor stays black. The EDID is still read correctly: the right name, serial and full mode list. So I did not see the wrong-EDID part of the original report, only the -EINVAL part.

Earlier the same day, on linux-omarchy 7.2.5, i915 logged this before the first failure:

i915 0000:00:02.0: [drm] *ERROR* [CRTC:309:pipe B] mismatch in fec_enable (expected no, found yes)
i915 0000:00:02.0: [drm] pipe state doesn't match!
WARNING: drivers/gpu/drm/i915/display/intel_modeset_verify.c:225 at intel_modeset_verify_crtc+0x368/0x600 [i915], CPU#15: Hyprland/1216

It didn't show up on the stock 7.2.3 boot, which failed the same way.

What I tried

Attempt Result
Unplug/replug the dock, power-cycle the dock's power brick USB, Ethernet, audio, webcam and charging all come back; the monitor is detected but stays 0x0
hyprctl reload Same -EINVAL on every mode
hyprctl eval disable → re-enable the output with an explicit mode ([email protected]) Same -EINVAL
Turning eDP-1 off to free CRTC 171 (pipe A), then re-enabling the output and replugging Still -EINVAL, and the output stays on CRTC 309 (pipe B)
Reboot on 7.2.5 Works again until the next time the connector comes back as DP-5, about 30 minutes later on idle wake
Boot stock Arch linux 7.2.3 Same failure within a minute of docking
Boot the pre-update snapshot (7.1.9 + aquamarine 0.14) Works: the dock re-enumeration is handled fine
omarchy snapshot restore to that snapshot Stable; this is my workaround for now

This agrees with the original report's point that a 7.1 kernel works while running aquamarine 0.15, which makes the kernel the suspect rather than aquamarine. I haven't tested 7.1.9 with aquamarine 0.15 on my own machine.

Unrelated noise, for completeness: a device on one of the dock's internal hub ports fails USB enumeration constantly (device descriptor read/64, error -32). It does that just as much on 7.1.9, where everything works, so it isn't the cause.

Happy to test a patched kernel or collect drm.debug output if that helps.

qtahar avatar Sep 26 '26 19:09 qtahar

Correction: this also reproduces on 7.1.8 with identical corrupted EDIDs, so it's intermittent and not a 7.2 / linux-omarchy regression. Tracking upstream at https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9421. Sorry for the noise.

DanielHartl avatar Sep 28 '26 17:09 DanielHartl

Too bad, Omarchy is the only OS where my setup worked and now it is broken. Back to Ubuntu :)

qtahar avatar Sep 28 '26 17:09 qtahar

Too bad, Omarchy is the only OS where my setup worked and now it is broken. Back to Ubuntu :)

FWIW, this is still broken on Ubuntu 26.04

lrvega avatar Sep 28 '26 17:09 lrvega