[HTC Sensation] axetilen:
I think it will not work in some cases with this file

I used to be in this situation. Some lines worked, some lines were useless

I think it should be: ===> I hope it will work

#!/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

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

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

p/s: if you add #text between the code, it may cause some problems. I don't know exactly, but this is just for safety :(