Wednesday 27 July 2016

Gov-Tuner Project for Android ~ EXPERTS ONLY

2 comments
https://jidecoded.files.wordpress.com/2015/11/wpid-photo1812.jpg

A CPU governor in Android controls how the CPU raises and lowers its frequency in response to the demands the user is placing on their device. Governors are especially important in smartphones and tablets because they have a large impact on the apparent fluidity of the interface and the battery life of the device over a charge.

This mod will configure your governor to have the best experience with more battery, fluidity and smoothness.  

DISCLAIMER
- Your warranty is now void.
- I am not responsible for bricked devices, dead SD cards, corrupted partition, nuclear disasters
- Please do some research before using this mod!
- YOU are choosing to make these modifications,
- If you point the finger at me for messing up your device, I will laugh at you.

FEATURES
- CPU Governor optimizations
- Smoother device with less battery drain
- Improved performance
- Extremely better battery life
- Better standby battery life
- Intelligent frequency ramp up/down
- Less heat, so your device runs cooler

REQUIREMENTS
1. Custom Recovery
2. Root
3. Init.d enabled

INSTALLATION

1. Download flashable zip
2. Flash it from a custom recovery (CWM,TWRP or any other)
3. Enjoy it!

UNINSTALLATION
1. Reboot into recovery
2. Flash the Uninstaller file located at system/etc/govtuner
OR
1. Download the GovTuner uninstaller and flash it 

COMPATIBLE GOVERNORS 
Interactive
Conservative
Yankactive
Intelliactive
Bioshock
Lionfish
Impulse 
Uberdemand 
Electroactive 
IntelliMM 
Barry_Allen 
BluActive 
DanceDance
Lionheart 
PegasusQ 
Ondemand
Smartmax
Optimax
ConservativeX
Interactive_pro
Wheatley
Ondemandplus
Smartmax_eps
Intellidemand
Tripndroid
ElementalX

CHANGELOGS
v1.0
Initial version

v1.1 
Fixed permissions typo
Adjusted some tunables for above_hispeed_delay

v1.2
Fixed installation error for some users
Fixed compatibility with SD810/820 ~ Thanks @F4uzan
Fixes in code

v1.3
Fixed installation 
Fixed permissions
Added Conservative governor
Added Yankactive governor
Added Intelliactive governor
Added Bioshock governor

v1.3.1
Fixed an error in the installation folder

v1.3.2
Fixed a typo which was causing error in terminal emulator

v1.4
Added Lionfish governor

v1.4.1
Added some missings in code
Fixed Lionfish governor

v1.5
Tweaks updated for conservative based governors
Tweaks updated for interactive based governors
Added Impulse governor
Added Uberdemand governor
Added Electroactive governor
Added IntelliMM governor
Added Barry_Allen governor
Added BluActive governor
Added DanceDance governor
Added Lionheart governor
Added PegasusQ governor

v1.5.1
Code fixes and optimizations
Permissions fixed in updater-script
Added Ondemand governor
Added Smartmax governor
Added Optimax governor
Added ConservativeX governor
Added Interactive_pro governor

Added Source Code to the main post: https://github.com/Debuffer-XDA/Gov-Tuner

v1.5.2
Fixed installation error

v1.5.3
A huge code optimization. This should fix a lot of bugs in installation and script running. This is a really important update.
Some fixes in some governors.

v1.5.4
Added Wheatley governor
Added Ondemandplus governor
Added Smartmax_eps governor
Added Intellidemand governor
Added Tripndroid governor

Starting now we are reducing the number of governor additions and we are focusing on code optimizations and tuning the already built-in governors. This does not means you have to stop requesting for governors compatibility, this only means that we are now more focused in optimizating and improving the governors we have added, since they are the most usual and common governors in custom kernels.
Governor requests, ideas, suggestions or any other kind of requests are still and always welcome. Every kind of help or suggestion to improve the mod will be really appreciated.

v1.5.5
Code bug fixed -- this fixes the terminal emulator bug.

STABLE
All bugs fixed
All the changes above (from 1.0 to 1.5.5)

v2.0
The changes in tunables aren't specific to one or other governor, they are made at all governors which contain the mentioned tunable.

Fixed installation errors
Fixed terminal emulator apply errors
Tweaked up_threshold_any_cpu_load
Tweaked up_threshold_min_freq
Tweaked up_threshold

v2.0.1
Fixes in code which was preventing the properly apply on terminal emulator.


v2.0.3.1
Fixed a bug in Interactive code.

v.2.0.3
Fixed target_loads blocking the minimum freq usage.

v2.0.2
Modified parameters:
Target_loads
min_sample_time
up_sample_time
two_phase_freq
up_threshold_any_cpu_load

v2.0.4.2
If you are encountering error in v2.0.4.1 try this version. Here is another fix.

v2.0.4.1
DEFINETLY FIXED THIS FREAKING ERROR

v2.0.4
• Reworked parameters for all Interactive governor based governors. This changes worked perfectly for me and my testers. The device is way smoother than before. Please, feedback about it so I can have an idea of what should I do.
• Minor changes in Ondemand based governors.


v2.0.5
Forgot to change version number to 2.0.5, Terminal Emulator says 2.0.4.3 but that's 2.0.5 version.
Busybox introduced in the flashable zip
Code optimizations
More interactive user interface
No more "No such files or directory" error

v2.0.5.1
Updated busybox
Fixed IntelliMM governor

v2.0.5.2
Fixed code error

GovTuner uninstaller updated. Thanks to @Tenigima

v.2.0.6
Fixed barry_allen governor
Completely reworked target loads
Increased sampling rate min
Increased sampling rate
Increased up threshold any cpu load
Increased up threshold any cpu freq
Improved timer slack
Decreased min sample time
Increased above hispeed delay
Changed io is busy to 1 for testing purposes
Decresed two phase freq

Added an User Interface. Now GovTuner is more interactive with the user.
Added profiles.
GovTuner now is based on the user needs. It has 3 profiles (battery, balanced and performance). Each profile has different governor tunables for it's own purpose. READ POST #3 CAREFULLY TO UNDERSTAND THE NEW METHOD TO USE THE MOD

Reformulated all the interactive based governors. Now the up/down scaling is way more dynamic and smart. This new dynamic scaling is more efficient saving power.
Improved all conservative based governors.
Improved and reworked all ondemand based governors.
Added uninstaller inside the GovTuner zip. To uninstall from TWRP you just need to go in system/etc/GovTuner and flash the uninstaller.

v2.2.0
Fixed Bluactive/Blu_active governor in balanced profile
Improved the above_hispeed_delay in interactive based governors for balanced profile
Improved the above_hispeed_delay in interactive based governors for battery profile
Improved the above_hispeed_delay in interactive based governors for performance profile
Improved target_loads in interactive based governors for balanced profile
Improved target_loads in interactive based governors for battery profile
Improved target_loads in interactive based governors for performance profile
Improved go_hispeed_load in interactive based governors for performance profile
Improved two_phase_freq for the compatible governors for balanced profile
Improved two_phase_freq for the compatible governors for battery profile
Improved two_phase_freq for the compatible governors for  performance profile
Updated the profile application message. Now it says which profile is activated when you do the tune command.

v2.2.1
 Fixed balanced profile not deleting performance profile from init.d

v2.3.0
Thread reorganized. Please, read carefully every detail.

ElementalX governor added
Tweaked every governors and every profiles to be more efficient for it purposes.
Battery profile governors tweaked to spend less time at medium/high frequencies and ramp down faster
Battery profile was heavily tweaked to be even more power saver.
Balanced profile governors scaling up/down reworked to be more efficient
Balanced profile slightly tweaked to spend less time at high frequencies
Balanced profile heavily tweaked to ramp down faster
Balanced profile more "intelligent" ramping frequencies. 
Performance profile governors tweaked to be more aggressive ramping down
Performance profile governors tweaked to use very high frequencies (over 2.000.000) less often since it's just a drain for battery without any real improvement in performance from the frequencies between 1.700.000 and 2.000.000
Reduced the time spent in terminal emulator user interface to apply the profiles faster

2.4.0
Added terminal emulator changelogs
Code optimizations
Battery profile above hispeed delay updated
Battery profile target loads updated
Balanced profile above hispeed delay updated
Balanced profile target loads updated

The changes in 2.4.0 made all interactive based governors run smoother
without any change in the frequencies used. The battery will have
the same performance as it had in the previous version

2.4.1
Fixed error applying GovTuner

HOW TO USE
After the flash, go into Terminal emulator and type the following
Code:
su
govtuner
After that, select one of the present profiles to enable the tweaks for your governor.

If you change your governor but still want to use the same profile, you don't need to do all over again. Just go into Terminal emulator and type:
Code:
su
tune
So basically:
Code:
govtuner: Command to choose a profile to use govtuner tweaks.
tune: Command to apply the tweaks from the selected profile.

FAQ
Q: What does this mod do?
A: This mod tweak the Governor tunables from your CPU governor to optimize the way it scales up/down to make it more effective. With this optimization your device will be smooth without all the drain caused by the stock governor configurations.

Q: Will this mod mess with my device frequencies?
A: No, it won't mess with your device frequencies.

Q: How can I change my governor?
A: You'd need to use a kernel manager app like Kernel Adiutor (highly recommended), synapse, etc.

Q: Does this mod support my governor?
A: You have to go in the first post and check in the compatible governors.

Q: Do I have to "tune" after each boot?
A: No. The mod is applied in init.d and it'll automatically apply the profile you selected at each boot. If you do change your governor after the boot you'd need to "tune" in terminal emulator.

Q: When do I need to apply "tune"?
A: After changing your governor.

Q: Do i need to apply "tune" after selecting a profile?
A: No, after selecting a profile the mod automatically run the "tune" command.

Q: When do I need to select a profile?
A: When you install the mod for the first time, update it or when you want to change the profile.

Q: Can you add "x" governor?
A: Yes. Send me the governor tunables in private message or Telegram. My name for both is Debuffer.

Q: Is it compatible with my device?
A: Yes. GovTuner is compatible with all android devices. No matter if it's x86, mediatek or anything else, it's compatible.

DOWNLOAD[INSTALLER] : LINK
DOWNLOAD[UNINSTALLER] : LINK

CREDITS : Debuffer

2 comments :

  1. Nice to read your article! I am looking forward to sharing your adventures and experiences. gov method cpa

    ReplyDelete

Powered by Blogger.