Skip to contentSkip to conversation

ACPI: video: use native backlight for GA401/GA502/GA503

PATCH Applied Luke D. Jones 2 participants 2 messages Apr 19, 2021 – Apr 21, 2021 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ACPI: video: use native backlight for GA401/GA502/GA503

From: Luke D Jones <[email protected]>

Force backlight control in these models to use the native interface at /sys/class/backlight/amdgpu_bl0.

---
 drivers/acpi/video_detect.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
drivers/acpi/video_detect.c +24 -0
index 811d298637cb..bae08bd98817 100644
@@ -384,6 +384,30 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_BOARD_NAME, "BA51_MV"),
 		},
 	},
+	{
+	.callback = video_detect_force_native,
+	.ident = "ASUSTeK COMPUTER INC. GA401",
+	.matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "GA401"),
+		},
+	},
+	{
+	.callback = video_detect_force_native,
+	.ident = "ASUSTeK COMPUTER INC. GA502",
+	.matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "GA502"),
+		},
+	},
+	{
+	.callback = video_detect_force_native,
+	.ident = "ASUSTeK COMPUTER INC. GA503",
+	.matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "GA503"),
+		},
+	},
 
 	/*
 	 * Desktops which falsely report a backlight and which our heuristics
Signature · 1 line
2.31.1
maintainer Applied
#1 lore raw
Quoted 37 lines · Luke D. Jones

From: Luke D Jones <[email protected]>

Force backlight control in these models to use the native interface at /sys/class/backlight/amdgpu_bl0.

---
 drivers/acpi/video_detect.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
drivers/acpi/video_detect.c +18 -0
index 811d298637cb..bae08bd98817 100644
@@ -384,6 +384,30 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
                DMI_MATCH(DMI_BOARD_NAME, "BA51_MV"),
                },
        },
+       {
+       .callback = video_detect_force_native,
+       .ident = "ASUSTeK COMPUTER INC. GA401",
+       .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+               DMI_MATCH(DMI_PRODUCT_NAME, "GA401"),
+               },
+       },
+       {
+       .callback = video_detect_force_native,
+       .ident = "ASUSTeK COMPUTER INC. GA502",
+       .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+               DMI_MATCH(DMI_PRODUCT_NAME, "GA502"),
+               },
+       },
+       {
+       .callback = video_detect_force_native,

drivers/acpi/video_detect.c static const struct dmi_system_id video_detect_dmi_table[] = {

Quoted 10 lines
drivers/acpi/video_detect.c +6 -1
+       .ident = "ASUSTeK COMPUTER INC. GA503",
+       .matches = {
+               DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+               DMI_MATCH(DMI_PRODUCT_NAME, "GA503"),
+               },
+       },
 
        /*
         * Desktops which falsely report a backlight and which our heuristics
--

Applied as 5.13 material, thanks!