How Does DisplayPort Hot-Plug Detection Work?

Hot-plug detection (HPD) in DisplayPort is a hardware and protocol mechanism that notifies a source device when a display is connected, disconnected, or requesting attention. When a monitor attaches, a dedicated physical line shifts from low to high voltage, triggering the source to initiate bidirectional communication over the Auxiliary (AUX) channel to read display capabilities, negotiate link bandwidth, and establish video transmission without requiring a system reboot.

The Physical HPD Signal Line

The foundation of DisplayPort HPD is Pin 18 on a full-size DisplayPort connector (or Pin 19 on standard Mini DisplayPort). Under normal disconnected conditions, this line is pulled low to ground via a pull-down resistor on the source device.

When a sink device (the monitor) is connected and powered on, it pulls the HPD line high to approximately 3.3V. To prevent false triggers caused by mechanical contact bounce during insertion, the source hardware monitors this line and requires the signal to remain steadily high for a debounce period—typically at least 100 milliseconds—before acknowledging that a stable connection exists.

Device Identification via the AUX Channel

Once the source registers a stable high HPD signal, it activates its Auxiliary (AUX) Channel. The AUX channel is a dedicated, half-duplex, bidirectional differential pair that operates independently of the high-speed main video lanes.

Through the AUX channel, the source performs two vital queries:

  1. Reading the EDID (Extended Display Identification Data): The source retrieves the monitor's supported screen resolutions, color formats, refresh rates, and audio configurations.
  2. Reading the DPCD (DisplayPort Configuration Data): The DPCD resides directly in the sink's receiver chip. It reports the sink’s architectural limits, including supported link rates (such as RBR, HBR, HBR2, HBR3, or UHBR), lane counts (1, 2, or 4 lanes), and specific DisplayPort feature capabilities.

After collecting the sink's operational parameters, the source configures the high-speed main link through a handshake known as Link Training.

During link training, the source sends test patterns across the designated main data lanes. The sink evaluates the signal integrity, clock recovery, and channel equalization, reporting status back to the source via the DPCD registers over the AUX channel. The source dynamically adjusts its drive current, pre-emphasis, and voltage swing until all lanes achieve stable synchronization. Once link training succeeds, the source begins transmitting active audio and video data streams.

Handling Interrupts and Disconnections

The HPD line remains asserted as long as the monitor stays plugged in and operational, but it also serves as an interrupt line (HPD_IRQ). If the sink experiences a status change—such as losing link lock, changing HDCP status, or detecting downstream branch devices in a Multi-Stream Transport (MST) daisy chain—it briefly pulses the HPD line low (typically between 0.5 ms and 1.0 ms). The source interprets this short drop not as an unplug event, but as an interrupt request, prompting it to immediately read the DPCD status registers and resolve the issue.

When the cable is physically unplugged or the display loses power, the HPD line drops low continuously for longer than 2 ms. The source recognizes this prolonged low state as a full disconnection, halts main link transmission, powers down the transmitter circuitry, and updates the operating system's display configuration.