diff options
Diffstat (limited to 'packages/zaurusd/files')
-rw-r--r-- | packages/zaurusd/files/zaurus-hinge.bl-on | 18 |
1 files changed, 18 insertions, 0 deletions
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 + |