ENUM DRM_PANEL_ORIENTATION(9)
π NAME π
Okay bestie, welcome to the <enum drm_panel_orientation> page from the Kernel API Manual β this is the one that gives you panel_orientation info for &drm_display_info, and we are going to make it make sense, fr fr. β¨
π SYNOPSIS π
enum drm_panel_orientation {
DRM_MODE_PANEL_ORIENTATION_UNKNOWN ,
DRM_MODE_PANEL_ORIENTATION_NORMAL ,
DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP ,
DRM_MODE_PANEL_ORIENTATION_LEFT_UP ,
DRM_MODE_PANEL_ORIENTATION_RIGHT_UP
};
πΈ Constants πΈ
DRM_MODE_PANEL_ORIENTATION_UNKNOWNβ the drm driver has not provided any panel orientation information (normal for non panels). In this case, the"panel orientation"connector prop will not be attached. πDRM_MODE_PANEL_ORIENTATION_NORMALβ the top side of the panel matches the top side of the deviceβs casing. Slay, no rotation drama. πDRM_MODE_PANEL_ORIENTATION_BOTTOM_UPβ the top side of the panel matches the bottom side of the deviceβs casing, iow the panel is mounted upside-down. πDRM_MODE_PANEL_ORIENTATION_LEFT_UPβ the left side of the panel matches the top side of the deviceβs casing. Iconic sideways moment. π¦DRM_MODE_PANEL_ORIENTATION_RIGHT_UPβ the right side of the panel matches the top side of the deviceβs casing. Another sideways queen. π
π«Ά Description π«Ά
This enum is used to track the (LCD) panel orientation. There are no separate #defines for the uapi! π That part is important, bestie β do not go looking for extra #define besties that arenβt there. π
π₯ SEE ALSO π₯
Kernel file ./include/drm/drm_connector.h β and hereβs the whole friend group:
enum drm_connector_status(9)enum drm_connector_registration_state(9)enum drm_connector_tv_mode(9)struct drm_scrambling(9)struct drm_hdmi_dsc_cap(9)struct drm_hdmi_info(9)enum drm_link_status(9)enum drm_hdmi_broadcast_rgb(9)struct drm_monitor_range_info(9)struct drm_luminance_range_info(9)enum drm_privacy_screen_status(9)enum drm_colorspace(9)enum drm_output_color_format(9)enum drm_connector_color_format(9)enum drm_bus_flags(9)struct drm_amd_vsdb_info(9)struct drm_display_info(9)struct drm_connector_tv_margins(9)struct drm_tv_connector_state(9)struct drm_connector_hdmi_infoframe(9)struct drm_connector_state(9)struct drm_connector_cec_funcs(9)struct drm_connector_infoframe_funcs(9)struct drm_connector_hdmi_funcs(9)struct drm_connector_funcs(9)struct drm_cmdline_mode(9)struct drm_connector_hdmi_audio(9)struct drm_connector_cec(9)struct drm_connector(9)drm_connector_lookup(9)drm_connector_get(9)drm_connector_put(9)drm_connector_is_unregistered(9)struct drm_tile_group(9)struct drm_connector_list_iter(9)drm_for_each_connector_iter(9)drm_connector_for_each_possible_encoder(9)
And thatβs the whole page, bestie. This little gem lives under ./include/drm, dated October 2026, and itβs literally enum drm_panel_orientation(9) β periodt. πβ¨π
π¦ 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