From b3ca6b7957331be4b3d0f7f02ae4e69d7cf4195d Mon Sep 17 00:00:00 2001 From: Stefan Seidel Date: Sat, 25 Feb 2012 23:34:18 +0100 Subject: [PATCH] send current tablet mode switch state on resume so that applications will know if it has changed during suspend --- patches/apply.sh | 1 + patches/thinkpad_acpi.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 patches/thinkpad_acpi.patch diff --git a/patches/apply.sh b/patches/apply.sh index c240021..6d39281 100755 --- a/patches/apply.sh +++ b/patches/apply.sh @@ -18,6 +18,7 @@ MYDIR="$(readlink -f $(dirname $0))" # apply kernel patches cd kernel git status kernel/power/suspend.c | tail -1 | grep -q 'nothing to commit' && git apply "$MYDIR/kernel-suspend.patch" +git status drivers/platform/x86/thinkpad_acpi.c | tail -1 | grep -q 'nothing to commit' && git apply "$MYDIR/thinkpad_acpi.patch" cd .. [ -e buildspec.mk ] || cp "$MYDIR/buildspec.mk" buildspec.mk diff --git a/patches/thinkpad_acpi.patch b/patches/thinkpad_acpi.patch new file mode 100644 index 0000000..28ab1c2 --- /dev/null +++ b/patches/thinkpad_acpi.patch @@ -0,0 +1,12 @@ +diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c +index 26c5b11..fa34792 100644 +--- a/drivers/platform/x86/thinkpad_acpi.c ++++ b/drivers/platform/x86/thinkpad_acpi.c +@@ -3769,6 +3769,7 @@ static void hotkey_resume(void) + "firmware interface\n"); + + tpacpi_send_radiosw_update(); ++ tpacpi_input_send_tabletsw(); + hotkey_tablet_mode_notify_change(); + hotkey_wakeup_reason_notify_change(); + hotkey_wakeup_hotunplug_complete_notify_change(); -- 2.11.0