Repository navigation
Description
System Model or SKU
Framework Laptop 13 Pro (Intel® Core™ Ultra Series 3)
BIOS Version
03.04
DIY Edition Information
Memory: Micron 64 GB LPCAMM2 LPDDR5-8533, MTD32C20326N8FN023F1
Storage: WD_BLACK SN850X 2TB
Port/Peripheral Information
Peripheral vendor and name: Level1Techs Combo USB-C Power Delivery & DisplayPort 1.4 KVM (Triple Monitor), powered by its own 135 W, 19.5 V supply. Two computers are on it: a desktop on input 1 and this laptop on input 2. The laptop connects to it with two USB-C cables, one per monitor, both in DisplayPort alt mode, and drives two Dell U2718Q monitors through it. One of the two cables also charges the laptop; on that cable the laptop negotiated 20 V 3 A. According to its product page the KVM does not emulate monitors.
Both KVM cables are on the left side, on the PD controller that serves EC ports 2 and 3. In Linux they are typec port2 and port3, and the display driver sees them as Type-C ports TC1 and TC2.
- Left side: USB-C cable to the KVM
- Left side: USB-C cable to the KVM
- Right side: YubiKey
- Right side: nothing attached
Standalone Operation
Full System, Standalone mode NOT enabled (normal usage)
Describe the Bug
If the KVM is switched off and on while the laptop stays plugged into it, the laptop afterwards stops telling the OS when the monitors on those two ports are unplugged or plugged in. The reconnect after the KVM comes back is still reported. The next unplug is not, and neither is any later unplug or replug. Suspend and resume do not clear this. A warm reboot does.
The OS gets no DisplayPort hotplug interrupt for the unplug. With kernel debug logging on (drm.debug=0x106), the xe driver logs pica hotplug event received on both ports for the disconnect when the KVM powers off and again for the reconnect when it comes back, and nothing for the unplug that follows.
The PD side does see the unplug. With the cables out, framework_tool --pdports shows ports 2 and 3 with no PD contract and no DP alt mode, and the EC console (framework_tool --console recent) logs PORT_DISCONNECT and AC off. At the same time the display engine still has hotplug asserted on both ports. The stale state is therefore between the EC and PD controllers on one side and the display engine on the other, in the path through the SoC's Type-C subsystem. From the OS I cannot tell whether the disconnect was not sent or was not acted on.
Firmware versions from framework_tool --versions: BIOS 03.04, EC sakura-3.0.4-34ebc93, PD controllers 1.0.0B on both sides, Intel retimers 0xCF.
To check whether the driver had masked the interrupt, I read the display engine's hotplug interrupt registers from the GPU's MMIO BAR (/sys/bus/pci/devices/0000:00:02.0/resource0) at five points during one reproduction. The offsets are from drivers/gpu/drm/i915/display/intel_display_regs.h in Linux 6.18. PICAINTERRUPT is the interrupt block for the Type-C ports on this display version: ISR is the live status, IMR the mask, IIR the latched events and IER the enable. XELPDP_PORT_HOTPLUG_CTL turns hotplug detection on per port.
| register | healthy, cables in | KVM back, cables in | 75 s after unplug | after forced probe | 20 min after unplug |
|---|---|---|---|---|---|
| PICAINTERRUPT_ISR | 0x00030000 | 0x00030000 | 0x00030000 | 0x00030000 | 0x00030000 |
| PICAINTERRUPT_IMR | 0xfff0f0f0 | 0xfff0f0f0 | 0xfff0f0f0 | 0xfff0f0f0 | 0xfff0f0f0 |
| PICAINTERRUPT_IIR | 0 | 0 | 0 | 0 | 0 |
| PICAINTERRUPT_IER | 0x000f0f0f | 0x000f0f0f | 0x000f0f0f | 0x000f0f0f | 0x000f0f0f |
| XELPDP_PORT_HOTPLUG_CTL TC1 to TC4 | 0x44 | 0x44 | 0x44 | 0x44 | 0x44 |
ISR bits 16 and 17 are the DP alt mode hotplug status of TC1 and TC2. They stay set after the unplug, for at least 20 minutes, while the mask, the enables and the per-port detection do not change. The driver gets no interrupt because the status never changes.
Forcing a probe with echo detect > /sys/class/drm/card0-DP-1/status (and the same for DP-2) marks the connectors disconnected, and after a replug it brings the monitors back. It works because the driver goes on to read the monitor's DPCD over AUX, which times out after about 1.3 s per connector when nothing is attached. The hotplug status is still wrong.
While the ports are in this state, the EC console logs pl2 update fail, CC:0x.. once a second. Both captures I took while it was broken have it (20 lines over 19 s, and 74 over 73 s). Three captures taken while hotplug worked, including the first one after the reboot that cleared it, have none. The first broken capture also has CYPD: change PDOs list fail at step 2 and cypd_write_reg8_wait_ack C:1 Unexpected response 0x80 to reg 0x2004, logged at the moment the kernel reset the UCSI PPM after a resume (see the local patch below), and SET CCG_SELECT_REG failed, logged at the unplug.
This has two visible effects:
- After a replug the monitors stay dark until something forces a probe, because the connect is not reported either.
- The unplugged monitors still read as connected, so systemd-logind counts them as external displays, treats the laptop as docked (
HandleLidSwitchDocked=ignoreis the default) and does not suspend when the lid is closed.
Steps To Reproduce
- Boot with both cables plugged in and the KVM on input 2. Both monitors come up.
- With the laptop still plugged in, switch the KVM off, wait 5 s, switch it back on and select input 2, since it powers up on input 1. The disconnect caused by the power-off is reported normally: each DP port gets a hotplug interrupt within 3 s.
- After powering up, the KVM does not offer the laptop input: no USB hub enumerates and no DisplayPort comes up for at least 3 minutes. Unplug both USB-C cables from the laptop, wait 10 s and plug them back in. I did this in all three runs and have not tested whether it is needed.
- One to four minutes later the KVM's USB hub and both monitors come back. This connect is reported normally, through a hotplug interrupt on each port.
- Unplug both USB-C cables from the laptop.
- No disconnect is reported.
cat /sys/class/drm/card0-DP-*/statusstill shows both ports asconnected, no hotplug interrupt is logged, and the EC console logspl2 update failonce a second.
Results on 2026-11-28, in local time (UTC-8):
- 11:01. The KVM had stopped responding (its input button did nothing and its USB hub failed to enumerate) and was power-cycled. Its laptop input came back at 11:07, with one s2idle suspend and resume afterwards. The next unplug, at 11:45, was not reported. Later replugs were not reported either, and a suspend and resume at 12:35 did not clear it. A reboot at 12:43 did.
- 13:02, deliberate reproduction. The laptop input came back at 13:11. The unplug at 13:12 was not reported.
- 13:35, with kernel debug logging and the register reads above. The laptop input came back at 13:41. The unplug at 13:41 was not reported.
As a control, after the 12:43 reboot I ran six cycles of plugging in, s2idle suspend, waking with the KVM keyboard and unplugging. Every unplug was reported within 3 s, so suspend and resume alone do not cause this.
Expected Behavior
Unplugging the cables should clear hotplug on those ports so the OS sees the monitors disconnect, as it does before the KVM power cycle and after a reboot.
Operating System
NixOS 26.11 (unstable), niri compositor
Linux Kernel Version
Linux 6.18.64 #1-NixOS SMP PREEMPT_DYNAMIC x86_64, xe driver
Additional Context
The kernel carries one local patch, to ucsi_resume_work() in drivers/usb/typec/ucsi/ucsi.c. When re-enabling UCSI notifications fails after a resume (#286), it resets the PPM and checks every connector again. It only runs after a failed resume. Runs 2 and 3 had no suspend between the last reported hotplug and the failure, and five of the six control resumes went through it without hotplug breaking.
The KVM power cycle differs from an unplug in one way that may matter: the laptop keeps charging from the KVM while the KVM is off (AC stays online), so the Type-C link stays up while the KVM's DisplayPort output goes away and comes back.
Possibly related: #265, where the EC saw the monitor with HPD high while the kernel saw nothing, and #272. On the kernel side, https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14807 has a comment reproducing a similar trigger on another Panther Lake system (NUC 16 Pro with a USB-C to HDMI adapter): power-cycling the TV while its output is active leaves the output dead until reboot.
I can attach the kernel debug log of run 3, the register dumps and the EC console captures, and can run commands while the laptop is in this state.
Assisted-by: Claude Code (claude-opus-5-5)
Activity
djacu commentedon Nov 28, 2026
Logs and register dumps from the runs above, plus a correction and one more observation from run 3. Times are local (UTC-8).
Attached files:
01-run3-drm-debug-0x106.txt: kernel log of run 3 (13:33 to 13:46) withdrm.debug=0x106. KVM power-off at 13:35:19, laptop input back at 13:41:11, unplug at 13:41:56, forced probe at 13:45:02.02to06: the five register reads from the table in the issue, each with the DP connector states,i915_display_infoandi915_power_domain_info.07-pdports-20min-after-unplug.txt:framework_tool --pdports, taken at the same time as06.08and09: EC console (framework_tool --console recent) while broken, at 12:35 in run 1 and at 13:13 in run 2.10: EC console while hotplug worked, the first capture after the reboot at 12:43.11-read-hpd-regs.sh.txt: the script that took the register reads. It only reads, needs root and kernel lockdown off, and maps the GPU's BAR at0000:00:02.0.Correction: the drm/i915 issue #14807 I linked as possibly related has since been explained. On the NUC 16 Pro the compositor (KWin) received the disconnect but never committed a modeset to turn off its last output, so the pipe stayed active, and the driver's Type-C link reset then re-enabled it on the dead link. That was fixed in KWin (https://invent.kde.org/plasma/kwin/-/merge_requests/9383). It is not the same failure as this one. Here the compositor (niri) turns both outputs off and both connectors read disconnected after the KVM power-off. The fault shows up later, at the next unplug, as the hotplug status staying set.
The same driver path does run here, though, when the KVM is powered off. From
01:TypeC DP-alt sink disconnected, resetting linkon TC2.dp-alttodisconnectedtotbt-alt, link training fails at 540000 x 4 lanes, and pipe C is enabled again on TC2.disconnectedat 13:35:23.40.So the display side put TC2 in TBT-alt mode for about 300 ms (13:35:22.02 to 13:35:22.32), tried link training there and had pipe C enabled on it for about 30 ms, while the KVM was still attached on the PD side. I do not know whether that is what leaves the Type-C subsystem holding hotplug high afterwards. I also have not checked whether a plain unplug goes through the link reset; debug logging was off during the control cycles.
Assisted-by: Claude Code (claude-opus-5-5)
01-run3-drm-debug-0x106.txt
02-regs-1-healthy.txt
03-regs-2-kvm-back.txt
04-regs-3-75s-after-unplug.txt
05-regs-4-after-forced-probe.txt
06-regs-5-20min-after-unplug.txt
07-pdports-20min-after-unplug.txt
08-ec-console-broken-run1-1235.txt
09-ec-console-broken-run2-1313.txt
10-ec-console-working-after-reboot-1244.txt
11-read-hpd-regs.sh.txt
djacu commentedon Nov 29, 2026
The display-side part of this report matches drm/xe issue #9595 (https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9595), where two other Panther Lake laptops lose DP on a USB-C port after the sink goes away while its output is still enabled. On a Lenovo ThinkPad X9-15p, about 2 s after the disconnect the xe driver's Type-C link reset (
intel_tc_port_link_reset_work) runs on the still-enabled pipe, puts the port into TBT-alt mode, link training fails, and DP does not come back until a reboot. On a Dell XPS 14 the same function logs adrm_WARN_ONand the port gives no USB or DP until a suspend and resume.The same link reset runs on TC2 at the KVM power-off in run 3 here. I added the sequence, the register reads and the logs from this report to that issue: https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9595#note_3817024
That makes the xe driver's Type-C link reset, or the SoC's response to it, the more likely trigger than the EC. The
pl2 update failmessages on the EC console still appear only while the ports are in this state, and I have no explanation for them.Assisted-by: Claude Code (claude-opus-5-5)
djacu commentedon Nov 29, 2026
I tested two other ways the monitors behind the KVM can go away, to see whether they also leave DisplayPort hotplug stuck as described in this issue: switching the KVM to the desktop on its input 1 and back, and turning one monitor off and on with its power button. Each test ended with unplugging both cables to check whether the disconnect was still reported.
So far only the KVM power cycle triggers it. The input switch makes the xe driver run the same Type-C link reset on TC2 as the power cycle does, including the failed link training, but hotplug keeps working afterwards, so that link reset alone is not enough. The only other difference I can see from the laptop side is how the KVM comes back after a power cycle. Each time, its DisplayPort output for this laptop had not returned after 3 to 4 minutes, so I replugged the cables, and the monitors came back 1 to 4 minutes after that.
The driver-side timing of these tests and the kernel debug log are in https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9595#note_3817029
Assisted-by: Claude Code (claude-opus-5-5)
nixosConfigurations.ilmenite: re-probe DP connectors on USB-C changes
nixosConfigurations.ilmenite: re-probe DP connectors on USB-C changes