From 154b49c75d9058b9904986cc1d0f2913a7ce6388 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Mon, 19 Nov 2007 16:57:59 +0000 Subject: [PATCH] zaurusd: Try a bit harder to re-enable the backlight on hinge-open and resume when APM fails to do so for whatever reason --- packages/zaurusd/files/zaurus-hinge.bl-on | 18 ++++++++++++++++++ packages/zaurusd/zaurusd_svn.bb | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/packages/zaurusd/files/zaurus-hinge.bl-on b/packages/zaurusd/files/zaurus-hinge.bl-on index 6d416ad8c4..b9b0e68749 100644 --- a/packages/zaurusd/files/zaurus-hinge.bl-on +++ b/packages/zaurusd/files/zaurus-hinge.bl-on @@ -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 + diff --git a/packages/zaurusd/zaurusd_svn.bb b/packages/zaurusd/zaurusd_svn.bb index 2b918bbaa3..aa503f273a 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 = "r10" +PR = "r11" SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=zaurusd;proto=http \ file://zaurus-hinge.in \ -- 2.39.5