summaryrefslogtreecommitdiffstats
path: root/sys-kernel/boest-v4.4.198/0013-4.4-2700_ThinkPad-30-brightness-control-fix.patch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/boest-v4.4.198/0013-4.4-2700_ThinkPad-30-brightness-control-fix.patch.patch')
-rw-r--r--sys-kernel/boest-v4.4.198/0013-4.4-2700_ThinkPad-30-brightness-control-fix.patch.patch75
1 files changed, 75 insertions, 0 deletions
diff --git a/sys-kernel/boest-v4.4.198/0013-4.4-2700_ThinkPad-30-brightness-control-fix.patch.patch b/sys-kernel/boest-v4.4.198/0013-4.4-2700_ThinkPad-30-brightness-control-fix.patch.patch
new file mode 100644
index 00000000..5fa4c9b5
--- /dev/null
+++ b/sys-kernel/boest-v4.4.198/0013-4.4-2700_ThinkPad-30-brightness-control-fix.patch.patch
@@ -0,0 +1,75 @@
+From 4bd254b6971d226759efc9179829fbda3d3be9c5 Mon Sep 17 00:00:00 2001
+From: Mike Pagano <mpagano@gentoo.org>
+Date: Sun, 10 Jan 2016 12:18:55 -0500
+Subject: [PATCH 13/20] 4.4:2700_ThinkPad-30-brightness-control-fix.patch
+
+---
+ drivers/acpi/blacklist.c | 55 ++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 55 insertions(+)
+
+diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
+index 2f24b578bcaf..1c7504936e4c 100644
+--- a/drivers/acpi/blacklist.c
++++ b/drivers/acpi/blacklist.c
+@@ -312,6 +312,61 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
+ },
+ },
+
++ /*
++ * The following Lenovo models have a broken workaround in the
++ * acpi_video backlight implementation to meet the Windows 8
++ * requirement of 101 backlight levels. Reverting to pre-Win8
++ * behavior fixes the problem.
++ */
++ {
++ .callback = dmi_disable_osi_win8,
++ .ident = "Lenovo ThinkPad L430",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L430"),
++ },
++ },
++ {
++ .callback = dmi_disable_osi_win8,
++ .ident = "Lenovo ThinkPad T430s",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T430s"),
++ },
++ },
++ {
++ .callback = dmi_disable_osi_win8,
++ .ident = "Lenovo ThinkPad T530",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T530"),
++ },
++ },
++ {
++ .callback = dmi_disable_osi_win8,
++ .ident = "Lenovo ThinkPad W530",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad W530"),
++ },
++ },
++ {
++ .callback = dmi_disable_osi_win8,
++ .ident = "Lenovo ThinkPad X1 Carbon",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X1 Carbon"),
++ },
++ },
++ {
++ .callback = dmi_disable_osi_win8,
++ .ident = "Lenovo ThinkPad X230",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"),
++ },
++ },
++
+ /*
+ * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
+ * Linux ignores it, except for the machines enumerated below.