* [PATCH] ACPI / video: Add force_none quirk for Dell OptiPlex 9020M
@ 2017-07-13 0:45 Alex Hung
2017-07-21 21:51 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Alex Hung @ 2017-07-13 0:45 UTC (permalink / raw)
To: rjw, lenb, linux-acpi, alex.hung
Dell OptiPlex 9020M is a micro PC desktop that has no built-in
LCD panel and it's acpi_video does not work.
Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
drivers/acpi/video_detect.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index d179e8d..601e5d3 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -103,6 +103,12 @@ static int video_detect_force_native(const struct dmi_system_id *d)
return 0;
}
+static int video_detect_force_none(const struct dmi_system_id *d)
+{
+ acpi_backlight_dmi = acpi_backlight_none;
+ return 0;
+}
+
static const struct dmi_system_id video_detect_dmi_table[] = {
/* On Samsung X360, the BIOS will set a flag (VDRV) if generic
* ACPI backlight device is used. This flag will definitively break
@@ -313,6 +319,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "Precision 7510"),
},
},
+ {
+ .callback = video_detect_force_none,
+ .ident = "Dell OptiPlex 9020M",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 9020M"),
+ },
+ },
{ },
};
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI / video: Add force_none quirk for Dell OptiPlex 9020M
2017-07-13 0:45 [PATCH] ACPI / video: Add force_none quirk for Dell OptiPlex 9020M Alex Hung
@ 2017-07-21 21:51 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2017-07-21 21:51 UTC (permalink / raw)
To: Alex Hung; +Cc: lenb, linux-acpi
On Wednesday, July 12, 2017 05:45:57 PM Alex Hung wrote:
> Dell OptiPlex 9020M is a micro PC desktop that has no built-in
> LCD panel and it's acpi_video does not work.
>
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
> drivers/acpi/video_detect.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
> index d179e8d..601e5d3 100644
> --- a/drivers/acpi/video_detect.c
> +++ b/drivers/acpi/video_detect.c
> @@ -103,6 +103,12 @@ static int video_detect_force_native(const struct dmi_system_id *d)
> return 0;
> }
>
> +static int video_detect_force_none(const struct dmi_system_id *d)
> +{
> + acpi_backlight_dmi = acpi_backlight_none;
> + return 0;
> +}
> +
> static const struct dmi_system_id video_detect_dmi_table[] = {
> /* On Samsung X360, the BIOS will set a flag (VDRV) if generic
> * ACPI backlight device is used. This flag will definitively break
> @@ -313,6 +319,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
> DMI_MATCH(DMI_PRODUCT_NAME, "Precision 7510"),
> },
> },
> + {
> + .callback = video_detect_force_none,
> + .ident = "Dell OptiPlex 9020M",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
> + DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 9020M"),
> + },
> + },
> { },
> };
>
>
Applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-21 21:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-13 0:45 [PATCH] ACPI / video: Add force_none quirk for Dell OptiPlex 9020M Alex Hung
2017-07-21 21:51 ` Rafael J. Wysocki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.