OLED panels consume a lot less power with darker content.  However
userspace doesn't currently know what kind of panel technology is
used to decide what kind of image to show.

This series introduces a DRM property for the panel type.  Initially
the values are "Unknown" and "OLED" leaving room for expansion later
for other display technologies like MiniLED or LCD if they are sensible
to detect and advertise as well.

A userspace implementation utilizing the new property to decide the
theme of GNOME is available here:

Link: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4029

Mario Limonciello (AMD) (2):
  drm/connector: Add a new 'panel_type' property
  drm/amd/display: Attach OLED property to eDP panels

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  7 ++++
 drivers/gpu/drm/drm_connector.c               | 33 +++++++++++++++++++
 include/drm/drm_connector.h                   |  1 +
 include/drm/drm_mode_config.h                 |  4 +++
 include/uapi/drm/drm_mode.h                   |  4 +++
 5 files changed, 49 insertions(+)

-- 
2.43.0

Reply via email to