summaryrefslogtreecommitdiff
path: root/packages/zaurusd/files/01-check-toggle-landscape
diff options
context:
space:
mode:
Diffstat (limited to 'packages/zaurusd/files/01-check-toggle-landscape')
-rw-r--r--packages/zaurusd/files/01-check-toggle-landscape9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/zaurusd/files/01-check-toggle-landscape b/packages/zaurusd/files/01-check-toggle-landscape
new file mode 100644
index 0000000000..13ae9a4e68
--- /dev/null
+++ b/packages/zaurusd/files/01-check-toggle-landscape
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Try to determine and ignore false rotation signals caused by
+# headphones removal or remote removal remembering the old state.
+# OE#3390
+if test "`cat /var/run/last-screen-rotation`" = landscape ; then
+ exit
+fi
+echo landscape > /var/run/last-screen-rotation