drm_detect_hdmi_monitor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_detect_hdmi_monitor(9) πŸ’–

okay so this is a page from the Kernel API Manual, and bestie, it is so much shorter than that SEE ALSO list would have you believe. let's get into it 🫢


✨ NAME ✨

drm_detect_hdmi_monitor β€” literally just: does this monitor speak HDMI or not πŸ’…


🌸 SYNOPSIS 🌸

bool drm_detect_hdmi_monitor (const struct edid *edid );

it returns a bool, it takes one const struct edid *, that's the whole vibe ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • edid β€” the monitor's EDID information. that's the little blob of self-describing data the display hands over so the kernel knows what it's dealing with πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it actually does: it parses the CEA extension, and it does that according to CEA-861-B. no cap, that's the spec it's following ✨

important heads-up, bestie 🚨 if you're a driver and you've already added the modes parsed from EDID into drm_display_info, do not call this function. use drm_display_info.is_hdmi instead. like, the info is right there already, why would you go ask again 😭

πŸ’œ RETURN πŸ’œ

  • True β€” the monitor is HDMI πŸŽ‰
  • false β€” it's not HDMI, or it's unknown πŸ€·β€β™€οΈ

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file for all this lives at ./drivers/gpu/drm/drm_edid.c β€” that's the mothership 🏠

and now, the friend group πŸ’… (all of these are (9) section pages):


and that's the whole page, bestie, you ate that πŸ“ this one ships out of ./drivers/gpu/drm, stamped October 2026, and it's still filed under drm_detect_hdmi_monitor(9) in the Kernel API Manual. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from