diff mbox

acpi_video: Add enable_native_backlight quirk for MacbookPro12,1

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

Commit Message

Hans de Goede May 28, 2015, 4:29 p.m. UTC
It seems that the latest generation of MacbookPro needs to use the
native backlight driver, just like most modern laptops do, but it does
not automatically get enabled as the Apple BIOS does not advertise
Windows 8 compatibility. So add a quirk for this.

Cc: Christopher Beland <beland@alum.mit.edu>
Reported-by: Christopher Beland <beland@alum.mit.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/acpi/video.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Rafael J. Wysocki June 15, 2015, 11:20 p.m. UTC | #1
On Thursday, May 28, 2015 06:29:48 PM Hans de Goede wrote:
> It seems that the latest generation of MacbookPro needs to use the
> native backlight driver, just like most modern laptops do, but it does
> not automatically get enabled as the Apple BIOS does not advertise
> Windows 8 compatibility. So add a quirk for this.
> 
> Cc: Christopher Beland <beland@alum.mit.edu>
> Reported-by: Christopher Beland <beland@alum.mit.edu>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Queued up for 4.2, thanks!

> ---
>  drivers/acpi/video.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index cc79d3f..518f0e1 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -583,6 +583,15 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
>  		DMI_MATCH(DMI_PRODUCT_NAME, "102434U"),
>  		},
>  	},
> +	{
> +	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
> +	 .callback = video_enable_native_backlight,
> +	 .ident = "Apple MacBook Pro 12,1",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
> +		DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro12,1"),
> +		},
> +	},
>  	{}
>  };
>  
>
diff mbox

Patch

diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index cc79d3f..518f0e1 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -583,6 +583,15 @@  static struct dmi_system_id video_dmi_table[] __initdata = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "102434U"),
 		},
 	},
+	{
+	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
+	 .callback = video_enable_native_backlight,
+	 .ident = "Apple MacBook Pro 12,1",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+		DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro12,1"),
+		},
+	},
 	{}
 };