Author: tomwij Date: 2014-05-15 18:55:59 +0000 (Thu, 15 May 2014) New Revision: 2789
Added: genpatches-2.6/trunk/3.4/2700_thinkpad-acpi_fix-issuing-duplicated-keyevents-for-brightness.patch Modified: genpatches-2.6/trunk/3.4/0000_README Log: Add Thinkpad ACPI backport brightness control fix; fixes bug #508146, reported by Andreas Sturmlechner. Modified: genpatches-2.6/trunk/3.4/0000_README =================================================================== --- genpatches-2.6/trunk/3.4/0000_README 2014-05-15 13:30:10 UTC (rev 2788) +++ genpatches-2.6/trunk/3.4/0000_README 2014-05-15 18:55:59 UTC (rev 2789) @@ -427,6 +427,10 @@ From: Seth Forshee <[email protected]> Desc: ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads +Patch: 2700_thinkpad-acpi_fix-issuing-duplicated-keyevents-for-brightness.patch +From: http://www.spinics.net/lists/ibm-acpi-devel/msg02805.html +Desc: thinkpad-acpi: fix issuing duplicated key events for brightness up/down + Patch: 4200_fbcondecor-0.9.6.patch From: http://dev.gentoo.org/~spock Desc: Bootsplash successor by Michal Januszewski ported by Alexxy Added: genpatches-2.6/trunk/3.4/2700_thinkpad-acpi_fix-issuing-duplicated-keyevents-for-brightness.patch =================================================================== --- genpatches-2.6/trunk/3.4/2700_thinkpad-acpi_fix-issuing-duplicated-keyevents-for-brightness.patch (rev 0) +++ genpatches-2.6/trunk/3.4/2700_thinkpad-acpi_fix-issuing-duplicated-keyevents-for-brightness.patch 2014-05-15 18:55:59 UTC (rev 2789) @@ -0,0 +1,26 @@ +The tp_features.bright_acpimode will not be set correctly for brightness +control because ACPI_VIDEO_HID will not be located in ACPI. As a result, +a duplicated key event will always be sent. acpi_video_backlight_support() +is sufficient to detect standard ACPI brightness control. + +Signed-off-by: Alex Hung <alex.hung@xxxxxxxxxxxxx> +--- + drivers/platform/x86/thinkpad_acpi.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c +index 7b82868..7d032d5 100644 +--- a/drivers/platform/x86/thinkpad_acpi.c ++++ b/drivers/platform/x86/thinkpad_acpi.c +@@ -3405,7 +3405,7 @@ static int __init hotkey_init(struct ibm_init_struct *iibm) + /* Do not issue duplicate brightness change events to + * userspace. tpacpi_detect_brightness_capabilities() must have + * been called before this point */ +- if (tp_features.bright_acpimode && acpi_video_backlight_support()) { ++ if (acpi_video_backlight_support()) { + pr_info("This ThinkPad has standard ACPI backlight " + "brightness control, supported by the ACPI " + "video driver\n"); +-- +1.7.0.4 +
