aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/zaurusd/files/01-check-toggle-landscape
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/zaurusd/files/01-check-toggle-landscape')
-rw-r--r--recipes/zaurusd/files/01-check-toggle-landscape9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes/zaurusd/files/01-check-toggle-landscape b/recipes/zaurusd/files/01-check-toggle-landscape
new file mode 100644
index 0000000000..13ae9a4e68
--- /dev/null
+++ b/recipes/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