amdgpu_dm_connector_detect(9)
π amdgpu_dm_connector_detect(9) β from the Kernel API Manual, bestie π
okay so real quick, the manual name is amdgpu_dm_connector_detect(9) and this is the Kernel API Manual, and honestly? this one's a little baddie. it's the function that answers the most iconic question in all of display land: is something actually plugged in or not π
β¨ NAME β¨
amdgpu_dm_connector_detect β literally just detecting whether a DRM connector is connected to a display, no cap π₯οΈβ¨
πΈ SYNOPSIS πΈ
enum drm_connector_status amdgpu_dm_connector_detect (struct
drm_connector *connector , bool force );
π ARGUMENTS π
connectorβ the DRM connector we're checking, bestie. we convert it to anamdgpu_dm_connectorso we can read the DC link and state. it's giving "let me get a better look at you" πforceβ iftrue, do a full detect again. this one gets used even when a lighter check would normally be the move, specifically to avoid flicker. highkey a glow-up for your eyeballs β¨
π DESCRIPTION π
so a connector counts as connected when it has a sink that is not NULL. that's the whole vibe check, fr fr π«Ά
for connectors that support HPD (hotplug detection), the connection situation is handled in the HPD interrupt β she's got people for that π
for connectors that may not support HPD, like analog connectors, DRM will call this function repeatedly to poll them. yes, repeatedly. she's persistent and we love her for it π΅οΈββοΈ
π NOTES π
- this interface is NOT called in context of HPD irq. read that again. not. π«
- this interface *is called* in context of user-mode ioctl. which makes it a bad place for *any* MST-related activity. like, do not. seriously. π«
bestie the italics in note 2 are not decorative, they are a whole warning π¨
β RETURN β
the connector status β which is one of: connected, disconnected, or unknown. that's it, that's the tea π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c FreeSync Video(9)amdgpu_dm_connector_poll(9)amdgpu_dm_update_freesync_caps(9)
go read those next, iykyk ππ
and that's the whole page! source/version: ./drivers/gpu/drm/amd/display/..., dated October 2026, filed under amdgpu_dm_connector_detect(9). 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