2023-03-02 09:33:14

by AceLan Kao

[permalink] [raw]
Subject: [PATCH] ACPI: video: Add backlight=native DMI quirk for Dell Vostro 15 3535

From: "Chia-Lin Kao (AceLan)" <[email protected]>

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

Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]>
---
drivers/acpi/video_detect.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 710ac640267d..14d6d81e536f 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -716,6 +716,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
--
2.34.1



2023-03-07 13:16:07

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [PATCH] ACPI: video: Add backlight=native DMI quirk for Dell Vostro 15 3535

On Thu, Mar 2, 2023 at 10:33 AM AceLan Kao <[email protected]> wrote:
>
> From: "Chia-Lin Kao (AceLan)" <[email protected]>
>
> Sometimes the system boots up with a acpi_video0 backlight interface
> which doesn't work. So add Dell Vostro 15 3535 into the
> video_detect_dmi_table to set it to native explicitly.
>
> Signed-off-by: Chia-Lin Kao (AceLan) <[email protected]>
> ---
> drivers/acpi/video_detect.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
> index 710ac640267d..14d6d81e536f 100644
> --- a/drivers/acpi/video_detect.c
> +++ b/drivers/acpi/video_detect.c
> @@ -716,6 +716,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
> --

Applied as 6.3-rc material, thanks!