diff mbox

acpi: video: Add a quirk to force native backlight on Lenovo IdeaPad S405

Message ID 1445427903-3799-1-git-send-email-hdegoede@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show

Commit Message

Hans de Goede Oct. 21, 2015, 11:45 a.m. UTC
The Lenovo IdeaPad S405 is a not "Windows8 ready" machine which still has
a broken ACPI video backlight implementation. Add a quirk to force use
of native backlight on this machine.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1201530
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/acpi/video_detect.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Rafael J. Wysocki Oct. 28, 2015, 3:16 a.m. UTC | #1
On Wednesday, October 21, 2015 01:45:03 PM Hans de Goede wrote:
> The Lenovo IdeaPad S405 is a not "Windows8 ready" machine which still has
> a broken ACPI video backlight implementation. Add a quirk to force use
> of native backlight on this machine.
> 
> BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1201530
> Cc: stable@vger.kernel.org
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
>  drivers/acpi/video_detect.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
> index 2922f1f..0d3a384 100644
> --- a/drivers/acpi/video_detect.c
> +++ b/drivers/acpi/video_detect.c
> @@ -244,6 +244,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
>  
>  	/* Non win8 machines which need native backlight nevertheless */
>  	{
> +	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1201530 */
> +	 .callback = video_detect_force_native,
> +	 .ident = "Lenovo Ideapad S405",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +		DMI_MATCH(DMI_BOARD_NAME, "Lenovo IdeaPad S405"),
> +		},
> +	},
> +	{
>  	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1187004 */
>  	 .callback = video_detect_force_native,
>  	 .ident = "Lenovo Ideapad Z570",

Applied, thanks!

Rafael

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 2922f1f..0d3a384 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -244,6 +244,15 @@  static const struct dmi_system_id video_detect_dmi_table[] = {
 
 	/* Non win8 machines which need native backlight nevertheless */
 	{
+	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1201530 */
+	 .callback = video_detect_force_native,
+	 .ident = "Lenovo Ideapad S405",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_BOARD_NAME, "Lenovo IdeaPad S405"),
+		},
+	},
+	{
 	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1187004 */
 	 .callback = video_detect_force_native,
 	 .ident = "Lenovo Ideapad Z570",