[LG Optimus Black] gabwerkz:
A page/s back and you have the zip. Someone uploaded them. As for the values, i don't understand why some won't search for some init.d values. Filter the tweaks, you can make them in one single script. Open one script and merge all what you want.

http://xdaforums.com/showthread.php?t=1292743

http://xdaforums.com/showthread.php?t=1465836

http://xdaforums.com/showpost.php?p=19846297&postcount=2

and many more.... just search...

Aight, for the sake of it... don't use them all... SELECT/MODIFY according to your ROM and what you want. These are for BATTERY Opimization.

Credit to makers all around XDA...

#!/system/bin/sh

# Mount system as rw
mount -o remount,rw /system

# Defaults
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "noop" > /sys/block/mmcblk0/queue/scheduler

echo "1000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "200000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

# Smooth scaling parameters to control any governor jumping to higher frequency directly.
echo "2" > /sys/devices/system/cpu/cpu0/cpufreq/smooth_target
echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/smooth_offset
echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/smooth_step

AWAKEMIN="300000"
AWAKEMAX="1000000"
AWAKEGOVERNOR="ondemand"

SLEEPMIN="300000"
SLEEPMAX="640000"
SLEEPGOVERNOR="conservative"

# gov for ScreenON =
SCREEN_ON_GOV="ondemand";
# gov for ScreenOff =
SCREEN_OFF_GOV="conservative";

# make it repeat
(while [ 1 ];
do

# assign screen-on governor
ON=`cat /sys/power/wait_for_fb_wake`;
if [ $ON = "awake" ]; then
echo $SCREEN_ON_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;

# assign screen-off governor
OFF=`cat /sys/power/wait_for_fb_sleep`;
if [ $OFF= "sleeping" ]; then
echo $SCREEN_OFF_GOV > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;
fi

# Ondemand Tweaks [Gabwerkz]

echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo "10" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
echo "10" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_down_factor
echo "10" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo "40000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo "40000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo "10" > /sys/devices/system/cpu/cpufreq/ondemand/freq_step
echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load
echo "0" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias
echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
echo "95" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
#echo "5" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential

# Conservative Tweaks [Battery saver]

echo "90" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold
echo "200000" > /sys/devices/system/cpu/cpufreq/conservative/sampling_rate
echo "1" > /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor
echo "70" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold
echo "10" > /sys/devices/system/cpu/cpufreq/conservative/freq_step

(while [ 1 ];
do
# settings for while the screen is on / usage
AWAKE=`cat /sys/power/wait_for_fb_wake`;
if [ $AWAKE = "awake" ]; then
echo $AWAKEGOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;
echo $AWAKEMAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
echo $AWAKEMIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
log -p i -t screenstate_scaling "*** awake ***: switching CPU frequency governor to -> $AWAKEGOVERNOR"
AWAKE=;
fi;

# settings for while the screen is off
SLEEPING=`cat /sys/power/wait_for_fb_sleep`;
if [ $SLEEPING = "sleeping" ]; then
echo $SLEEPGOVERNOR > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;
echo $SLEEPMAX > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
echo $SLEEPMIN > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
log -p i -t screenstate_scaling "*** sleeping ***: switching CPU frequency governor to -> $SLEEPGOVERNOR"
SLEEPING=;
fi;
done &);

# Optimize non-rotating storage;
for i in $MMC;
do
if [ -e $i/queue/rotational ];
then
echo 0 > $i/queue/rotational;
fi;
if [ -e $i/queue/nr_requests ];
then
echo 8192 > $i/queue/nr_requests; # for starters: keep it sane
fi;
echo "0" > $i/queue/iostats;
if [ -e $i/queue/read_ahead_kb ];
then
echo $SDREADAHEAD > $i/queue/read_ahead_kb;
fi;
echo "0" > $i/queue/nomerges;
echo "128" > $i/queue/max_sectors_kb;
done;

# RAM Script
if [ -e /sys/module/lowmemorykiller/parameters/adj ]; then
echo "0,1,2,4,6,15" > /sys/module/lowmemorykiller/parameters/adj
fi

if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
echo "2560,4096,5632,10240,11776,14848" > /sys/module/lowmemorykiller/parameters/minfree
fi

if [ -e /proc/sys/vm/swappiness ]; then
echo "20" > /proc/sys/vm/swappiness
fi

if [ -e /proc/sys/vm/vfs_cache_pressure ]; then
echo "20" > /proc/sys/vm/vfs_cache_pressure
fi

if [ -e /proc/sys/vm/dirty_expire_centisecs ]; then
echo "3000" > /proc/sys/vm/dirty_expire_centisecs
fi

if [ -e /proc/sys/vm/dirty_writeback_centisecs ]; then
echo "500" > /proc/sys/vm/dirty_writeback_centisecs
fi

if [ -e /proc/sys/vm/dirty_ratio ]; then
echo "2" > /proc/sys/vm/dirty_ratio
fi

if [ -e /proc/sys/vm/dirty_background_ratio ]; then
echo "1" > /proc/sys/vm/dirty_background_ratio
fi

#!/system/bin/sh

busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh /system
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh /data
busybox mount -o remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh /cache

#!/system/bin/sh

tune2fs -o journal_data_writeback /block/path/to/system
tune2fs -O ^has_journal /block/path/to/system
tune2fs -o journal_data_writeback /block/path/to/cache
tune2fs -O ^has_journal /block/path/to/cache
tune2fs -o journal_data_writeback /block/path/to/data
tune2fs -O ^has_journal /block/path/to/data

# Memory management

busybox sysctl -w vm.swappiness=0;
busybox sysctl -w vm.oom_kill_allocating_task=0;
busybox sysctl -w vm.panic_on_oom=0;
busybox sysctl -w vm.dirty_background_ratio=1;
busybox sysctl -w vm.dirty_ratio=2;
busybox sysctl -w vm.min_free_kbytes=4096;
busybox sysctl -w vm.vfs_cache_pressure=10;
busybox sysctl -w kernel.panic=0;
busybox sysctl -w kernel.panic_on_oops=1;
busybox sysctl -w kernel.msgmni=2048;
busybox sysctl -w kernel.msgmax=64000;
busybox sysctl -w kernel.shmmax=268435456;
busybox sysctl -w kernel.sem='500 512000 64 2048';
busybox sysctl -w kernel.sched_features=24189;
busybox sysctl -w kernel.hung_task_timeout_secs=0;
busybox sysctl -w kernel.sched_latency_ns=18000000;
busybox sysctl -w kernel.sched_min_granularity_ns=1500000;
busybox sysctl -w kernel.sched_wakeup_granularity_ns=3000000;
busybox sysctl -w kernel.sched_compat_yield=1;
busybox sysctl -w kernel.sched_shares_ratelimit=256000;
busybox sysctl -w kernel.sched_child_runs_first=0;
busybox sysctl -w kernel.threads-max=5000;
busybox sysctl -w net.core.wmem_max=524288;
busybox sysctl -w net.core.rmem_max=524288;
busybox sysctl -w net.ipv4.tcp_tw_recycle=1;
busybox sysctl -w net.ipv4.tcp_rmem='6144 87380 524288';
busybox sysctl -w net.ipv4.tcp_wmem='6144 87380 524288';

# Tweak cfq io scheduler
for i in $(ls -d /sys/block/*);
do
echo "cfq" > $i/queue/scheduler;
done;

for i in $(ls -d /sys/block/*);
do
echo "0" > $i/queue/rotational;
echo "1" > $i/queue/iosched/low_latency;
echo "1" > $i/queue/iosched/back_seek_penalty;
echo "1000000000" > $i/queue/iosched/back_seek_max;
echo "0" > $i/queue/iosched/slice_idle;
echo "512" > $i/queue/nr_requests;
echo "1" > $i/queue/iosched/fifo_batch;
echo "16" > $i/queue/iosched/quantum;
done;

for i in $(ls -d /sys/block/*);
do
echo "noop" > $i/queue/scheduler;
done;

# Remount all partitions with noatime
for k in $(busybox mount | grep relatime | cut -d " " -f3);
do
sync;
busybox mount -o remount,noatime $k;
done;

# Misc tweaks for battery life
busybox sysctl -w vm.dirty_writeback_centisecs=2000;
busybox sysctl -w vm.dirty_expire_centisecs=1000;