drm_add_modes_noedid(9)
π 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, iykykhdisplayβ the horizontal display limit β this is the horizontal ceiling, bestie. respect itvdisplayβ 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 π«Άβ¨:
drm_edid_header_is_valid(9)drm_edid_is_valid(9)drm_edid_valid(9)drm_do_probe_ddc_edid(9)drm_edid_override_connector_update(9)drm_edid_raw(9)drm_edid_alloc(9)drm_edid_dup(9)drm_edid_free(9)drm_probe_ddc(9)drm_get_edid(9)drm_edid_read_custom(9)drm_edid_read_ddc(9)drm_edid_read(9)drm_edid_get_product_id(9)drm_edid_print_product_id(9)drm_edid_get_panel_id(9)drm_edid_read_base_block(9)drm_get_edid_switcheroo(9)drm_edid_read_switcheroo(9)drm_edid_duplicate(9)edid_get_quirks(9)drm_match_cea_mode(9)drm_display_mode_from_cea_vic(9)drm_edid_match(9)drm_edid_get_monitor_name(9)drm_edid_to_sad(9)drm_edid_to_speaker_allocation(9)drm_av_sync_delay(9)drm_detect_hdmi_monitor(9)drm_detect_monitor_audio(9)drm_default_rgb_quant_range(9)drm_edid_connector_update(9)drm_edid_connector_add_modes(9)drm_connector_update_edid_property(9)drm_add_edid_modes(9)drm_hdmi_avi_infoframe_from_display_mode(9)drm_hdmi_avi_infoframe_quant_range(9)drm_hdmi_vendor_infoframe_from_display_mode(9)drm_edid_is_digital(9)
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
- 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