From ba03f295ac423b1e36edf15ef6e87425c912f5d1 Mon Sep 17 00:00:00 2001 From: pjgowtham Date: Mon, 9 Nov 2026 08:52:16 +0530 Subject: [PATCH] ferrari: displayconfig: Map brightness from the stock panel table Two points, 2 to 800 nits, are linear in the backlight level, but the panel isn't: at backlight 1000 it gives 253 nits, not the 196 the map assumes, and it tops out at 789 nits. Take the points from the S6E3HC3 table stock uses, display_brightness_config_samsung1024.xml, so auto brightness reaches the nits it asks for. The points keep the error within 2.5% above the darkest levels. Assisted-by: LLM Change-Id: I5d38144e0219ff11e4e8a8ad315111052f565eaa --- configs/display/displayconfig.xml | 44 +++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/configs/display/displayconfig.xml b/configs/display/displayconfig.xml index c5cefe9..fd8cce8 100644 --- a/configs/display/displayconfig.xml +++ b/configs/display/displayconfig.xml @@ -15,11 +15,51 @@ 0.00097680097 - 2.0 + 2.094 + + + 0.00366300366 + 3.719 + + + 0.00537240537 + 5.456 + + + 0.00854700855 + 8.946 + + + 0.01489621490 + 15.075 + + + 0.02222222222 + 22.163 + + + 0.08034188034 + 80.734 + + + 0.16532356532 + 174.364 + + + 0.50036665851 + 502.969 + + + 0.80219780220 + 687.653 + + + 0.96971916972 + 788.394 1.0 - 800.0 + 789.124