[HTC Sensation] axetilen:
Did you type su? I didn't type su and it didn't work

---------- Post added at 11:39 PM ---------- Previous post was at 11:36 PM ----------

sr dude, the code I send to you miss some lines and it needs a space at the end (after esac)

the m issing thing is:

emmc_boot=`getprop ro.emmc`

case "$emmc_boot"

in "1")

chown system /sys/devices/platform/rs300000a7.65536/force_sync

chown system /sys/devices/platform/rs300000a7.65536/sync_sts

chown system /sys/devices/platform/rs300100a7.65536/force_sync

chown system /sys/devices/platform/rs300100a7.65536/sync_sts

;;

esac

#!/system/bin/sh
#Ninjabadgers custom post boot file

target=`getprop ro.board.platform`

case "$target" in
"msm8660" | "msm8660_csfb")
echo 1 > /sys/module/rpm_resources/enable_low_power/L2_cache
echo 1 > /sys/module/rpm_resources/enable_low_power/pxo
echo 2 > /sys/module/rpm_resources/enable_low_power/vdd_dig
echo 2 > /sys/module/rpm_resources/enable_low_power/vdd_mem
echo 1 > /sys/module/rpm_resources/enable_low_power/rpm_cpu
echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/idle_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled
echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled
echo 1 > /sys/module/pm_8660/modes/cpu0/power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8660/modes/cpu1/power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8660/modes/cpu0/standalone_power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8660/modes/cpu1/standalone_power_collapse/suspend_enabled
echo 1 > /sys/module/pm_8660/modes/cpu0/power_collapse/idle_enabled
echo 1 > /sys/module/pm_8660/modes/cpu1/power_collapse/idle_enabled
echo 1 > /sys/module/pm_8660/modes/cpu0/standalone_power_collapse/y_enabled
echo 1 > /sys/module/pm_8660/modes/cpu1/standalone_power_collapse/idle_enabled
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 810000 > /sys/devices/system/cpu/cpufreq/ondemand/two_phase_freq
echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq
echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/screen_off_max_freq
echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
echo 4 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo 192000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 192000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo 1674000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1674000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chown system /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
chown root.system /sys/devices/system/cpu/mfreq
chmod 220 /sys/devices/system/cpu/mfreq
chown root.system /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/devices/system/cpu/cpu1/online
echo "cfq" > /sys/block/mmcblk0/queue/scheduler
echo "cfq" > /sys/block/mmcblk1/queue/scheduler
chmod 664 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
echo 320000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
echo 228571000 > /sys/devices/platform/kgsl-2d0.0/kgsl/kgsl-2d0/max_gpuclk
echo 228571000 > /sys/devices/platform/kgsl-2d0.0/kgsl/kgsl-2d0/gpuclk
echo 228571000 > /sys/devices/platform/kgsl-2d1.1/kgsl/kgsl-2d1/max_gpuclk
echo 228571000 > /sys/devices/platform/kgsl-2d1.1/kgsl/kgsl-2d1/gpuclk
;;
esac

chown system /sys/power/perflock

emmc_boot=`getprop ro.emmc`
case "$emmc_boot"
in "1")
chown system /sys/devices/platform/rs300000a7.65536/force_sync
chown system /sys/devices/platform/rs300000a7.65536/sync_sts
chown system /sys/devices/platform/rs300100a7.65536/force_sync
chown system /sys/devices/platform/rs300100a7.65536/sync_sts
;;
esac

case "$target" in
"msm8660" | "msm8660_csfb" | "msm8960")
start mpdecision
;;
esac

case "$target" in
"msm8660" | "msm8660_csfb")
start thermald
;;
esac