drm_dp_dual_mode_detect(9)
π drm_dp_dual_mode_detect π
okay so this is a page from the Kernel API Manual, bestie β we're deep in kernel-land, and this little function is here to help you figure out what kind of DP dual mode adaptor you're actually holding. Slay. Let's get into it π«Ά
β¨ NAME β¨
drm_dp_dual_mode_detect β literally just: identify the DP dual mode adaptor π
πΈ SYNOPSIS πΈ
enum drm_dp_dual_mode_type drm_dp_dual_mode_detect (const struct
drm_device *dev , struct i2c_adapter *adapter );
π ARGUMENTS π
devβ thedrm_deviceto use. that's your main character right there πadapterβ the I2C adapter for the DDC bus. yes, the DDC bus, no cap π¦
π¦ DESCRIPTION π¦
So what does it do? It attempts to identify the type of the DP dual mode adaptor used. That's the whole vibe check π
β οΈ but bestie, listen β when the answer comes back as DRM_DP_DUAL_MODE_UNKNOWN, it's not certain whether we're dealing with a native HDMI port or a type 1 DVI dual mode adaptor. like, genuinely unclear π the driver is gonna have to use some other hardware/driver specific mechanism to make that distinction. not me having to figure it out myself π
β RETURN β
It returns the type of the DP dual mode adaptor used β¨ that's it, that's the tea π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/display/drm_dp_dual_mode_helper.cβ the dp dual mode helpers(9), iconic behaviour honestly drm_dp_dual_mode_read(9)drm_dp_dual_mode_write(9)drm_dp_dual_mode_max_tmds_clock(9)drm_dp_dual_mode_get_tmds_output(9)drm_dp_dual_mode_set_tmds_output(9)drm_dp_get_dual_mode_type_name(9)drm_lspcon_get_mode(9)drm_lspcon_set_mode(9)
and that's a wrap, bestie π§π this one came straight out of ./drivers/gpu/drm/display, dated October 2026 β go forth and identify those adaptors, periodt π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms