OSDN Git Service

send current tablet mode switch state on resume so that applications will know if...
authorStefan Seidel <android@stefanseidel.info>
Sat, 25 Feb 2012 22:34:18 +0000 (23:34 +0100)
committerStefan Seidel <android@stefanseidel.info>
Sat, 25 Feb 2012 22:34:18 +0000 (23:34 +0100)
patches/apply.sh
patches/thinkpad_acpi.patch [new file with mode: 0644]

index c240021..6d39281 100755 (executable)
@@ -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 (file)
index 0000000..28ab1c2
--- /dev/null
@@ -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();