X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fpandora-state%2Frc.pandora-state;h=7fd1de4e7f3d539cc266e9da77163a8960b16898;hp=09d6bfe25a27b39966a9bfcaf57f229979da2e22;hb=b2c81f2e516887139aab262dd9c0379795804399;hpb=9af25b7eb768ed326228bd71083c71dd7c57e31b diff --git a/recipes/pandora-system/pandora-state/rc.pandora-state b/recipes/pandora-system/pandora-state/rc.pandora-state index 09d6bfe..7fd1de4 100644 --- a/recipes/pandora-system/pandora-state/rc.pandora-state +++ b/recipes/pandora-system/pandora-state/rc.pandora-state @@ -53,10 +53,10 @@ d_start() { if [ -f /etc/pandora/shutdown ]; then rm /etc/pandora/shutdown sync - echo $cpuspeed > /proc/pandora/cpu_mhz_max + /usr/pandora/scripts/op_cpuspeed.sh -n $cpuspeed else echo "No clean shutdown - will not set CPU speed" - touch /tmp/nocleanwarn + echo "Yes" > /tmp/nocleanwarn fi sed -n '1p' /etc/pandora/conf/nubs.state > /proc/pandora/nub0/mode sed -n '2p' /etc/pandora/conf/nubs.state > /proc/pandora/nub0/mouse_sensitivity @@ -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