Skip to content

Commit

Permalink
ferrari: Redo brightness configuration and move partially to displayc…
Browse files Browse the repository at this point in the history
…onfig

* Updated minimum brightness calculation from 4/2047 to 4/4095
to align with display DTSI's max level (qcom,mdss-brightness-min-level = 1,
qcom,mdss-brightness-max-level = 4095).

* Synced screenBrightnessRamp with Oplus SM8650.

* screenBrightnessMap is preferred as it supports only floating-point values.

* Calculated High Brightness Mode (HBM) transition point as 2047/(4095-4).
The transition lux is also obtained from OplusSmartBrightnessController.

* Removed some overlays so as to prefer the defaults.

* Update auto brightness overlays from stock display dumpsys under
OplusSmartBrightnessController.

Change-Id: I0b2513be866728f3ddf93f7fbe296d78d862c813
  • Loading branch information
pjgowtham committed Nov 12, 2024
1 parent 88dcf20 commit b7dc8f1
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 237 deletions.
36 changes: 36 additions & 0 deletions configs/display_id_4630946358012694402.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,41 @@
<density>560</density>
</density>
</densityMapping>
<screenBrightnessMap interpolation="linear">
<point>
<value>0.00097680097</value>
<nits>2.0</nits>
</point>
<point>
<value>1.0</value>
<nits>800.0</nits>
</point>
</screenBrightnessMap>
<highBrightnessMode enabled="true">
<transitionPoint>0.50036665851</transitionPoint>
<minimumHdrPercentOfScreen>0.1</minimumHdrPercentOfScreen>
<minimumLux>8700</minimumLux>
<timing>
<timeWindowSecs>1800</timeWindowSecs>
<timeMaxSecs>300</timeMaxSecs>
<timeMinSecs>60</timeMinSecs>
</timing>
<sdrHdrRatioMap>
<point>
<sdrNits>2.000</sdrNits>
<hdrRatio>8.000</hdrRatio>
</point>
<point>
<sdrNits>500.000</sdrNits>
<hdrRatio>1.5</hdrRatio>
</point>
</sdrHdrRatioMap>
</highBrightnessMode>
<screenBrightnessRampFastDecrease>0.06</screenBrightnessRampFastDecrease>
<screenBrightnessRampFastIncrease>0.06</screenBrightnessRampFastIncrease>
<screenBrightnessRampSlowDecrease>0.04</screenBrightnessRampSlowDecrease>
<screenBrightnessRampSlowIncrease>0.04</screenBrightnessRampSlowIncrease>
<screenBrightnessRampIncreaseMaxMillis>3000</screenBrightnessRampIncreaseMaxMillis>
<screenBrightnessRampDecreaseMaxMillis>3000</screenBrightnessRampDecreaseMaxMillis>
</displayConfiguration>

Loading

0 comments on commit b7dc8f1

Please sign in to comment.