public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI: video: Add backlight=native DMI quirk for Dell G15 5515
@ 2022-10-31 21:25 Hans de Goede
  2022-10-31 21:51 ` Limonciello, Mario
  2022-10-31 22:09 ` Daniel Dadap
  0 siblings, 2 replies; 9+ messages in thread
From: Hans de Goede @ 2022-10-31 21:25 UTC (permalink / raw)
  To: Rafael J . Wysocki
  Cc: Hans de Goede, Len Brown, linux-acpi, platform-driver-x86,
	Daniel Dadap

The Dell G15 5515 has the WMI interface (and WMI call returns) expected
by the nvidia-wmi-ec-backlight interface. But the backlight class device
registered by the nvidia-wmi-ec-backlight driver does not actually work.

The amdgpu_bl0 native GPU backlight class device does actually work,
add a backlight=native DMI quirk for this.

Cc: Daniel Dadap <ddadap@nvidia.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/acpi/video_detect.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 841f6213b4de..88acc09773bb 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -645,6 +645,16 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		},
 	},
 
+	/* Models which have nvidia-ec-wmi support, but should not use it. */
+	{
+	 .callback = video_detect_force_native,
+	 /* Dell G15 5515 */
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "Dell G15 5515"),
+		},
+	},
+
 	/*
 	 * Desktops which falsely report a backlight and which our heuristics
 	 * for this do not catch.
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-11-01 15:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-31 21:25 [PATCH] ACPI: video: Add backlight=native DMI quirk for Dell G15 5515 Hans de Goede
2022-10-31 21:51 ` Limonciello, Mario
2022-10-31 22:20   ` Daniel Dadap
2022-11-01  9:55     ` Hans de Goede
2022-10-31 22:09 ` Daniel Dadap
2022-11-01  9:52   ` Hans de Goede
2022-11-01 14:47     ` Daniel Dadap
2022-11-01 14:09   ` Hans de Goede
2022-11-01 14:59     ` Daniel Dadap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox