summaryrefslogtreecommitdiff
path: root/packages/zaurusd/files/zaurus-hinge.matchbox-landscape
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2007-11-29 21:50:42 +0000
committerMatthias Hentges <oe@hentges.net>2007-11-29 21:50:42 +0000
commit507393ba034afcd7abca0a0be584b17a4f86daa5 (patch)
tree67115c00717552c46e6477bbd8d0193aaf3e1bcb /packages/zaurusd/files/zaurus-hinge.matchbox-landscape
parent74947ce74fbbfd607822b5517a02e1f24c22043a (diff)
zaurusd: - Do only try to rotate when necessary (no more Landscape -> Landscape / Portrait -> Portrait rotataions)
- Power off display on lid-close and remember old brightness setting - Run power-on function in the background to allow faster response on lid-open
Diffstat (limited to 'packages/zaurusd/files/zaurus-hinge.matchbox-landscape')
-rw-r--r--packages/zaurusd/files/zaurus-hinge.matchbox-landscape6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/zaurusd/files/zaurus-hinge.matchbox-landscape b/packages/zaurusd/files/zaurus-hinge.matchbox-landscape
index e7b92b5140..a048769f7d 100644
--- a/packages/zaurusd/files/zaurus-hinge.matchbox-landscape
+++ b/packages/zaurusd/files/zaurus-hinge.matchbox-landscape
@@ -16,6 +16,10 @@
# urg mbinputmgr should kill below
killproc ${ZD_BINDIR}/matchbox-keyboard
killproc ${ZD_BINDIR}/matchbox-stroke
+
if [ -x ${ZD_BINDIR}/xrandr ]; then
- xrandr -o normal
+ if ! ( xrandr | awk '{print $4}' | grep -q normal )
+ then
+ ${ZD_BINDIR}/xrandr -o normal
+ fi
fi