zeus: Import displayconfig to control HBM

Change-Id: Ic0db626323bedabee791bb7c9e443b71e49ee36d
This commit is contained in:
Arian 2024-03-14 18:59:32 +01:00
parent 53c1ae6309
commit 8733e55722
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,55 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!-- MIUI ADD: Adapt_MIUIAdaptFrame -->
<displayConfiguration>
<!-- Global Brightness-Nit mapping -->
<screenBrightnessMap>
<point>
<value>0.002197534</value>
<nits>2.0</nits>
</point>
<point>
<value>0.499938</value>
<nits>500.0</nits>
</point>
<point>
<value>1.0</value>
<nits>1000.0</nits>
</point>
</screenBrightnessMap>
<!-- root node for HBM-->
<highBrightnessMode enabled="true">
<!-- Transition point brightness from normal to HBM mode -->
<transitionPoint>0.499938</transitionPoint>
<!-- Minimum lux to enter HBM -->
<minimumLux>6001</minimumLux>
<!-- Time limitation for HBM-->
<timing>
<timeWindowSecs>0</timeWindowSecs>
<timeMaxSecs>0</timeMaxSecs>
<timeMinSecs>0</timeMinSecs>
</timing>
<!--Refresh rate limitation when the device is in HBM -->
<!-- <refreshRate>
<minimum>0</minimum>
<maximum>0</maximum>
</refreshRate> -->
<!-- Thermal limitation for HBM -->
<thermalStatusLimit>critical</thermalStatusLimit>
<!-- Low power mode limitation for HBM -->
<allowInLowPowerMode>true</allowInLowPowerMode>
<minimumHdrPercentOfScreen>0</minimumHdrPercentOfScreen>
<sdrHdrRatioMap>
<point>
<sdrNits>2.0</sdrNits>
<hdrRatio>2.25</hdrRatio>
</point>
<point>
<sdrNits>1000.0</sdrNits>
<hdrRatio>2.25</hdrRatio>
</point>
</sdrHdrRatioMap>
</highBrightnessMode>
<ambientLightHorizonLong>3000</ambientLightHorizonLong>
<ambientLightHorizonShort>1000</ambientLightHorizonShort>
</displayConfiguration>
<!-- END Adapt_MIUIAdaptFrame -->

View file

@ -7,6 +7,7 @@ PRODUCT_SOONG_NAMESPACES += \
PRODUCT_COPY_FILES += \
vendor/xiaomi/zeus/proprietary/odm/lib64/vendor.xiaomi.hardware.fx.tunnel@1.0.so:$(TARGET_COPY_OUT_ODM)/lib64/vendor.xiaomi.hardware.fx.tunnel@1.0.so \
vendor/xiaomi/zeus/proprietary/vendor/etc/displayconfig/display_id_4630947134992368258.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630947134992368258.xml \
vendor/xiaomi/zeus/proprietary/vendor/bin/agmcap:$(TARGET_COPY_OUT_VENDOR)/bin/agmcap \
vendor/xiaomi/zeus/proprietary/vendor/bin/agmcompressplay:$(TARGET_COPY_OUT_VENDOR)/bin/agmcompressplay \
vendor/xiaomi/zeus/proprietary/vendor/bin/agmplay:$(TARGET_COPY_OUT_VENDOR)/bin/agmplay \