• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [TWEAK][INIT.D] 66Citbun all-in-one optimizer[UPDATED 2.23.12] Added beta 5 'friendly' version

Lordvincent 90

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
I have been searching for a while for any new tweaks to make our prevails even better (started thinking we had hit a ceiling, lol) then i found this

66Citbun

22 citbun is modified to work in conjunction with hroark's beta 5 ram script
22Citbun

these lines removed in 22Citbun
Code:
#battery tweaks (vm) 
echo 0 > /proc/sys/vm/laptop_mode;
echo 500 > /proc/sys/vm/dirty_expire_centisecs;
echo 1000 > /proc/sys/vm/dirty_writeback_centisecs; 
echo 60 > /proc/sys/vm/dirty_ratio; 
echo 45 > /proc/sys/vm/dirty_background_ratio;
Its an all in one ram optimizer, 3g speed tweaker, battery saver, super-tweak.

i have tested this on a couple different prevails with no ill effects.
apps open faster, speedtest results increase, battery drain (when phone not in use) is noticeably affected

my brother plays the mmorpg 'tibia' and server connect time went from 2 min to around 30 sec and angry birds seems snappier to me too, just to name a few


NOTE THIS CONTAINS THE IPV4 SCRIPT TWEAKS INSIDE IT. I RECOMMEND REMOVING IT BEFORE INSTALLING THIS TWEAK
ALSO, YOU MUST BE ON A ROM THAT SUPPORTS INIT.D (ALL BUT STOCK SUPPORT THIS, I THINK)

installation is simple
1.MAKE A BACKUP in case you don't experience the same benefits.

2 a. dl 66Citbun from the link and extract the 'tweak' folder

2 b. OR 22Citbun and extract '22Citbun' file

3 a.inside is the 66Citbun tweak, copy '66citbun' to your sd card

3 b. OR copy 22citbun to sdcard

4.using a file explorer with SU (root explorer, es file explorer, astro, etc) copy/paste it from sd to /ect/init.d (it will be /ect/init.d/66Citbun)

5.reboot

please post your positive/negative results with this. and i did not create this, credit goes it Leonard Luangga. he made it, i just discovered the benefits from it on the prevail.

note to advanced users: there are some additional settings disabled in the script.:eek: as well as minor notes about them. i have not edited the script from its original state, if you choose to use the aditional settings, please post which changes offered more/less benifits:)

script contains
Code:
#!/system/bin/sh
#
# Copyright (c) 2011 Leonard Luangga


#internet speed tweaks
echo 0 > /proc/sys/net/ipv4/tcp_timestamps;
echo 0 > /proc/sys/net/ipv4/tcp_tw_recycle;
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse;
echo 1 > /proc/sys/net/ipv4/tcp_sack;
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling;
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo 20 > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo 1800 > /proc/sys/net/ipv4/tcp_keepalive_time;
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout;
echo 404480 > /proc/sys/net/core/wmem_max;
echo 404480 > /proc/sys/net/core/rmem_max;
echo 256960 > /proc/sys/net/core/rmem_default;
echo 256960 > /proc/sys/net/core/wmem_default;
echo 4096 16384 404480 > /proc/sys/net/ipv4/tcp_wmem;
echo 4096 87380 404480 > /proc/sys/net/ipv4/tcp_rmem;


#battery tweaks (sleepers)
mount -t debugfs none /sys/kernel/debug
echo NO_NEW_FAIR_SLEEPERS > /sys/kernel/debug/sched_features;
echo NO_NORMALIZED_SLEEPERS > /sys/kernel/debug/sched_features;
umount /sys/kernel/debug


#battery tweaks (vm)
echo 0 > /proc/sys/vm/laptop_mode;
echo 500 > /proc/sys/vm/dirty_expire_centisecs;
echo 1000 > /proc/sys/vm/dirty_writeback_centisecs;
echo 60 > /proc/sys/vm/dirty_ratio;
echo 45 > /proc/sys/vm/dirty_background_ratio;


#vm management tweaks
echo 0 > /proc/sys/vm/panic_on_oom;
echo 0 > /proc/sys/vm/overcommit_memory;
echo 0 > /proc/sys/vm/oom_kill_allocating_task;
echo 3 > /proc/sys/vm/page-cluster;
echo 10 > /proc/sys/vm/swappiness;
echo 50 > /proc/sys/vm/vfs_cache_pressure; #default value=100. low  value can cause memory leak, high value drains more battery
echo 2896 > /proc/sys/vm/min_free_kbytes;

#default value for /proc/sys/vm/min_free_kbytes
# RAM        min_free_kbytes
# 16MB        512k
# 32MB        724k
# 64MB        1024k
# 128MB        1448k
# 256MB        2048k
# 512MB        2896k
# 1024MB    4096k
# 2048MB    5792k
# 4096MB    8192k
# 8192MB    11584k


#kernel tweaks
#echo 1 > /proc/sys/kernel/panic_on_oops;
#echo 60 > /proc/sys/kernel/panic;
echo 0 > /proc/sys/kernel/panic_on_oops;
echo 30 > /proc/sys/fs/lease-break-time;
#echo 64000 > /proc/sys/kernel/msgmni; #1024
#echo 64000 > /proc/sys/kernel/msgmax;
#echo 1000000 > /proc/sys/kernel/sched_rt_period_us;
#echo 950000 > /proc/sys/kernel/sched_rt_runtime_us;
echo 500 512000 64 2048 > /proc/sys/kernel/sem;

if [ -e /proc/sys/kernel/sched_min_granularity_ns ]
then
    echo 200000 > /proc/sys/kernel/sched_min_granularity_ns;
fi

if [ -e /proc/sys/kernel/sched_latency_ns ]
then
    echo 400000 > /proc/sys/kernel/sched_latency_ns;
fi

if [ -e /proc/sys/kernel/sched_wakeup_granularity_ns ]
then
    echo 100000 > /proc/sys/kernel/sched_wakeup_granularity_ns;
fi

if [ -e /proc/sys/kernel/hung_task_timeout_secs ]
then
    echo 45 > /proc/sys/kernel/hung_task_timeout_secs;s
#(busybox expr `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency` \* 750 / 1000);
#echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
#echo 10000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
echo 70 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold;


#optimize build.prop
#setprop ro.ril.hsxpa 2; #HSDPA/UMTS? I think this one gonna drain more and more battery
#setprop ro.ril.hsxpa 1; #HSDPA only? hmm I think this one drain more battery than UMTS only
setprop ro.ril.hsxpa 0; #UMTS only? slower but I think this one drain less battery
setprop ro.ril.gprsclass 10;
setprop ro.ril.hsupa.category 6;
setprop ro.ril.hsdpa.category 8;
setprop ro.ril.hep 1;
setprop ro.ril.enable.dtm 1;
setprop ro.ril.enable.a53 1;
setprop ro.ril.enable.3g.prefix 1;
setprop keyguard.no_require_sim true;
setprop net.tcp.buffersize.default 4096,87380,256960,4096,16384,256960;
setprop net.tcp.buffersize.wifi 4096,87380,256960,4096,16384,256960;
setprop net.tcp.buffersize.umts 4096,87380,256960,4096,16384,256960;
setprop net.tcp.buffersize.edge 4096,87380,256960,4096,16384,256960;
setprop net.tcp.buffersize.gprs 4096,87380,256960,4096,16384,256960;

setprop windowsmgr.support_rotation_270 true;
setprop ro.mot.eri.losalert.delay 1000;
setprop ro.lge.proximity.delay 25;
setprop mot.proximity.delay 25;
setprop persist.sys.use_dithering 0;
setprop persist.sys.purgeable_assets 1;
setprop ro.media.dec.jpeg.memcap 20000000;
setprop ro.media.enc.jpeg.quality 100;
setprop ro.HOME_APP_ADJ 1;
setprop ro.HOME_APP_MEM 2048;
;
setprop video.accelerate.hw 1;
setprop media.stagefright.enable-player true;
setprop ro.ril.disable.power.collapse 0;
setprop persist.adb.notify 0;
setprop pm.sleep_mode 1;
setprop debug.sf.hw 1;
setprop debug.performance.tuning 1;
setprop dalvik.vm.execution-mode int:jit
#untested
#setprop ro.kernel.android.checkjni 0; #does it really fix some apps  issue? http://forum.xda-developers.com/archive/index.php/t-1253326.html
#setprop ro.mot.buttonlight.timeout 0; #force button lights on when screen is on
 
just installed this on my phone. running ctmod 2.4
all seems well for now. speedtests are running a little faster.
will report back later after using it for a while.
 
Got it going first test showed higher numbers will keep ya'll posted...oh yeah does this replace the tweaks by that rob guy you know the tutorial on switching your prl and other tweaks or do we still need to switch to a sprint prl....
 
Thanks man
Installed it and testing
Running ctmod right now
Speed test up a couple of points
Market seems to work little faster
apps opening about the same
 
Any one tested it on CM7?
And did anyone who tried the take out the ipv4 tweak?

i am and have been running the script on cm7...it has quite a few tweeks in one little package..and has been working great since last friday..still experimenting with citbun and scripts like juwe11 ram optimization and v6.. ya kno...see how well it plays with others...also standby and idle decreased some sense running
 
Got it going first test showed higher numbers will keep ya'll posted...oh yeah does this replace the tweaks by that rob guy you know the tutorial on switching your prl and other tweaks or do we still need to switch to a sprint prl....

this tweek wont effect your prl at all..but after you place it in init.d folder and reboot...you could check to see if your hidden menus settings are still the same...if your on stock or ctmod.. cm7 doesnt have hidden menu
 
I plan on trying this out. Lordvincent 90, you mentioned to remove the IPV4 Script, but where would I find it? I do have root explorer in case your wondering.
 
I plan on trying this out. Lordvincent 90, you mentioned to remove the IPV4 Script, but where would I find it? I do have root explorer in case your wondering.

I think it is also in init.d, (could be wrong) i tried to redownload ipv4, to be sure, but it's been seized...

i factory reset/fresh installed before using this. maybe someone could check/confirm it's location for me :D
 
i am and have been running the script on cm7...it has quite a few tweeks in one little package..and has been working great since last friday..still experimenting with citbun and scripts like juwe11 ram optimization and v6.. ya kno...see how well it plays with others...also standby and idle decreased some sense running

thanx for helping me (blindly) test this before i put it up here. You let me know it wasn't a placebo :)
 
Also trying it out on CM7... results are about the same as others... speedtest.net went up a little... still playing a bit more... gotta have some time to really tell... I'll let ya know how it goes... thanks...
 
Here is my speedtest results
screenshot-1327469697276.png
 
what were they, at that time, in that location, before the tweak? You will not always get amazing speeds all day, every day, every place... There are many factors beyond what mods you use... mainly signal strength.
 
Trying it out now big Guy.
Do you extract the zip after placing it in said file? That way I can remove what you said to?
i put 66citbun inside a folder named 'tweak' and zipped it. i tried just zipping the file but it wouldnt download on my phone for some reason. :rolleyes:
so extract zip (either with archidroid on phone, or whatever you use on pc) remove the 66citbun tweak from the folder, and place only 66citbun in init.d (/ect/init.d/66citbun)
 
Interesting... Since I installed CTMod 2.4 w/ DT a2sd, I've never been able to play Monopoly w/out long lag times and pauses. It was so bad the game was basically unplayable and I assumed it was because a2sd had it on the SD card. I removed the existing ram script, dropped this one in after removing the IP4 stuff, and it plays super smooth.
 
Back
Top Bottom