drm_get_pan...tation_quirk(9)
π NAME π
drm_get_panel_orientation_quirk β bestie, this is the vibe check for panel orientation quirks β¨
So this is a page from the Kernel API Manual (yes, the kernel has lore, and this is part of it π), and it's all about one little function that goes looking for panel orientation quirks. Let's get into it π«Ά
β¨ SYNOPSIS β¨
int drm_get_panel_orientation_quirk (int width , int height );
That's literally it, no cap. Two ints in, one int out π
π ARGUMENTS π
widthβ the width in pixels of the panel πΈheightβ the height in pixels of the panel π¦
Two numbers, that's all she needs π
π§ DESCRIPTION π§
Okay so here's the tea β: this function checks for platform specific quirks β like, DMI based ones β that hand over info about panel_orientation for systems where you literally cannot probe that from the hard-/firm-ware π The hardware is not giving, so the quirk table has to step in and save the day π«Ά
And the way it avoids false-positives? Iconic behavior honestly: the function takes the panel resolution as an argument and checks that against the resolution expected by the quirk-table entry π So like, it's not just guessing β it's matching you against the exact resolution the quirk table is expecting β¨
Not me also flagging this: this function is also used outside of the drm-subsys β by for example the efifb code π₯ Because of this, this function gets compiled into its own kernel-module when built as a module π (yes, she has main character energy, she gets her own module)
π¦ RETURN π¦
It returns a DRM_MODE_PANEL_ORIENTATION_* value if there's a quirk for this system π
Or DRM_MODE_PANEL_ORIENTATION_UNKNOWN if there's no quirk π
Simple as that, periodt β
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_panel_orientation_quirks.cπ
That's where the quirk table actually lives, iykyk π
Sign-off time π this page lives in ./drivers/gpu/drm and it's dated October 2026 β Go check out all the quirks bestie, they're lowkey 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