[One (M7) Original Android Development] Headless96:
Got a bit bored so decided to complete Poondog's script as much as I could and made it flashable! .. All you have to do now is download it and flash it, I'm sure everyone can manage that ;)

Right here's what's going on anyway:

#!/system/bin/sh

#################################################################################################################################################################
#
# KANGAROO CONTROL SCRIPT
# BY POONDOG & HEADLESS
#
#################################################################################################################################################################
#
# Wake Up Controls
#
#################################################################################################################################################################

# Vibration Control (Wake Up Controls)
echo 20 > /sys/android_touch/vib_strength

# Enable Sweep2Wake: 0=None, 1=Both, 2=S2S
echo 1 > /sys/android_touch/sweep2wake

# Enable Logo2Menu:
echo 1 > /sys/android_touch/logo2menu

# Enable Double Tap To Wake: 0=Off, 1=Bottom only, 2=Fullscreen
echo 2 > /sys/android_touch/doubletap2wake

# Enable Logo2Wake:
echo 0 > /sys/android_touch/logo2wake

# Enable Pocket Detection:
echo 1 > /sys/android_touch/pocket_detect

#################################################################################################################################################################
#
# CPU & GPU Settings
#
#################################################################################################################################################################

# CPU Governor
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# CPU Max Frequency - Must have pnpmgr disabled!
echo 1728000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# Min/Max CPUs online: Should stick
chmod 666 /sys/power/pnpmgr/hotplug/mp_min_cpus
echo 1 > /sys/power/pnpmgr/hotplug/mp_min_cpus
chmod 444 /sys/power/pnpmgr/hotplug/mp_min_cpus
chmod 666 /sys/power/pnpmgr/hotplug/mp_max_cpus
echo 4 > /sys/power/pnpmgr/hotplug/mp_max_cpus
chmod 444 /sys/power/pnpmgr/hotplug/mp_max_cpus

# Multicore Power Saving: 0=Off, 1=Medium, 2=Aggressive
echo 0 > /sys/devices/system/cpu/sched_mc_power_savings

# GPU Governor
echo "ondemand" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor

# Max GPU clock:
chmod 666 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
echo 400000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
chmod 444 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

# Voltage control:
#echo "800 800 800 825 875 900 960" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

#################################################################################################################################################################
#
# Thermal settings
#
#################################################################################################################################################################

# Step 1 (Min)
echo 45 > /sys/module/msm_thermal/parameters/temp_min
echo 1350000 > /sys/module/msm_thermal/parameters/temp_min_freq

# Step 2 (Mid)
echo 55 > /sys/module/msm_thermal/parameters/temp_mid
echo 918000 > /sys/module/msm_thermal/parameters/temp_mid_freq

# Step 3 (Max)
echo 70 > /sys/module/msm_thermal/parameters/temp_max
echo 486000 > /sys/module/msm_thermal/parameters/temp_max_freq

#################################################################################################################################################################
#
# Powersave
#
#################################################################################################################################################################

# Powersave Switch
echo 0 > /sys/module/msm_thermal/parameters/powersave

# Powersave Cap
echo 1458000 > /sys/module/msm_thermal/parameters/powersave_freq

#################################################################################################################################################################
#
# Misc Settings
#
#################################################################################################################################################################

# Enable Force Fast Charge:
echo 0 > /sys/kernel/fast_charge/force_fast_charge

# Enable BLN
echo 0 > /sys/class/leds/button-backlight/blink_buttons

# Vibration Control (General)
echo 2700 > /sys/class/timed_output/vibrator/voltage_level

# IO Scheduler: (In lower case)
echo fiops > /sys/block/mmcblk0/queue/scheduler

# IO Readahead:
echo 512 > /sys/block/mmcblk0/queue/read_ahead_kb

# TCP Congestion Control
echo "westwood" > /proc/sys/net/ipv4/tcp_congestion_control

# Disable pnpmgr - (Delete # to enable)
#mv /system/bin/pnpmgr /system/bin/pnpmgr.bak

echo " ~ Kangaroo Tweaks Applied! ~ " > /sdcard/Kangaroo.txt;

Everything from poondog's previous script is here but I've also added:

Log file to know if script is working

Thermal Control (from v122+ only!)

Powersave Control (122+ only!)

BLN Control

Vibration Control (General)

Vibration Control (Wake Up Controls)

Sweep Up 2 Wake - Not available anymore (too buggy)

Multicore Power Saving Control

Fixed Min/Max HP Cores

CPU Governor Control

CPU Max Freq Control

GPU Governor Control

Fixed GPU Freq Command - Can change max GPU frequency to 400, 320, 200 and 128mhz!

TCP Congestion Control

Disable Pnpmgr - This option isn't going to happen unless you enable it (delete the # before the 'mv /system.....')

Deletes ElementalX scripts - I think the reason some of you have certain things disabled when they shouldn't be is because you have scipts and stuff left over from ElementalX, so I added in the updater-script to delete these files

Also the principal still stands:

1 to enable a function and 0 to disable unless stated otherwise :)

And a # before a line means that line is disabled, to enable that line, delete the #, save file and flash!

Final thing: The values that are enabled/disabled in the init.d script already are like that when flashing the kangaroo kernel. Basically when this script is flashed, you'll notice nothing else enabled that already wasn't, it's up to you to decide which ones you want! :)

Final thing 2: If the script isn't flashing for you, there's 2 things you can try:

Check if you have a file called 'busybox' in /sbin/ directory. If you don't update busybox and try reflashing I've changed the script so it doesn't use busybox anymore, if the zip doesn't flash try the method below

Extract the script from the zip, put it in /system/etc/init.d/ and give it rwx-rwx-rwx (777) permissions and reboot

Final thing 3: You guys know the score, I'm not responsible for anything that may happen to your phones, nothing should go wrong but nandroid backups just in case guys and gals :D

Final thing 4: Alright guys, there has been too many posts saying 'script nt wrking, pls fix, tried bashing phone on table but no success :confused:' ... And so I've added to the script to create a log file in internal storage called Kangaroo.txt. If this txt file is there on your storage then the script is working and any incompatibilities is down to you (of course ask for help if needed)

Enjoy!