dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amd/display: use linear backlight curve on Linux
@ 2026-09-01 14:01 Aarav Kumar
  2026-09-01 14:23 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Aarav Kumar @ 2026-09-01 14:01 UTC (permalink / raw)
  To: amd-gfx
  Cc: dri-devel, linux-kernel, harry.wentland, sunpeng.li, siqueira,
	alexander.deucher, christian.koenig, ray.wu, Aarav Kumar

The power module currently uses a non-linear backlight curve for the
Linux backlight path. This results in incorrect brightness levels on
affected systems.

Use the linear backlight curve instead to preserve the existing
brightness-to-PWM mapping.

Tested on an AMD laptop with an eDP panel. The regression was
reproduced with commit 3c108046e1d6 ("drm/amd/display: Add power
module on Linux"), and the brightness behavior was restored with this
change.

Fixes: 3c108046e1d6 ("drm/amd/display: Add power module on Linux")
Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/5723
Signed-off-by: Aarav Kumar <aarav.240604@gmail.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 8d690468d..cd10a5d45 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1913,7 +1913,7 @@ static int amdgpu_dm_init_power_module(struct amdgpu_display_manager *dm)
 			!(amdgpu_dc_feature_mask & DC_DISABLE_FRACTIONAL_PWM_MASK);
 		init_data[i].use_custom_backlight_caps = false;
 		init_data[i].custom_backlight_caps_config_no = 0;
-		init_data[i].use_linear_backlight_curve = false;
+		init_data[i].use_linear_backlight_curve = true;
 		init_data[i].def_varibright_enable = 0;
 		init_data[i].varibright_level = 0;
 		/*
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-03  7:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-01 14:01 [PATCH] drm/amd/display: use linear backlight curve on Linux Aarav Kumar
2026-09-01 14:23 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox