drm_add_modes_noedid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_add_modes_noedid β€” the Kernel API Manual moment πŸ’–

okay so bestie, welcome to the drm_add_modes_noedid(9) page, straight out of the Kernel API Manual. this is the lil function that handles the "no EDID?? no problem" situation for connectors, and honestly it's giving quiet main character energy. let's get into it πŸŽ€


✨ NAME ✨

drm_add_modes_noedid β€” add modes for the connectors without EDID πŸ¦‹

like, the connector can't tell you what it supports? bestie, we're gonna add the modes ourselves. slay.


🌸 SYNOPSIS 🌸

int drm_add_modes_noedid (struct drm_connector *connector , unsigned int
hdisplay , unsigned int vdisplay );

literally just three things going in, one int coming out. no cap. πŸ’…


🧚 ARGUMENTS 🧚

  • connector β€” the connector we're probing 🫢 like, the actual thing we're checking out, iykyk
  • hdisplay β€” the horizontal display limit ⭐ this is the horizontal ceiling, bestie. respect it
  • vdisplay β€” the vertical display limit 🌈 and this is the vertical ceiling, periodt

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea β˜•: this adds the specified modes to the connector's mode list. that's it, that's the whole vibe.

but β€” and this is the important bit, so pay attention πŸ™ˆ β€” a mode only gets added when the hdisplay/vdisplay is not beyond the given limit. if it overshoots the limit, it does not get added. no exceptions, no sneaky extras, fr fr. πŸ’€


πŸ”₯ RETURN πŸ”₯

it hands you back the number of modes added πŸŽ€ …or 0 if we couldn't find any 😭 and yes, zero is a legit answer, don't come for it.


πŸ’œ SEE ALSO πŸ’œ

the kernel file lives at ./drivers/gpu/drm/drm_edid.c, and here's the whole friend group, all of them, no one left out 🫢✨:


and that's the whole page, bestie πŸ’– this lil gem lives under ./drivers/gpu/drm and it's dated October 2026 β€” so go forth, add those modes, and stay iconic πŸ‘‘βœ¨πŸ’…

πŸ“¦ where this page comes from