]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm: panel-backlight-quirks: Add Steam Deck brightness quirk
authorAntheas Kapenekakis <lkml@antheas.dev>
Fri, 29 Aug 2025 14:55:40 +0000 (16:55 +0200)
committerMario Limonciello (AMD) <superm1@kernel.org>
Wed, 3 Sep 2025 15:23:03 +0000 (10:23 -0500)
On the SteamOS kernel, Valve universally makes minimum brightness 0
for all devices. SteamOS is (was?) meant for the Steam Deck, so
enabling it universally is reasonable. However, it causes issues in
certain devices. Therefore, introduce it just for the Steam Deck here.

SteamOS kernel does not have a public mirror, but this replaces commit
806dd74bb225 ("amd/drm: override backlight min value from 12 -> 0")
in the latest, as of this writing, SteamOS kernel (6.11.11-valve24).
See unofficial mirror reconstructed from sources below.

Link: https://gitlab.com/evlaV/linux-integration/-/commit/806dd74bb225
Reviewed-by: Robert Beckett <bob.beckett@collabora.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Antheas Kapenekakis <lkml@antheas.dev>
Link: https://lore.kernel.org/r/20250829145541.512671-6-lkml@antheas.dev
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
drivers/gpu/drm/drm_panel_backlight_quirks.c

index 2bdbd5583d3238371191421d2855bd825b867bce..537dc6dd05343979fe37905adbc9d02bcf2a1933 100644 (file)
@@ -45,6 +45,21 @@ static const struct drm_get_panel_backlight_quirk drm_panel_min_backlight_quirks
                .ident.name = "NE135A1M-NY1",
                .quirk = { .min_brightness = 1, },
        },
+       /* Steam Deck models */
+       {
+               .dmi_match.field = DMI_SYS_VENDOR,
+               .dmi_match.value = "Valve",
+               .dmi_match_other.field = DMI_PRODUCT_NAME,
+               .dmi_match_other.value = "Jupiter",
+               .quirk = { .min_brightness = 1, },
+       },
+       {
+               .dmi_match.field = DMI_SYS_VENDOR,
+               .dmi_match.value = "Valve",
+               .dmi_match_other.field = DMI_PRODUCT_NAME,
+               .dmi_match_other.value = "Galileo",
+               .quirk = { .min_brightness = 1, },
+       },
        /* Have OLED Panels with brightness issue when last byte is 0/1 */
        {
                .dmi_match.field = DMI_SYS_VENDOR,