pandora-lcd-state: Now renamed to pandora-state and including dirty_expire_centisecs...
authorMichael Mrozek <EvilDragon@openpandora.de>
Sun, 20 Jun 2010 23:25:36 +0000 (01:25 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Sun, 20 Jun 2010 23:25:36 +0000 (01:25 +0200)
recipes/pandora-system/pandora-state.bb [moved from recipes/pandora-system/pandora-lcd-state.bb with 68% similarity]
recipes/pandora-system/pandora-state/brightness.state [moved from recipes/pandora-system/pandora-lcd-state/brightness.state with 100% similarity]
recipes/pandora-system/pandora-state/dirty_expire_centisecs [new file with mode: 0644]
recipes/pandora-system/pandora-state/gamma.state [moved from recipes/pandora-system/pandora-lcd-state/gamma.state with 100% similarity]
recipes/pandora-system/pandora-state/nubs.state [moved from recipes/pandora-system/pandora-lcd-state/nubs.state with 100% similarity]
recipes/pandora-system/pandora-state/rc.pandora-state [moved from recipes/pandora-system/pandora-lcd-state/rc.pandora-lcd-state with 94% similarity]
recipes/tasks/task-pandora-core.bb

similarity index 68%
rename from recipes/pandora-system/pandora-lcd-state.bb
rename to recipes/pandora-system/pandora-state.bb
index 7e09c6f..cedf4a4 100755 (executable)
@@ -1,12 +1,12 @@
-DESCRIPTION = "Save and restore the brightness and gamma state on shutdown / startup"
+DESCRIPTION = "Save and restore some specific Pandora settings on shutdown / startup"
 LICENSE = "GPLv2"
 
 COMPATIBLE_MACHINE = "omap3-pandora"
 
-PR = "r4"
+PR = "r5"
 inherit update-rc.d
 
-INITSCRIPT_NAME = "pandora-lcd-state"
+INITSCRIPT_NAME = "pandora-state"
 INITSCRIPT_PARAMS = "start 39 S . stop 31 0 1 6 ."
 
 SRC_URI = " \
@@ -14,15 +14,17 @@ SRC_URI = " \
          file://gamma.state \
          file://brightness.state \
          file://nubs.state \
+         file://dirty_expire_centisecs \
 "
 
 do_install() {
           install -d ${D}${sysconfdir}/init.d/
-          install -m 0755 ${WORKDIR}/rc.pandora-lcd-state ${D}${sysconfdir}/init.d/pandora-lcd-state
+          install -m 0755 ${WORKDIR}/rc.pandora-state ${D}${sysconfdir}/init.d/pandora-state
          install -d ${D}${sysconfdir}/pandora/conf/
           install -m 0644 ${WORKDIR}/gamma.state ${D}${sysconfdir}/pandora/conf/gamma.state
           install -m 0644 ${WORKDIR}/brightness.state ${D}${sysconfdir}/pandora/conf/brightness.state
          install -m 0644 ${WORKDIR}/nubs.state ${D}${sysconfdir}/pandora/conf/nubs.state
+         install -m 0644 ${WORKDIR}/dirty_expire_centisecs ${D}${sysconfdir}/pandora/conf/dirty_expire_centisecs
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes/pandora-system/pandora-state/dirty_expire_centisecs b/recipes/pandora-system/pandora-state/dirty_expire_centisecs
new file mode 100644 (file)
index 0000000..5113faf
--- /dev/null
@@ -0,0 +1 @@
+20 
@@ -9,10 +9,10 @@
 ### END INIT INFO
  
 DESC="OpenPandora Save and Restore LCD Settings"
-NAME="pandora-lcd-state"
+NAME="pandora-state"
 
 d_stop() {
-       echo "Saving LCD and Nub-Settings"
+       echo "Saving Pandora specific settings"
        bright=$(cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness)
        if [ $bright != "0" ]; then
            cat /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness > /etc/pandora/conf/brightness.state
@@ -33,7 +33,8 @@ d_stop() {
 }
 
 d_start() {
-       echo "Restoring LCD and Nub-Settings"
+       echo "Restoring Pandora specific settings"
+       cat /etc/pandora/conf/dirty_expire_centisecs >  /proc/sys/vm/dirty_expire_centisecs
        cat /etc/pandora/conf/brightness.state > /sys/devices/platform/twl4030-pwm0-bl/backlight/twl4030-pwm0-bl/brightness 
        cat /etc/pandora/conf/gamma.state > /sys/devices/platform/omap2_mcspi.1/spi1.1/gamma
        sed -n '1p' /etc/pandora/conf/nubs.state > /proc/pandora/nub0/mode
index 5927f8b..7196034 100755 (executable)
@@ -5,7 +5,7 @@ DESCRIPTION = "Task file for default core/console apps and libs in the Pandora i
 
 # Don't forget to bump the PR if you change it.
 
-PR = "r26"
+PR = "r27"
 
 inherit task 
 
@@ -65,7 +65,7 @@ PANDORA_LIBS = " \
   pandora-libpnd lsof \
   omap3-deviceid \
   pandora-skel \
-  pandora-lcd-state \
+  pandora-state \
 "
 
 SUDO = " \