[Galaxy Note II Android Development] mat9v:
PLEASE - if you are using any TW rom, find the way to disable DVFS (using Wanam Xposed - in Advanced settings for example) because it will cause problems with my UV scripts as they modify the same setting that Samsung modifies on the fly and DVFS WILL overwrite what I set in script.

Also before you Overclock / Undervolt:

For maximum stability I would suggest eliminating common "instability makers" in our phones. It is best to combine bootloaders, modems and system software from the same release. For N7100 users I suggest upgrading bootloader to MJ5 as it grants use of WiFi without any patches while being "downgrade friendly" meaning you can downgrade to TW 4.1.2 without KNOX hassle.

Along with this, MJ5 modem works great in most of Europe, Phoenix 16.7 while from ML3 release still works great with that combination. With that combination, you will have the most stable base to start overclocking / undervolting experience - aside from OC/UV experiments I have not had any FC or freeze for close to a month now. Now as for the KK roms, only newer Agni and Nadia kernels support this system, they are compatible with MJ5 bootloader (downgrade friendly) or ND3 (if you don't care about KNOX and want to charge battery with phone off).

The latest version of my scripts is V7 (V8 for Nadia).

And the screenshots of what performance you can expect out of my scripts (made with 1920_733_highUV script)

Here are the results of UV combined with ABB manipulations - up to 12 hours on 1% of battery - night time idle use.

Quick changelog for V7:

- split the script into 2 parts (S99mat9v and T99mat9v) to correctly apply all undervolting settings, they weren't before

- changed caching to compressed zswap

- modified system cache pressure (swappiness)

- set SD memory cache smaller as all test indicate that FIOPS scheduler perform better with that setting

- undervolting and stability of the scripts should be much better now because all my settings are correctly recognized by system

- preliminary work done for future support for Agni kernel

Quick changelog for Nadia V8 scripts:

- changed audio engine config to follow kernel changes (boeffla to wolfson)

- reenabled touchboost (since kernel supports it)

- changed ABB and voltage settings for longer battery life

- scripts now work correctly with latest kernel releases (support for 2Ghz added in scripts)

For all those searching for ultra smooth experience at the cost of some battery I have created additional ultra smooth addon. Available for download at the bottom of this post.

DISCLAIMER: Although it is of very low probability that the use of my scripts will result in broken hardware, it may so happen because any overclocking accelerates aging of CPU and may in time break said CPU (or GPU for that matter). I take no responsibility for that. Also remember to backup your data (and whole rom if possible) because too much overclocking and/or undervolting may result in data loss and errors on partitions that may make your system unbootable.

There is a flashable script that removes my OC/UV script from your system called "mat9v_overclock_remove", use it if you want to get rid of my meddling :)

Every script also deletes an old version of my script before flashing a new one so you can just flash one over the other to find a perfect one for you.

There are 4 flavors of them:

- geared for overclocking by any means necessary, fast performance while not caring about battery too much.

- middle ground of overclocking while taking care of battery.

- stock clocks and as much battery as possible while not letting performance suffer too much.

- battery by any means necessary, even if it impacts performance - no overclocking.

A little bit of terminology first so you can decipher the script name and find the one for you.

Low - low undervolting means less undervolting, worse battery life but better chance of stability - not every phone can tolerate a lot of UV.

Mid - medium undervolting.

High - high undervolting.

Max - maximum undervolting, best battery but many phones will not work with it.

OC and noOC - differentiates between versions with and without overclocking.

UC - underclocked - represents best battery at the cost of performance.

UV and noUV - this time between undervolting and no undervolting.

1200, 1600, 1800, 1920 and 2000 - these are CPU overclocking values.

400, 533, 666, 733 and 800 - these are GPU overclocking values.

Important - as I have an ASV1 phone, all scripts are optimized for this CPU quality run, as such I am unable to test stability of ASV 0, 2 and 3 phones (and they do differ a lot)

ASV version can be found by going to /sys/devices/system/abb and viewing the content of file abb_info

Based on that you can suspect the level of OC and UV your phone will be able to achieve.

ASV 0 being the worst - least OC potential and not a lot of UV

ASV 3 being the best - in most cases will take 2000Mhz and decent amount of UV

For reference - older script versions are in THIS POST

WARNING - max scripts have now even lower voltages so pleas if you used max script before and now it is not working, try high script before posting problems.

Below scripts are created for Devil kernel (Agni version is further below).

First - geared for battery with underclocking:

Script_UC_1200_400 - V7 - noUV.zip - special version created for stability reason without any undervolting.

Script_UC_1200_400 - V7 - low_UV.zip

Script_UC_1200_400 - V7 - mid_UV.zip

Script_UC_1200_400 - V7 - high_UV.zip

Script_UC_1200_400 - V7 - max_UV.zip

Second - still geared for battery but with standard clocks:

Script_noOC_1600_533 - V7 - noUV.zip - special version created for stability reason without any undervolting.

Script_noOC_1600_533 - V7 - low_UV.zip

Script_noOC_1600_533 - V7 - mid_UV.zip

Script_noOC_1600_533 - V7 - high_UV.zip

Script_noOC_1600_533 - V7 - max_UV.zip

Third - medium overclock on both CPU and GPU:

Script_OC_1800_666 - V7 - noUV.zip - special version created for stability reason without any undervolting.

Script_OC_1800_666 - V7 - low_UV.zip

Script_OC_1800_666 - V7 - mid_UV.zip

Script_OC_1800_666 - V7 - high_UV.zip

Script_OC_1800_666 - V7 - max_UV.zip

Fourth - medium overclock on CPU and high for GPU (for games?):

Script_OC_1800_733 - V7 - noUV.zip - special version created for stability reason without any undervolting.

Script_OC_1800_733 - V7 - low_UV.zip

Script_OC_1800_733 - V7 - mid_UV.zip

Script_OC_1800_733 - V7 - high_UV.zip

Script_OC_1800_733 - V7 - max_UV.zip

Fifth - By popular demand - strong CPU overclock without GPU overclock:

Script_OC_1920_533 - V7 - noUV.zip

Script_OC_1920_533 - V7 - low_UV.zip

Script_OC_1920_533 - V7 - mid_UV.zip

Script_OC_1920_533 - V7 - high_UV.zip

Script_OC_1920_533 - V7 - max_UV.zip

Sixth - strong overclock on CPU and medium on GPU (www and general use?):

Script_OC_1920_666 - V7 - noUV - special version created for stability reason without any undervolting.

Script_OC_1920_666 - V7 - low_UV.zip

Script_OC_1920_666 - V7 - mid_UV.zip

Script_OC_1920_666 - V7 - high_UV.zip

Script_OC_1920_666 - V7 - max_UV.zip

Seventh - strong overclock for both CPU and GPU - there will be no noUV version for this because frankly the phone will overheat so quickly without undervolting that on the whole it will be slower than with less overclocking:

Script_OC_1920_733 - V7 - low_UV.zip

Script_OC_1920_733 - V7 - mid_UV.zip

Script_OC_1920_733 - V7 - high_UV.zip

Script_OC_1920_733 - V7 - max_UV.zip

Eight - this last category is not for those faint of heart :) Maximum overclock and mid to max undervolt - there is no use overclocking that much if you can't ondervolt a lot because overheat protection will quickly force CPU to lower it's clock:

Script_OC_2000_733 - V7 - mid_UV.zip

Script_OC_2000_733 - V7 - high_UV.zip

Script_OC_2000_733 - V7 - max_UV.zip

Script_OC_2000_800 - V7 - mid_UV.zip

Script_OC_2000_800 - V7 - high_UV.zip

Script_OC_2000_800 - V7 - max_UV.zip

Below are scripts created for Agni kernel - they differ from Devil in functionality:

- first because Agni does not support FIOPS scheduler (SIO is used instead)

- second because Agni does not use compressed swap space (I have left it at default 512MB swap, but decreased swappiness from default)

- third because Agni support for color correction differs so much from Devil I had to recreate color settings - still they differ from Devil ones

- last, Agni support Boeffla sound but does not support ScoobyDoo sound so I had to "migrate" settings

- there are few other missing futures, for example touch led control does not work for me so it's missing from the script (maybe xposed is overwriting it somewhere)

First - geared for battery with underclocking:

Script_UC_1200_400 - V7 - noUV.zip - special version created for stability reason without any undervolting.

Script_UC_1200_400 - V7 - low_UV.zip

Script_UC_1200_400 - V7 - mid_UV.zip

Script_UC_1200_400 - V7 - high_UV.zip

Script_UC_1200_400 - V7 - max_UV.zip

Second - still geared for battery but with standard clocks:

Script_noOC_1600_533 - V7 - noUV.zip - special version created for stability reason without any undervolting.

Script_noOC_1600_533 - V7 - low_UV.zip

Script_noOC_1600_533 - V7 - mid_UV.zip

Script_noOC_1600_533 - V7 - high_UV.zip

Script_noOC_1600_533 - V7 - max_UV.zip

Third - medium overclock on both CPU and GPU:

Script_OC_1800_666 - V7 - noUV.zip - special version created for stability reason without any undervolting.

Script_OC_1800_666 - V7 - low_UV.zip

Script_OC_1800_666 - V7 - mid_UV.zip

Script_OC_1800_666 - V7 - high_UV.zip

Script_OC_1800_666 - V7 - max_UV.zip

Fourth - medium overclock on CPU and high for GPU (for games?):

Script_OC_1800_733 - V7 - noUV.zip - special version created for stability reason without any undervolting.

Script_OC_1800_733 - V7 - low_UV.zip

Script_OC_1800_733 - V7 - mid_UV.zip

Script_OC_1800_733 - V7 - high_UV.zip

Script_OC_1800_733 - V7 - max_UV.zip

Fifth - By popular demand - strong CPU overclock without GPU overclock:

Script_OC_1920_533 - V7 - noUV.zip

Script_OC_1920_533 - V7 - low_UV.zip

Script_OC_1920_533 - V7 - mid_UV.zip

Script_OC_1920_533 - V7 - high_UV.zip

Script_OC_1920_533 - V7 - max_UV.zip

Sixth - strong overclock on CPU and medium on GPU (www and general use?):

Script_OC_1920_666 - V7 - noUV - special version created for stability reason without any undervolting.

Script_OC_1920_666 - V7 - low_UV.zip

Script_OC_1920_666 - V7 - mid_UV.zip

Script_OC_1920_666 - V7 - high_UV.zip

Script_OC_1920_666 - V7 - max_UV.zip

Seventh - strong overclock for both CPU and GPU - there will be no noUV version for this because frankly the phone will overheat so quickly without undervolting that on the whole it will be slower than with less overclocking:

Script_OC_1920_733 - V7 - low_UV.zip

Script_OC_1920_733 - V7 - mid_UV.zip

Script_OC_1920_733 - V7 - high_UV.zip

Script_OC_1920_733 - V7 - max_UV.zip

Eight - this last category is not for those faint of heart :) Maximum overclock and mid to max undervolt - there is no use overclocking that much if you can't ondervolt a lot because overheat protection will quickly force CPU to lower it's clock:

Script_OC_2000_733 - V7 - mid_UV.zip

Script_OC_2000_733 - V7 - high_UV.zip

Script_OC_2000_733 - V7 - max_UV.zip

Script_OC_2000_800 - V7 - mid_UV.zip

Script_OC_2000_800 - V7 - high_UV.zip

Script_OC_2000_800 - V7 - max_UV.zip

Below are scripts created for Nadia kernel - for now they differ from others in functionality:

- first because Nadia does not support FIOPS scheduler (SIO is used instead)

- second because Nadia does not use compressed swap space

- third because Nadia currently does not support color correction

- Nadia supports Wolfson sound but directory structure is different

- there are few other missing futures, for example touch led control does not work, touchboost is working now

IMPORTANT: My scripts remove almost all Nadia configuration done in /etc/init.d so to fully remove/revert to original Nadia config you have to reflash Nadia kernel. Consequently, after flashing new Nadia kernel my scripts MUST be reflashed or they will not work correctly.

First - geared for battery with underclocking:

Script_UC_1200_440 - V8 - noUV.zip - special version created for stability reason without any undervolting.

Script_UC_1200_440 - V8 - low_UV.zip

Script_UC_1200_440 - V8 - mid_UV.zip

Script_UC_1200_440 - V8 - high_UV.zip

Script_UC_1200_440 - V8 - max_UV.zip

Second - still geared for battery but with standard clocks:

Script_noOC_1600_533 - V8 - noUV.zip - special version created for stability reason without any undervolting.

Script_noOC_1600_533 - V8 - low_UV.zip

Script_noOC_1600_533 - V8 - mid_UV.zip

Script_noOC_1600_533 - V8 - high_UV.zip

Script_noOC_1600_533 - V8 - max_UV.zip

Third - medium overclock on both CPU and medium to none on GPU:

Script_OC_1800_666 - V8 - noUV.zip - special version created for stability reason without any undervolting.

Script_OC_1800_666 - V8 - low_UV.zip

Script_OC_1800_666 - V8 - mid_UV.zip

Script_OC_1800_666 - V8 - high_UV.zip

Script_OC_1800_666 - V8 - max_UV.zip

Script_OC_1800_533 - V8 - low_UV.zip

Script_OC_1800_533 - V8 - high_UV.zip

Script_OC_1800_533 - V8 - mid_UV.zip

Fourth - medium overclock on CPU and high for GPU (for games?):

Script_OC_1800_733 - V8 - noUV.zip - special version created for stability reason without any undervolting.

Script_OC_1800_733 - V8 - low_UV.zip

Script_OC_1800_733 - V8 - mid_UV.zip

Script_OC_1800_733 - V8 - high_UV.zip

Script_OC_1800_733 - V8 - max_UV.zip

Fifth - By popular demand - strong CPU overclock without GPU overclock:

Script_OC_1920_533 - V8 - noUV.zip

Script_OC_1920_533 - V8 - low_UV.zip

Script_OC_1920_533 - V8 - mid_UV.zip

Script_OC_1920_533 - V8 - high_UV.zip

Script_OC_1920_533 - V8 - max_UV.zip

Sixth - strong overclock on CPU and medium on GPU (www and general use?):

Script_OC_1920_666 - V8 - noUV - special version created for stability reason without any undervolting.

Script_OC_1920_666 - V8 - low_UV.zip

Script_OC_1920_666 - V8 - mid_UV.zip

Script_OC_1920_666 - V8 - high_UV.zip

Script_OC_1920_666 - V8 - max_UV.zip

Seventh - strong overclock for both CPU and GPU - there will be no noUV version for this because frankly the phone will overheat so quickly without undervolting that on the whole it will be slower than with less overclocking:

Script_OC_1920_733 - V8 - low_UV.zip

Script_OC_1920_733 - V8 - mid_UV.zip

Script_OC_1920_733 - V8 - high_UV.zip

Script_OC_1920_733 - V8 - max_UV.zip

The last script removes my meddling from your system

for Devil, Agni and Nadia kernels

:) - new for V7 and V8 versions, remember to re download !!

Overclock_remove.

Ultrasmooth addon remove.

The scripts below MUST be used in addition to my OC scripts above as they only modify governor settings and do not change anything else.

Ultrasmooth script for those using my scripts versions 1200 or 1600Mhz.

Ultrasmooth script for those using my scripts versions 1800 and above.

If for some reason the scripts are not working, meaning there are no changes in maximum CPU speed, sound and color remains the same and so on, it may be possible you are one of the unlucky ones that have a rom that does not correctly execute scripts in /etc/init.d on system startup. In that case your only recourse is to use some app that can execute scripts independent from rom capabilities - fortunately there is such an app in Playstore called SManager. Here is a quick guide on how to use it to start my scripts:

1. Install app

2. Start it.

3. Select to "Browse as root" and grant root access

4. Navigate to /etc/init.d

5. Tap on S99mat9v script

6. Tap on "Su" icon to have it "light up"

7. Tap "Run"

8. Wait about 30 seconds for script output

9. Tap little grey "x" at the top

10. Tap T99mat9v and repeat steps from previous script

11. If present and if you want to do the same with U99mat9v

After few hours of testing and if everything works well, you can also tap on "Boot" icon from step 6

Thats all. If after executing any script the system freezes just reboot and maybe flash some other script version (freezing means your hardware can't cope with that script level).