summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@fedoraproject.org>2015-05-28 13:37:50 -0400
committerJosh Boyer <jwboyer@fedoraproject.org>2015-05-28 13:42:30 -0400
commit0c12f1ccc8530511d9e83d6522c90236158d0048 (patch)
tree30c163be639ea8a2d4166f7e89a0276f0cdbbfe9
parentc1b2ad21a7b7ed5567eeeed29a674ccd55b8c3b7 (diff)
downloadkernel-0c12f1ccc8530511d9e83d6522c90236158d0048.tar.gz
kernel-0c12f1ccc8530511d9e83d6522c90236158d0048.tar.xz
kernel-0c12f1ccc8530511d9e83d6522c90236158d0048.zip
Add quirk for Mac Pro backlight (rhbz 1217249)
-rw-r--r--acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch37
-rw-r--r--kernel.spec9
2 files changed, 46 insertions, 0 deletions
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 000000000..3011c1179
--- /dev/null
+++ b/acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch
@@ -0,0 +1,37 @@
+From: Hans de Goede <hdegoede@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@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(+)
+
+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 38a6eae96..0b988f9fb 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -609,6 +609,9 @@ Patch26202: media-Fix-regression-in-some-more-dib0700-based-devi.patch
Patch26203: v4l-uvcvideo-Fix-incorrect-bandwidth-with-Chicony-de.patch
+#rhbz 1217249
+Patch26214: acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch
+
# END OF PATCH DEFINITIONS
%endif
@@ -1336,6 +1339,9 @@ ApplyPatch media-Fix-regression-in-some-more-dib0700-based-devi.patch
ApplyPatch v4l-uvcvideo-Fix-incorrect-bandwidth-with-Chicony-de.patch
+#rhbz 1217249
+ApplyPatch acpi_video-Add-enable_native_backlight-quirk-for-Mac.patch
+
# END OF PATCH APPLICATIONS
%endif
@@ -2196,6 +2202,9 @@ fi
#
#
%changelog
+* Thu May 28 2015 Josh Boyer <jwboyer@fedoraproject.org>
+- Add quirk for Mac Pro backlight (rhbz 1217249)
+
* Mon May 25 2015 Josh Boyer <jwboyer@fedoraproject.org> - 4.1.0-0.rc5.git0.1
- Linux v4.1-rc5
- Disable debugging options.