[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] galaxys3man30:
Re: [Team Kernelizers] {how to} Ktoonsnative governor and I/O tweaks {Aroma TK MOD 1.

*Users with Ktweaker settings reseting: Freezing system tuner and or rom toolbox is a possible fix for either min/max mhz, scheduler or governor resetting in Ktweaker. Another way could be making a backup of your settings, clear data on ktweaker, reboot and restore settings twice as not all apply right first time and reboot again with restore settings immediately at boot.

*Ktweaker Issues if on Kt747 Kernel: could have issues on roms like Freegs3 and it is noted that if you prefer to use Ktweaker to set your settings vs script than make sure no conflicting script is running for example check /system/etc/initd/ for 70tweaks and remove or place somewhere for safe keeping to prevent conflicts with Ktweaker for example min max changing or voltage tables, governor or scheduler. This script in the example is Freezas script to set phone based on screen on and off and current battery level for example of some of its functions, there is nothing wrong with using scripts nor is there a problem with this script in particular. Just be aware there will be conflicts if used in conjunction with Ktweaker and or setcpu and the like.

Ktoonservative governor presets from our thread

BALANCED PERFORMANCE BATTERY LIFE (no order)

Ktoonservative 50 30 67 68 Freecharlesmanson tunables

Ktoonservative 50 30 85 80 docnas tunables

Ktoonservative 33 11 99 35

Ktoonservative 42 11 99 99

Ktoonservative 75 11 95 75 tunables

HIGH BATTERY SAVINGS (no order)

-#*note#* (you can get away with one of these high threshold tunings and not feel laggy by using touch booster set to 384mhz on booster one and for touch two 486mhz which should help response time on any interactive action where in you touch the screen and immediately resume the normal minimum mhz as during touch boost the cpu still ramps based on load over the touch boost values if and as needed. It provides less frequency steps to target frequency during interactive use)*! 384/486 being conservative and 702mhz touch boost 1 756mhz touch boost 2 for more response and still will not be over target frequency during interactive use.

Ktoonservative 75 90 95 99 single core

Ktoonservative 85 94 95 99 single core 12 31 2012

Ktoonservative 60 35 97 75 Castle Bravo

Ktoonservative 60 35 90 70 Daniel4653

Ktoonservative 65 45 99 99 tunables

Ktoonservative 65 55 99 99 tunables old revision

Ktoonservative 65 45 97 95 Castle Bravo

SCHEDULERS

Jcdominguez chart

[Light usage] SIO> ZEN> NOOP> Deadline > BFQ > CFQ [medium/heavy usage]

************

Battery Saving:

-Noop: best battery savings for all mobile but not the best data rates. Considered a simple i/o

-SIO: similar to noop but uses a little more battery with benefit of some deadlines.

-Zen: Combo of noop, sio and deadline.

Balanced:

-BFQ: a good balance of battery and performance.

*tuning for solid state storage

# Freecharlesmanson tunables original

# MW86 tunables (use if above tuning resets ever time)

Performance with battery secondary:

-Row: fastest latencies on reads over all governors but may have the highest battery drain. Read Over Write.

#performance tuning Castle Bravo

-Schedulers/Governors Explained (thanks droidphile) (thanks for link Clothednblack)

http://xdaforums.com/showthread.php?p=19846276

(thanks Grift) (thanks for link Clothednblack)

http://xdaforums.com/showthread.php?p=26884853

Extra low Voltage Table:

! #@$ do not try this table if you have not tried the one in post one above. This is much lower and likely not okay for every phone but has been a non issue on mine and for a few others.

2106mhz: 1290 mV

1998mhz: 1260 mV

1890mhz: 1225 mV

1809mhz: 1200 mV

1728mhz: 1175 mV

1674mhz: 1160 mV

1512mhz: 1150 mV

1458mhz: 1145 mV

1404mhz: 1140 mV

1350mhz: 1135 mV

1296mhz: 1125 mV

1242mhz: 1110 mV

1188mhz: 1100 mV

1134mhz: 1085 mV

1080mhz: 1075 mV

1026mhz: 1035 mV

972mhz: 1025 mV

918mhz: 1010 mV

864mhz: 1000 mV

810mhz: 985 mV

756mhz: 975 mV

702mhz: 935 mV

648mhz: 925 mV

594mhz: 910 mV

540mhz: 900 mV

486mhz: 885 mV

384mhz: 880 mV

192mhz: 875 mV

144mhz: 870 mV

96mhz: 865 mV

Low Rider Volt Table

-note may not be stable using the same volts but a higher maximum mhz

-if the above table or the one in post one are not stable do not attempt to load these

-Thanks goes to Clothednblack1

1242 MHz - 995mV

1188 MHz - 975mV

1134 MHz - 950mV

1080 MHz - 945mV

1026 MHz - 930mV

972 MHz - 915mV

918 MHz - 910mV

864 MHz - 855mV

810 MHz - 850mV

756 MHz - 835mV

702 MHz - 820mV

648 MHz - 805mV

594 MHz - 835mV

540 MHz - 825mV

486 MHz - 805mV

384 MHz - 785mV

192 MHz - 775mV

144 MHz - 765mV

96 MHz - 700mV this may be too low for some

General Tips for faster UI

-enable Hwoverlay and force gpu rendering (leave out Hwoverlay on touchwiz to prevent a noted video playback issue)

-Disable animations and transitions on launcher (or set to as fast as possible)

-Use Launcher options to force launcher into memory like in Nova Launcher (Thanks Pberge)

Create localprop and force app in memory thanks nonato

- Go to terminal type su hit enter

-Type all of the following and hit enter to add an app to local.prop and force it in memory. Nova Launcher would be as follows. If local.prop doesn't exist the command will create it.

echo sys.keep_app_1=com.teslacoilsw.launcher-1 >> /data/local.prop

-(Thanks nonato for posting this trick in Seeder thread.)

Fix Gtalk fully disable if it was removed and causing a wakelock (needs credit need to find poster of this)

Cyanogenmod Based tweaks

-enable memory management options

-disable dithering (dithering on smooths color transitions off can show a banding effect) (if not on a CM based rom the use dithering 0 build prop has same effect)

-16bit transparency (close to half the bandwidth needed for 24/32bit color)

Rename these files on Touchwiz as pictured in System/Bin to prevent unnecessary battery drain (thanks for pic Jcdominguez)

Thread on Touchwiz safe to remove apps GS3 (Thanks Vegas Rooted)

http://xdaforums.com/showthread.php?p=32212501

User suggestions for removable apps (Touchwiz)

Stop MPDECISION on a 4.2.1 Rom

- Navigate like in this pic to system/etc

- Open initpostboot.sh

- Go to line 223 (i use droidedit free at play store to edit the file it makes it easy to find line numbers)

- Place cursor in front of mpdecision and insert a #. Save the file and exit and reboot. Thats all thats necessary to prevent stopping mpdecision from starting or showing errors over and over in logcat on Android AOSP 4.2.1.

-*Credit goes to Decimalman thank you

Info on ROW Scheduler

http://lwn.net/Articles/509829/

-*Thanks CastleBravo

BUILD PROP

-tested on Freegs3(4.1.1), Goodness(4.1.1)rom, Paranoid Android(4.1.2), Chemistry(4.1.1), Unofficial AOKP(4.2.1), PACman(4.1.2), Cm10.1 nightly(4.2.1), Kiljoy(4.1.1)

- Build prop i use and has been tested on 4.1.1/4.1.2/4.2.1

- Gtojim and I are running these without issues. Tested on freegs3, cm10.1, Paranoid android and PAKman (#*has not been tested with Morphology need feedback*#)

-credit for the build props goes to Rom Toolbox and an XDA member Custodian. Thank you Custodian.

http://db.tt/q7S1s8yp

- Directions same as other build props we have listed. Until we have an easy install script this is for advanced users only who already have experience editing build.prop. I will always suggest using rom toolbox to do so vs manually editing your build prop file. Do not add all of them in without checking if the value exists already. You don't want double lines that one says the line and true and the other false, its hard to say but one may override the other. THIS IS NOT A BUILD PROP IT IS A SIMPLE TEXT FILE WITH ALL THE ONES I USE. THE BUILD PROP ENTRY IS TO THE LEFT OF THE EQUAL SIGN AND THE VALUE USED IS TO THE RIGHT OF THE EQUAL SIGN. YOU MUST SEARCH AND REPLACE OR ADD THEM MANUALLY.

-whats included in the build prop list:

debug.composition.type=gpu

debug.egl.hw=1

debug.mdpcomp.maxlayer=2

debug.sf.hw=1

debug.performance.tuning=1

debug.sf.nobootanimation=1 (set to 0 to reenambe Bootanimation or do not use this build prop)

debug.qctwa.preservebuf=1

debug.qctwa.statusbar=1

debug.qc.hardware=true

ro.HOME_APP_ADJ=1

video.accelerate.hw=1

windowsmgr.max_events_per_sec=256

media.stagefright.enable-player=true

media.stagefright.enable-http=true

media.stagefright.enable-fma2dp=false

media.stagefright.enable-aac=true

media.stagefright.enable-qcp=true

media.stagefright.enable-meta=true

media.stagefright.enable-scan=true

media.stagefright.enable-rtsp=true

media.stagefright.enable-record=false

mot.proximity.delay=20

movfilter=40

move_hyst=0

lpa.decode=false

lpa.use-stagefright=false

ro.media.enc.jpeg.quality=100

ro.media.dec.jpeg.memcap=8000000

ro.media.enc.hprof.vid.bps=8000000

ro.media.enc.hprof.vid.fps=25

ro.media.panorama.defres=3264x1840

ro.media.panorama.frameres=1280x720

ro.camcorder.videoModes=true

ro.telephony.call_ring.delay=400

ro.ril.disable.power.collapse=0

ro.config.nocheckin=1

ro.config.hwfeature_wakeupkey=0

ro.lge.proximity.delay=20

ro.min_pointer_dur=8

ro.max.fling_velocity=15000

ro.min.fling_velocity=4000

ro.mot.eri.losalert.delay=900

ro.HOME_APP_MEM=8192

ro.FOREGROUND_APP_MEM=6144

ro.VISIBLE_APP_MEM=8192

ro.kernel.android.checkjni=0

ro.kernel.checkjni=0

ro.cwm.enable_key_repeat=true

dalvik.vm.checkjni=false

dev.pm.dyn_samplingrate=1

drm.service.enable=false

persist.hwc.mdpcomp.enable=false

persist.gps.qmienabled=true

persist.sys.use_dithering=0

persist.sys.scrollingcache=3

per_sec=300

com.qc.hdmi_out=true

com.qc.hardware=true

dalvik.vm.heapgrowthlimit=64m

dalvik.vm.heapsize=256m

dalvik.vm.heapidealfree=8388608

dalvik.vm.heapconcurrentstart=2097152

ring.delay=0

TCHTHR=28

ENFORCE_PROCESS_LIMIT=false

wifi.supplicant_scan_interval=300

AOSP only

dalvik.vm.heaptargetutilization=0.25

Touchwiz Only

dalvik.vm.heaputilization=0.25

Systctrl settings via Init.d (requires kernel with init.d support or enable initd with RyuInfernos apk link at bottom) (tested on same roms as Build Prop)

- * Thanks Zeppelinrox for talking some settings over with me.

- Help entropy pool

- read_wakeup_threshold to 1366

- write_wakeup_threshold to 128

http://db.tt/NilQsqG6

- Init.d for systctrl with the above set already and other optimized values

- Here guys this one is without anything special for entropy the values related to it are set to default on this one

- read_wakeup_threshold 64

- write_wakeup_threshold 128

- randomize_va_space 2

http://db.tt/rHcNuTfR

- Instructions:

Download. Using a file explorer, i like es file explorer go up from internal storage with a root explorer till you are at / you should see system, sys and much more. Go to /system/etc/initd/ and paste this file in there. Select it and go to properties of the file and select permissions. Change them to rwxrwxrwx. In other words enable read, write and execute for the three options user, system and other or whichever they are called. Now exit and reboot. Now at boot systctrl are applied. These are the presets system tuner sets plus a few tweaks by Freecharlesmanson (if you see him please be sure to give him thanks) and a fix for entropy where noted above.

- What is changed in the two systctrl (initd commands are as follows in the above files except the settings mentioned) (you can pick and choose and make your own initd script):

#!/system/bin/sh

echo "524288" > /proc/sys/fs/file-max

echo "32000" > /proc/sys/fs/inotify/max_queued_events

echo "256" > /proc/sys/fs/inotify/max_user_instances

echo "10240" > /proc/sys/fs/inotify/max_user_watches

echo "10" > /proc/sys/fs/lease-break-time

echo "64" > /proc/sys/kernel/random/read_wakeup_threshold

echo "128" > /proc/sys/kernel/random/write_wakeup_threshold

echo "65536" > /proc/sys/kernel/msgmax

echo "2048" > /proc/sys/kernel/msgmni

echo "10" > /proc/sys/kernel/panic

echo "'500 512000 64 2048'" > /proc/sys/kernel/sem

echo "268435456" > /proc/sys/kernel/shmmax

echo "524288" > /proc/sys/kernel/threads-max

echo "2" > /proc/sys/kernel/randomize_va_space

echo "10485760" > /proc/sys/net/core/optmem_max

echo "8388608" > /proc/sys/net/core/rmem_default

echo "65536" > /proc/sys/net/core/wmem_default

echo "524288" > /proc/sys/net/core/rmem_max

echo "524288" > /proc/sys/net/core/wmem_max

echo "'10485760 10485760 10485760'" > /proc/sys/net/ipv4/tcp_mem

echo "1" > /proc/sys/net/ipv4/tcp_no_metrics_save

echo "1" > /proc/sys/net/ipv4/tcp_rfc1337

echo "0" > /proc/sys/net/ipv4/tcp_ecn

echo "'6144 87380 524288'" > /proc/sys/net/ipv4/tcp_rmem

echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle

echo "'6144 87380 524288'" > /proc/sys/net/ipv4/tcp_wmem

echo "35" > /proc/sys/vm/dirty_ratio

echo "40" > /proc/sys/vm/dirty_background_ratio

echo "5" > /proc/sys/vm/swappiness

echo "900" > /proc/sys/vm/dirty_expire_centisecs

echo "300" > /proc/sys/vm/dirty_writeback_centisecs

echo "100" > /proc/sys/vm/vfs_cache_pressure

echo "95" > /proc/sys/vm/overcommit_ratio

echo "3" > /proc/sys/vm/page-cluster

echo "4096" > /proc/sys/vm/min_free_kbytes

echo "3" > /proc/sys/vm/drop_caches

Recommended Juice Defender Setup - (Thanks Clothednblack)

Resources/Apps

#############

- Rescan Media Root (click link on phone and be sure to select launch link with play store)

https://play.google.com/store/apps/details?id=com.addz.mediascannerroot

- Kill Media Server (thanks for the link Jcdominguez)

http://www17.zippyshare.com/v/77111471/file.html

-Lux Auto Brightness (set brightness lower than stock minimum brightness on any rom)

https://play.google.com/store/apps/details?id=com.vito.lux

-Build Prop Editor free by Rom Toolbox maker Jrummy

https://play.google.com/store/apps/details?id=com.jrummy.apps.build.prop.editor

-Swipe Pad (thanks Naddict) make a easy to launch multitask launcher from anywhere a shortcut to Developer Options (great for aosp Hwoverlay))

https://play.google.com/store/apps/details?id=mobi.conduction.swipepad.android

-Known Wakelocks thread (Thanks T. J. Bender)

http://xdaforums.com/showthread.php?p=31974989

-DS Battery Saver Pro (manage radios like juice defender with less overhead) (thanks for the link AdamDelozier)

http://xdaforums.com/showthread.php?p=35046431

-Battery Review Thread including extended batteries (Thanks Rlatjs17)

http://xdaforums.com/showthread.php?p=30478980

-Fast Reboot (closes/restarts apps and services similar to rebooting without a reboot)

https://play.google.com/store/apps/details?id=com.greatbytes.fastreboot&hl=en

-Better Batter Stats (track all forms of wake locks) (Thanks Sven Knispel)

https://play.google.com/store/apps/details?id=com.asksven.betterbatterystats

-Carat (track and discover battery drain prone apps)

https://play.google.com/store/apps/details?id=edu.berkeley.cs.amplab.carat.android

-Seeder 2.0.0b1 (Thanks Lambgx02)

http://xdaforums.com/showthread.php?p=592

-Cpu Spy (check used mhz and deep sleep usage) (Thanks Brandon Valosek)

https://play.google.com/store/apps/details?id=com.bvalosek.cpuspy

-Universal Initd Support APK (Thanks RyuInferno) (enable check for initd support)

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

-Lag Fix(fs-trim) (use trim to trim blocks labeled deleted from storage where blocks are still full) (thanks AuxLV)

http://xdaforums.com/showpost.php?p=37029420&postcount=122

-CrossBreeder Combo MOD (combines three discussed entropy lag/lockup tweaks)

http://xdaforums.com/showthread.php?p=37062006

-Flashable Recoveries (please thank Naddict for this amazing resource)

http://xdaforums.com/showthread.php?p=35741601

President of {Team Kernelizers}

Im Gman and I approve this message