4 # Provides: pandora-lcd-state
5 # Required-Start: #adjust
6 # Required-Stop: #adjust
11 DESC="OpenPandora Save and Restore LCD Settings"
12 NAME="pandora-lcd-state"
15 echo "Saving LCD-Settings"
16 cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness > /etc/pandora/conf/brightness.state
17 cat /sys/devices/platform/omap2_mcspi.1/spi1.1/gamma > /etc/pandora/conf/gamma.state
21 echo "Restoring LCD-Settings"
22 cat /etc/pandora/conf/brightness.state > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness
23 cat /etc/pandora/conf/gamma.state > /sys/devices/platform/omap2_mcspi.1/spi1.1/gamma
28 echo -n "Starting $DESC: $NAME - "
33 echo -n "Stopping $DESC: $NAME - "
38 echo -n "Reloading $DESC: $NAME - "
43 echo -n "Restarting $DESC: $NAME - "
50 echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2