diff options
author | Stanislav Brabec <utx@penguin.cz> | 2008-11-10 23:25:32 +0000 |
---|---|---|
committer | utx@penguin.cz <utx@penguin.cz> | 2008-11-11 13:04:23 +0000 |
commit | f9df63752b3510e4b559d4be69e66035f6068182 (patch) | |
tree | 0a2122ef003758914469b95a992329f6ce5f46b0 | |
parent | 76e3e6e123c6b2a64905a32e5181e647107e562d (diff) |
zaurusd: Turn backlight off when closing the lid and ~/.norot exists.
-rw-r--r-- | packages/zaurusd/files/zaurus-hinge.in | 9 | ||||
-rw-r--r-- | packages/zaurusd/zaurusd_svn.bb | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/packages/zaurusd/files/zaurus-hinge.in b/packages/zaurusd/files/zaurus-hinge.in index 9670e8803e..0fcad38f98 100644 --- a/packages/zaurusd/files/zaurus-hinge.in +++ b/packages/zaurusd/files/zaurus-hinge.in @@ -21,13 +21,18 @@ fi panel_user="`ps aux|grep matchbox-panel|grep -v grep | awk '{print $1}'`" +STATE=$1 + # touch ~/.norot can disable rotation. if test -f /home/$panel_user/.norot ; then + if [ $STATE = "3" ]; then + . /etc/zaurusd/hinge-close.d/00-backlight-off + else + . /etc/zaurusd/hinge-landscape.d/00-backlight-on + fi exit fi -STATE=$1 - if [ $STATE = "3" ]; then for script in `ls -1 /etc/zaurusd/hinge-close.d` diff --git a/packages/zaurusd/zaurusd_svn.bb b/packages/zaurusd/zaurusd_svn.bb index be9379eced..2ad405e419 100644 --- a/packages/zaurusd/zaurusd_svn.bb +++ b/packages/zaurusd/zaurusd_svn.bb @@ -4,7 +4,7 @@ LICENSE = "GPL" DEPENDS = "tslib" RDEPENDS = "procps" PV = "0.0+svn${SRCDATE}" -PR = "r17" +PR = "r18" SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=zaurusd;proto=http \ file://zaurus-hinge.in \ |