From: Ivano Cristofolini <[email protected]>

The ASUS Vivobook 14 M1407KA (AMD Krackan iGPU) uses a CSW MNE007QS3-6
eDP panel.  Its ATIF backlight caps report a minimum input signal of
12/255, so amdgpu clamps the PWM backlight at 12/255 (3084/65535) —
far too bright for the lowest slider step in dark environments.
Windows on the same machine reaches visibly lower levels.

Add a drm panel backlight quirk lowering the minimum to 1/255
(257/65535), following the existing Framework entries.  The panel is
stable at these levels; no flicker observed.

Tested on ASUS Vivobook 14 M1407KA, BIOS M1407KA.332, kernel
7.0.0-44-generic.  Boot log:

  amdgpu 0000:03:00.0: [drm] Applying panel backlight quirk, min_brightness: 1

and writing 200 to /sys/class/backlight/amdgpu_bl1/brightness now
yields actual_brightness 257 (stock driver clamps at 3084); maximum
brightness unchanged.

Link: https://gitlab.freedesktop.org/drm/amd/-/issues/6198
Signed-off-by: Ivano Cristofolini <[email protected]>
---
 drivers/gpu/drm/drm_panel_backlight_quirks.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c 
b/drivers/gpu/drm/drm_panel_backlight_quirks.c
index 2d02383..0ee711d 100644
--- a/drivers/gpu/drm/drm_panel_backlight_quirks.c
+++ b/drivers/gpu/drm/drm_panel_backlight_quirks.c
@@ -54,6 +54,16 @@ static const struct drm_get_panel_backlight_quirk 
drm_panel_min_backlight_quirks
                .ident.name = "NE135A1M-NY1",
                .quirk = { .min_brightness = 1, },
        },
+       /* ASUS Vivobook 14 M1407KA: ATIF caps keep the PWM minimum at 12/255,
+        * which is far brighter than the panel can safely go
+        */
+       {
+               .dmi_match.field = DMI_SYS_VENDOR,
+               .dmi_match.value = "ASUSTeK COMPUTER INC.",
+               .ident.panel_id = drm_edid_encode_panel_id('C', 'S', 'W', 
0x143f),
+               .ident.name = "MNE007QS3-6",
+               .quirk = { .min_brightness = 2, },
+       },
        /* Steam Deck models */
        {
                .dmi_match.field = DMI_SYS_VENDOR,
-- 
2.53.0

Reply via email to