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 6d416ad..b9b0e68 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 2b918bb..aa503f2 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 \