pandora-state: increase audio pm and dirty_expire delays
[openpandora.oe.git] / recipes / pandora-system / pandora-state / rc.pandora-state
index 09d6bfe..c1a1f98 100644 (file)
@@ -70,6 +70,14 @@ d_start() {
        sed -n '10p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/scrolly_sensitivity
        sed -n '11p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/scroll_rate
        sed -n '12p' /etc/pandora/conf/nubs.state > /proc/pandora/nub1/mbutton_threshold
+       echo "Enabling ZRAM Swap"
+       mkswap /dev/zram0
+       swapon -p 5 /dev/zram0
+
+       # set audio powerdown delay (ms)
+       if [ -e /sys/devices/platform/soc-audio/PCM1773/pmdown_time ]; then
+               echo 60000 > /sys/devices/platform/soc-audio/PCM1773/pmdown_time
+       fi
 }
 
 case "$1" in