]> git.openpandora.org Git - openembedded.git/commitdiff
zaurusd: Try a bit harder to re-enable the backlight on hinge-open and resume when...
authorMatthias Hentges <oe@hentges.net>
Mon, 19 Nov 2007 16:57:59 +0000 (16:57 +0000)
committerMatthias Hentges <oe@hentges.net>
Mon, 19 Nov 2007 16:57:59 +0000 (16:57 +0000)
packages/zaurusd/files/zaurus-hinge.bl-on
packages/zaurusd/zaurusd_svn.bb

index 6d416ad8c446a5296485c95174748a86f91c1ce9..b9b0e68749aeb3b3ce08fd986ba0e43425f882f6 100644 (file)
@@ -8,3 +8,21 @@
 
 test -z "${ZD_BINDIR}" && ZD_BINDIR="/usr/bin"
 ${ZD_BINDIR}/bl on
+
+# If the backlight does not come back on after a suspend, the driver is 
+# still "on" (hence "bl on" does nothing) with a brightness of "0"
+
+if test "`bl | awk '{print $2}'`" = "0"
+then
+       x=0
+       while test "$x" != 4
+       do
+               bl 10
+               usleep 10
+               bl 50
+               usleep 10
+               
+               let x=$x+1
+       done
+fi
+
index 2b918bbaa3574bdb92a49dfae21e0450b5eafd8b..aa503f273a5d1e1421c154d5fb20dcae2184c0c0 100644 (file)
@@ -4,7 +4,7 @@ LICENSE = "GPL"
 DEPENDS = "tslib"
 RDEPENDS = "procps"
 PV = "0.0+svn${SRCDATE}"
-PR = "r10"
+PR = "r11"
 
 SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=zaurusd;proto=http \
            file://zaurus-hinge.in \