summaryrefslogtreecommitdiff
path: root/packages/zaurusd/files/zaurus-hinge.bl-on
blob: b9b0e68749aeb3b3ce08fd986ba0e43425f882f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
#
# Copyright Matthias Hentges <devel@hentges.net> (c) 2006
# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
#
# Filename: zaurus-hinge.bl-on
# Date: 04-Jun-06

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