drm_get_edid_switcheroo(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_get_edid_switcheroo(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this page is all about drm_get_edid_switcheroo, and it’s giving β€œtiny wrapper, very specific laptop job” energy. no cap. 🫢

✨ NAME ✨

drm_get_edid_switcheroo β€” get EDID data for a vga_switcheroo output. literally that’s the vibe. πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

struct edid * drm_get_edid_switcheroo (struct drm_connector *connector ,
       struct i2c_adapter *adapter );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • connector β€” the connector we’re probing. that’s the one, bestie. πŸ‘€
  • adapter β€” the I2C adapter to use for DDC. iconic little detail. ✨

🌸 DESCRIPTION 🌸

okay so picture this: it’s a wrapper around drm_get_edid for laptops with dual GPUs using one set of outputs. yes, those ones. πŸ’»πŸ’»

the way that this wrapper works is that it adds the requisite vga_switcheroo calls to temporarily switch DDC to the GPU which is retrieving EDID. so it’s not just vibes β€” there are actual switcheroo calls doing the work. periodt. πŸ”₯

πŸ’– RETURN πŸ’–

returns a pointer to valid EDID, or NULL if we couldn’t find any. that’s the whole return story, no plot twist. 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/gpu/drm/drm_edid.c β€” go sniff around there if you want the lore. 🧚


mwah πŸ’‹ this page lives under ./drivers/gpu/drm, dated October 2026, and it’s all about drm_get_edid_switcheroo(9) β€” from the Kernel API Manual. bye bestie, slay your EDID probe. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from