* [PATCH 3/3] drm: panel-backlight-quirks: Add Dell XPS 9315 FHD+ panel
@ 2026-11-27 16:43 Paul Menzel
2026-11-27 17:32 ` Ville Syrjälä
0 siblings, 1 reply; 2+ messages in thread
From: Paul Menzel @ 2026-11-27 16:43 UTC (permalink / raw)
To: Jani Nikula, Rodrigo Vivi, Joonas Lahtinen, Tvrtko Ursulin,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter
Cc: Paul Menzel, Matthew Brost, Thomas Hellström,
Antheas Kapenekakis, Thomas Weißschuh, intel-gfx, intel-xe,
dri-devel, linux-kernel
The Dell XPS 9315 (BIOS 1.26.0, VBT BDB 253, panel_type 14) has the
same problem as the XPS 13 9310: the VBT sets the backlight minimum
level to 15/255, while the other 15 panel entries say 6/255. With GNOME
at its lowest slider position (1 % of max_brightness) the PWM duty
cycle is 6.8 %:
$ cat /sys/class/backlight/intel_backlight/{max_brightness,brightness}
96000
960
$ sudo intel_reg read 0xC8254 0xC8258 # BXT_BLC_PWM_FREQ/DUTY(0)
(0x000c8254): 0x00017700
(0x000c8258): 0x00001997
The panel is a Sharp LQ134N1 with a different product code
(EDID SHP 0x1548) than the one in the XPS 13 9310. Writing the duty
cycle register directly, 6.8 % is still well readable at the lowest position,
and even 1 % is a little brighter than wanted; the panel is usable
down to 0.25 %.
Add a quirk setting the minimum to 0/255 for this system and panel,
so that GNOME’s lowest position becomes 1 %. Note that the DMI product
name is "XPS 9315", without "13".
Tested on the Dell XPS 9315 (BIOS 1.26.0) with v7.4-rc4 + this series:
"[CONNECTOR:676:eDP-1] Applying panel backlight quirk, min brightness 0/255
(VBT 15/255)", GNOME lowest position gives PWM duty 960/96000 (1 %), was
6551 (6.8 %). The eye test values (0.25 % wanted) were set with intel_reg.
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
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 85c2ef791d116..1d959a31562e6 100644
--- a/drivers/gpu/drm/drm_panel_backlight_quirks.c
+++ b/drivers/gpu/drm/drm_panel_backlight_quirks.c
@@ -62,6 +62,15 @@ static const struct drm_get_panel_backlight_quirk drm_panel_min_backlight_quirks
.ident.panel_id = drm_edid_encode_panel_id('S', 'H', 'P', 0x14f9),
.quirk = { .min_brightness = 1, },
},
+ /* Dell XPS 9315 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 9315",
+ .ident.panel_id = drm_edid_encode_panel_id('S', 'H', 'P', 0x1548),
+ .quirk = { .min_brightness = 1, },
+ },
/* Steam Deck models */
{
.dmi_match.field = DMI_SYS_VENDOR,
--
2.54.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 3/3] drm: panel-backlight-quirks: Add Dell XPS 9315 FHD+ panel
2026-11-27 16:43 [PATCH 3/3] drm: panel-backlight-quirks: Add Dell XPS 9315 FHD+ panel Paul Menzel
@ 2026-11-27 17:32 ` Ville Syrjälä
0 siblings, 0 replies; 2+ messages in thread
From: Ville Syrjälä @ 2026-11-27 17:32 UTC (permalink / raw)
To: Paul Menzel
Cc: Jani Nikula, Rodrigo Vivi, Joonas Lahtinen, Tvrtko Ursulin,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter, Matthew Brost,
Thomas Hellström, Antheas Kapenekakis,
Thomas Weißschuh, intel-gfx, intel-xe, dri-devel,
linux-kernel
On Fri, Nov 27, 2026 at 05:43:29PM +0100, Paul Menzel wrote:
> The Dell XPS 9315 (BIOS 1.26.0, VBT BDB 253, panel_type 14) has the
> same problem as the XPS 13 9310: the VBT sets the backlight minimum
> level to 15/255, while the other 15 panel entries say 6/255.
I have no idea from that description to see what age machine
that is so hard to say what applies here, but please try
https://lore.kernel.org/intel-gfx/20261124224621.6506-1-ville.syrjala@linux.intel.com/
The other potentially relevant thing I have is
https://github.com/vsyrjala/linux/tree/bclm_bcm_backlight_remap_2
though I haven't checked to see how the minimum level thing
in the VBT is supposed to be used with that, or in general
these days. As in "what does Windows do with it?"
Please file a bug for this, and attach the boot dmesg with
drm.debug=0xep passed to the kernel cmdline, and also attach
copies of /sys/kernel/debug/dri/0/i915_vbt and
/sys/class/drm/card0-eDP-1/edid
> With GNOME
> at its lowest slider position (1 % of max_brightness) the PWM duty
> cycle is 6.8 %:
>
> $ cat /sys/class/backlight/intel_backlight/{max_brightness,brightness}
> 96000
> 960
> $ sudo intel_reg read 0xC8254 0xC8258 # BXT_BLC_PWM_FREQ/DUTY(0)
> (0x000c8254): 0x00017700
> (0x000c8258): 0x00001997
>
> The panel is a Sharp LQ134N1 with a different product code
> (EDID SHP 0x1548) than the one in the XPS 13 9310. Writing the duty
> cycle register directly, 6.8 % is still well readable at the lowest position,
> and even 1 % is a little brighter than wanted; the panel is usable
> down to 0.25 %.
>
> Add a quirk setting the minimum to 0/255 for this system and panel,
> so that GNOME’s lowest position becomes 1 %. Note that the DMI product
> name is "XPS 9315", without "13".
>
> Tested on the Dell XPS 9315 (BIOS 1.26.0) with v7.4-rc4 + this series:
> "[CONNECTOR:676:eDP-1] Applying panel backlight quirk, min brightness 0/255
> (VBT 15/255)", GNOME lowest position gives PWM duty 960/96000 (1 %), was
> 6551 (6.8 %). The eye test values (0.25 % wanted) were set with intel_reg.
>
> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
> ---
>
> 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 85c2ef791d116..1d959a31562e6 100644
> --- a/drivers/gpu/drm/drm_panel_backlight_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_backlight_quirks.c
> @@ -62,6 +62,15 @@ static const struct drm_get_panel_backlight_quirk drm_panel_min_backlight_quirks
> .ident.panel_id = drm_edid_encode_panel_id('S', 'H', 'P', 0x14f9),
> .quirk = { .min_brightness = 1, },
> },
> + /* Dell XPS 9315 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 9315",
> + .ident.panel_id = drm_edid_encode_panel_id('S', 'H', 'P', 0x1548),
> + .quirk = { .min_brightness = 1, },
> + },
> /* Steam Deck models */
> {
> .dmi_match.field = DMI_SYS_VENDOR,
> --
> 2.54.0
--
Ville Syrjälä
Intel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-27 17:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 16:43 [PATCH 3/3] drm: panel-backlight-quirks: Add Dell XPS 9315 FHD+ panel Paul Menzel
2026-11-27 17:32 ` Ville Syrjälä
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®