ENUM DRM_PANEL_ORIENTATION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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