diff mbox series

[1/1,SRU,L,OEM-6.1] UBUNTU: SAUCE: ACPI: video: Add backlight=native DMI quirk for Dell Vostro 15 3535

Message ID 20230302094029.64001-2-acelan.kao@canonical.com
State New
Headers show
Series Screen backlight keeps in minimized and can't change it with amdgpu | expand

Commit Message

AceLan Kao March 2, 2023, 9:40 a.m. UTC
From: "Chia-Lin Kao (AceLan)" <acelan.kao@canonical.com>

BugLink: https://launchpad.net/bugs/2008871

Sometimes the system boots up with a acpi_backlight0 backlight interface
which doesn't work. So add Dell Vostro 15 3535 into the
video_detect_dmi_table to set it to native explicitly.

https://lkml.org/lkml/2023/3/2/187
Change-Id: Iae9699d4a2c0f41a8918f747bb39316eba8b4ea5
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
---
 drivers/acpi/video_detect.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index b48f85c3791e9..057dac429bd41 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -714,6 +714,13 @@  static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "Dell G15 5515"),
 		},
 	},
+	{
+	 .callback = video_detect_force_native,
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 15 3535"),
+		},
+	},
 
 	/*
 	 * Desktops which falsely report a backlight and which our heuristics