Skip to contentSkip to conversation

drm: panel-backlight-quirks: Add ASUS ROG Flow X13 3840x2400 panel

PATCH In review Hugo Sales 2 participants 3 messages Oct 31 – Nov 3

Subsystems (2)
lore
Share & tools
lore

Hugo Sales

author
#0 lore raw

PATCH 1/1 drm: panel-backlight-quirks: Add ASUS ROG Flow X13 3840x2400 panel

On an ASUS ROG Flow X13 GV301QH (BIOS 418) ATIF QUERY_BACKLIGHT_TRANSFER_CHARACTERISTICS answers with a minimum input signal of 12 and 49 curve points for the Sharp LQ134R1JW51 panel, and amdgpu logs "Using custom brightness curve". With that minimum, brightness 0 gives 4.7% duty

With the quirk, brightness 0 sends PWM 0 (read back from amdgpu_current_backlight_pwm in debugfs). The panel stays lit, but much dimmer than the old 4.7% floor. Its LED driver has a minimum of its own, so 0 does not turn the backlight off

linux-hardware.org also lists this panel in a GV301QE. Match the ASUS vendor and the panel, as the Framework 13 entries do, and let the brightness reach the bottom of the PWM range

---
I could only test this on a GV301QH. The entry matches any ASUS laptop with this panel, and linux-hardware.org only lists it in ROG Flow X13s, one of them a GV301QE. If you'd rather limit it to the GV301QH, I can add a DMI_BOARD_NAME match in v2

 drivers/gpu/drm/drm_panel_backlight_quirks.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/gpu/drm/drm_panel_backlight_quirks.c +8 -0
index 2d0238382ebd5..b60333e748741 100644
@@ -69,6 +69,14 @@ static const struct drm_get_panel_backlight_quirk drm_panel_min_backlight_quirks
 		.dmi_match_other.value = "Galileo",
 		.quirk = { .min_brightness = 1, },
 	},
+	/* ASUS ROG Flow X13 3840x2400 panel */
+	{
+		.dmi_match.field = DMI_SYS_VENDOR,
+		.dmi_match.value = "ASUSTeK COMPUTER INC.",
+		.ident.panel_id = drm_edid_encode_panel_id('S', 'H', 'P', 0x151b),
+		.ident.name = "LQ134R1JW51",
+		.quirk = { .min_brightness = 1, },
+	},
 	/* Have OLED Panels with brightness issue when last byte is 0/1 */
 	{
 		.dmi_match.field = DMI_SYS_VENDOR,
Signature · 1 line
2.56.0
#1 lore raw
Quoted 34 lines · Hugo Sales

On an ASUS ROG Flow X13 GV301QH (BIOS 418) ATIF QUERY_BACKLIGHT_TRANSFER_CHARACTERISTICS answers with a minimum input signal of 12 and 49 curve points for the Sharp LQ134R1JW51 panel, and amdgpu logs "Using custom brightness curve". With that minimum, brightness 0 gives 4.7% duty

With the quirk, brightness 0 sends PWM 0 (read back from amdgpu_current_backlight_pwm in debugfs). The panel stays lit, but much dimmer than the old 4.7% floor. Its LED driver has a minimum of its own, so 0 does not turn the backlight off

linux-hardware.org also lists this panel in a GV301QE. Match the ASUS vendor and the panel, as the Framework 13 entries do, and let the brightness reach the bottom of the PWM range

---
I could only test this on a GV301QH. The entry matches any ASUS laptop with this panel, and linux-hardware.org only lists it in ROG Flow X13s, one of them a GV301QE. If you'd rather limit it to the GV301QH, I can add a DMI_BOARD_NAME match in v2

  drivers/gpu/drm/drm_panel_backlight_quirks.c | 8 ++++++++
  1 file changed, 8 insertions(+)
drivers/gpu/drm/drm_panel_backlight_quirks.c +1 -0
index 2d0238382ebd5..b60333e748741 100644
@@ -69,6 +69,14 @@ static const struct drm_get_panel_backlight_quirk drm_panel_min_backlight_quirks
  		.dmi_match_other.value = "Galileo",
  		.quirk = { .min_brightness = 1, },
  	},
+	/* ASUS ROG Flow X13 3840x2400 panel */

drivers/gpu/drm/drm_panel_backlight_quirks.c static const struct drm_get_panel_backlight_quirk drm_panel_min_backlight_quirks · line 82

Quoted 10 lines
drivers/gpu/drm/drm_panel_backlight_quirks.c +7 -0
+	{
+		.dmi_match.field = DMI_SYS_VENDOR,
+		.dmi_match.value = "ASUSTeK COMPUTER INC.",
+		.ident.panel_id = drm_edid_encode_panel_id('S', 'H', 'P', 0x151b),
+		.ident.name = "LQ134R1JW51",
+		.quirk = { .min_brightness = 1, },
+	},
  	/* Have OLED Panels with brightness issue when last byte is 0/1 */
  	{
  		.dmi_match.field = DMI_SYS_VENDOR,

Was this from looking at a datasheet or from empirical measurements? The reason it was safe to do on the Framework panel was because there was a confirmation the datasheet allowed a lower value.

We don't want to be damaging hardware running it outside of spec.

author
#2 lore raw
Quoted 5 lines · Mario Limonciello

Was this from looking at a datasheet or from empirical measurements? The reason it was safe to do on the Framework panel was because there was a confirmation the datasheet allowed a lower value.

We don't want to be damaging hardware running it outside of spec.

Oh, damn, I didn't consider it could be damaging the panel and that it could be out of spec. I did try looking for a datasheet for the LQ134R1JW51 before sending this, but couldn't find one, and since it "worked" (the panel stays lit at requested brightness 0, which reads back as PWM 0 in amdgpu_current_backlight_pwm), I thought it was ok...

I've asked two people at ASUS whether the panel spec allows a lower duty cycle, and I'll report back here. If you know someone who could be of help, I'd appreciate the suggestion

One thing I noticed: 12 is also AMDGPU_DM_DEFAULT_MIN_BACKLIGHT, and it's what this machine's ATIF returned, as did the Framework's, for completely different panels. So the 12 ASUS returns for this Sharp panel looks like the AMD reference value passed through, not a number ASUS took from Sharp's datasheet. Do you or anyone else here know if that could be the case?

Another data point is the VBT dumped from the BIOS of the ROG Flow Z13 2022 (GZ301ZE BIOS 321), which ships the LQ134R1JW52 (vs my LQ134R1JW51). It sets brightness_min_level to 0 and the older min_brightness field to 6, so i915 already lets that machine go down to PWM 0. This doesn't really settle anything for the JW51, though

Assume the patch can be discarded unless I get a reply from ASUS, in which case I'll reply here again