jwboyer pushed to kernel (f20). "Add quirk for Mac Pro backlight (rhbz 1217249)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu May 28 17:42:51 UTC 2015


From 212749a423e0c268ec69438a41733f1e0f356a29 Mon Sep 17 00:00:00 2001
From: Josh Boyer <jwboyer at fedoraproject.org>
Date: Thu, 28 May 2015 13:37:50 -0400
Subject: Add quirk for Mac Pro backlight (rhbz 1217249)


diff --git a/acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch b/acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch
new file mode 100644
index 0000000..3011c11
--- /dev/null
+++ b/acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch
@@ -0,0 +1,37 @@
+From: Hans de Goede <hdegoede at redhat.com>
+Date: Thu, 28 May 2015 18:25:46 +0200
+Subject: [PATCH] acpi_video: Add enable_native_backlight quirk for
+ MacbookPro12,1
+
+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 at alum.mit.edu>
+Reported-by: Christopher Beland <beland at alum.mit.edu>
+Signed-off-by: Hans de Goede <hdegoede at redhat.com>
+---
+ drivers/acpi/video.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
+index d9bf8ba7d848..b57d69370bac 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 --git a/kernel.spec b/kernel.spec
index 15cc761..d762503 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -793,6 +793,9 @@ Patch26209: 0001-ktime-Fix-ktime_divns-to-do-signed-division.patch
 Patch26211: mnt-Fail-collect_mounts-when-applied-to-unmounted-mo.patch
 Patch26212: fs_pin-Allow-for-the-possibility-that-m_list-or-s_li.patch
 
+#rhbz 1217249
+Patch26214: acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch
+
 # END OF PATCH DEFINITIONS
 
 %endif
@@ -1555,6 +1558,9 @@ ApplyPatch 0001-ktime-Fix-ktime_divns-to-do-signed-division.patch
 ApplyPatch mnt-Fail-collect_mounts-when-applied-to-unmounted-mo.patch
 ApplyPatch fs_pin-Allow-for-the-possibility-that-m_list-or-s_li.patch
 
+#rhbz 1217249
+ApplyPatch acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch
+
 # END OF PATCH APPLICATIONS
 
 %endif
@@ -2366,6 +2372,9 @@ fi
 #                 ||----w |
 #                 ||     ||
 %changelog
+* Thu May 28 2015 Josh Boyer <jwboyer at fedoraproject.org>
+- Add quirk for Mac Pro backlight (rhbz 1217249)
+
 * Wed May 27 2015 Josh Boyer <jwboyer at fedoraproject.org> - 4.0.4-101
 - Apply queued fixes for crasher reported by Alex Larsson
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/kernel.git/commit/?h=f20&id=212749a423e0c268ec69438a41733f1e0f356a29


More information about the scm-commits mailing list