1
0
Fork 0
android_external_drm_hwcomp.../utils
Konsta e2e9c8cff7 drm_hwcomposer: Add property to force display mode
* Display resolution and refresh rate can be forced using a property.
  Other modes reported as supported by the display are ignored when forcing
  a specific mode.
* Force resolution and refresh rate for headless mode as well.

This is based on following 4 commits with further updates.

Author: Chih-Wei Huang <cwhuang@linux.org.tw>
Date:   Wed Sep 19 22:57:32 2018 +0800

    drm_hwcomposer: allow to force mode by a property

    The desired resolution could be set by property debug.drm.mode.force.
    The other modes are ignored.

Author: Konsta <konsta09@gmail.com>
Date:   Sun Dec 5 15:40:40 2021 +0200

    drm_hwcomposer: use first refresh rate reported by the display

    * Android can switch between different refresh rates which
      can lead to display changing modes in some cases.
    * Use the first refresh rate reported by the display when
      forcing the resolution unless specified otherwise.

Author: Konsta <konsta09@gmail.com>
Date:   Tue Jan 25 17:46:33 2022 +0200

    drm_hwcomposer: Default to 1920x1080 resolution for headless mode

Author: Konsta <konsta09@gmail.com>
Date:   Tue Feb 1 17:40:43 2022 +0200

    drm_hwcomposer: Allow setting resolution for headless mode
2025-11-10 15:56:19 +02:00
..
EdidWrapper.h Add atom reporting for flattening controller state 2025-11-06 15:30:45 +00:00
fd.cpp drm_hwcomposer: Migrate to android::drm_hwcomposer namespace 2025-09-08 18:53:00 +00:00
fd.h drm_hwcomposer: Migrate to android::drm_hwcomposer namespace 2025-09-08 18:53:00 +00:00
LibdisplayEdidWrapper.cpp drm_hwcomposer: Cleanup includes for test target 2025-10-02 15:06:12 +00:00
log.h drm_hwcomposer: Use pragma once instead of include guards 2022-12-10 20:37:34 +02:00
properties.cpp drm_hwcomposer: Add property to force display mode 2025-11-10 15:56:19 +02:00
properties.h drm_hwcomposer: Add property to force display mode 2025-11-10 15:56:19 +02:00
UEvent.h drm_hwcomposer: Migrate to android::drm_hwcomposer namespace 2025-09-08 18:53:00 +00:00