[PATCH 2/3] drm: panel-backlight-quirks: Add Dell XPS 13 9310 FHD+ panel
From: Paul Menzel
Date: Fri Nov 27 2026 - 11:40:38 EST
The VBT of the Dell XPS 13 9310 (BIOS 3.17.0, BDB 240, panel_type 2)
sets the backlight minimum level to 15/255, so i915 maps brightness 1
to a PWM duty cycle of 5.9 %. With GNOME, which does not go below 1 %
of max_brightness, the lowest slider position gives 6.8 %, which is
still too bright in a dark room:
$ cat /sys/class/backlight/intel_backlight/{max_brightness,brightness}
96000
960
$ sudo intel_reg read 0xC8258 # BXT_BLC_PWM_DUTY(0)
(0x000c8258): 0x00001997
6551 = 5647 + 960 * (96000 - 5647) / 96000, with 5647 = 15/255 * 96000
Writing the duty cycle register directly shows that the panel, a Sharp
LQ134N1 (EDID SHP 0x14f9), is well readable at 1 % (960/96000).
Add a quirk setting the minimum to 0/255 for this system and panel, so
that brightness maps linearly onto the PWM duty cycle, and GNOME’s
lowest position becomes 1 %. Other XPS 13 9310 panels (UHD+, OLED) were
not tested, so match the panel ID as well.
Tested on the Dell XPS 13 9310 (BIOS 3.17.0) with v7.4-rc1 and v7.4-rc4
based kernels: GNOME lowest position gives PWM duty 960/96000 (1 %),
was 6551 (6.8 %).
Signed-off-by: Paul Menzel <pmenzel@xxxxxxxxxxxxx>
---
Notes:
Prepared with Claude Code (claude-opus-5-5).
drivers/gpu/drm/drm_panel_backlight_quirks.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c b/drivers/gpu/drm/drm_panel_backlight_quirks.c
index dcb91e12bac6b..85c2ef791d116 100644
--- a/drivers/gpu/drm/drm_panel_backlight_quirks.c
+++ b/drivers/gpu/drm/drm_panel_backlight_quirks.c
@@ -53,6 +53,15 @@ static const struct drm_get_panel_backlight_quirk drm_panel_min_backlight_quirks
.ident.name = "NE135A1M-NY1",
.quirk = { .min_brightness = 1, },
},
+ /* Dell XPS 13 9310 FHD+ panel, VBT minimum 15/255 is too bright */
+ {
+ .dmi_match.field = DMI_SYS_VENDOR,
+ .dmi_match.value = "Dell Inc.",
+ .dmi_match_other.field = DMI_PRODUCT_NAME,
+ .dmi_match_other.value = "XPS 13 9310",
+ .ident.panel_id = drm_edid_encode_panel_id('S', 'H', 'P', 0x14f9),
+ .quirk = { .min_brightness = 1, },
+ },
/* Steam Deck models */
{
.dmi_match.field = DMI_SYS_VENDOR,
--
2.54.0