diff mbox series

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

Message ID 20210419073917.157722-1-luke@ljones.dev (mailing list archive)
State Mainlined, archived
Headers show
Series [1/3] ACPI: video: use native backlight for GA401/GA502/GA503 | expand

Commit Message

Luke Jones April 19, 2021, 7:39 a.m. UTC
From: Luke D Jones <luke@ljones.dev>

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

Signed-off-by: Luke D. Jones <luke@ljones.dev>
---
 drivers/acpi/video_detect.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Comments

Rafael J. Wysocki April 21, 2021, 4:55 p.m. UTC | #1
On Mon, Apr 19, 2021 at 9:39 AM Luke D. Jones <luke@ljones.dev> wrote:
>
> From: Luke D Jones <luke@ljones.dev>
>
> Force backlight control in these models to use the native interface
> at /sys/class/backlight/amdgpu_bl0.
>
> Signed-off-by: Luke D. Jones <luke@ljones.dev>
> ---
>  drivers/acpi/video_detect.c | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
> index 811d298637cb..bae08bd98817 100644
> --- a/drivers/acpi/video_detect.c
> +++ b/drivers/acpi/video_detect.c
> @@ -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
> --

Applied as 5.13 material, thanks!
diff mbox series

Patch

diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 811d298637cb..bae08bd98817 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -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