drm_connecto...er_get_modes(9)
π drm_connector_helper_get_modes(9) β like, the Kernel API Manual, bestie β¨
okay so real talk, this is a page from the Kernel API Manual and the function we're obsessing over today is the one and only drm_connector_helper_get_modes π«Ά
πΈ NAME πΈ
drm_connector_helper_get_modes β reads the EDID and updates the connector. that's the whole vibe, no cap π
β¨ SYNOPSIS β¨
int drm_connector_helper_get_modes (struct drm_connector *connector );
π ARGUMENTS π
connectorβ the connector. yeah that's it. that's the whole argument. she's lowkey the main character here π
π¦ DESCRIPTION π¦
so what actually happens: it reads the EDID using drm_edid_read, and heads up β that function requires that connector->ddc is set, so don't come for her if that's not wired up π β and then it updates the connector using that EDID. read first, glow up second, periodt β¨
this is literally the move when you want to use it as the "default" connector helper .get_modes hook, and the driver doesn't need any special processing. like, no extra steps, no drama, it just works π
it also sets the example for what custom .get_modes hooks should do when it comes to the EDID read and the connector update. so if you're writing your own, this is the reference behaviour, iykyk π
π₯ RETURN π₯
the number of modes. that's the return value, bestie β modes, counted π
π SEE ALSO π
okay gather round, the whole friend group's here π«Ά
- the Kernel file
./drivers/gpu/drm/drm_probe_helper.coutput probing helperoverview(9) drm_kms_helper_poll_enable(9)drm_kms_helper_poll_reschedule(9)drm_helper_probe_detect(9)drm_helper_probe_single_connector_modes(9)drm_kms_helper_hotplug_event(9)drm_kms_helper_connector_hotplug_event(9)drm_kms_helper_is_poll_worker(9)drm_kms_helper_poll_disable(9)drm_kms_helper_poll_init(9)drm_kms_helper_poll_fini(9)drmm_kms_helper_poll_init(9)drm_connector_helper_hpd_irq_event(9)drm_helper_hpd_irq_event(9)drm_crtc_helper_mode_valid_fixed(9)drm_connector_helper_get_modes_fixed(9)drm_connector_helper_tv_get_modes(9)drm_connector_helper_detect_from_ddc(9)
and that's the page!! πβ¨ this lil beauty lives over in ./drivers/gpu/drm, and she's dated October 2026 β the version/source deets for the win π¦ go forth and read those EDIDs, bestie, you're gonna slay πΈπ
π¦ 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