yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
☆☆[ZIP] [GUIDE] NOTE 4 - KERNEL Profiles and Tweaks [Simple, Easy] [5 Jan] ☆

NOTE 4 Snapdragon Kernel-Tweaks​

*Post 4 Updated with profiles zip , but don't forget to read :P

Hello fellow Note 4 users and all other who have a device with a Snapdragon 805 SoC , Ever since I made the Nameless Optimizer for our Nameless ROM , there was a lot of requests for making it available for all ROMs , I wish to express here that such a thing is impossible without modding the whole ROM , but I'll guide you to use some important tweaks that would make a DIFFERENCE

CONTENTS

1. Introduction and Credits

2. The Guide

3. The tweaks

4. Profiles zip (NEW)

5. RAM Manager (*NEW)

6. Troubleshooting and FAQ ​

Optimizing the CPU

I am sure you have always wondered whether it is possible to have a better battery life without sacrificing performance ,

I won't say its magically possible to get 10 hrs sot with ultra-heavy usage...

But if you follow this guide carefully/use these profiles it would much better than what u have ever had on your Note 4

Contributors

[MENTION=6773050]Senthil360[/MENTION]

Google+ : Find Me Here

My sincere thanks to

[MENTION=2875091]Crimsonthunder[/MENTION] for adding things in kernel and helping me,

[MENTION=4824728]Pafcholini[/MENTION] for that incredible touchboost option , and lot of other helps

[MENTION=4401403]friedrich420[/MENTION] for AEL kernel

[MENTION=4804849]psyntific[/MENTION] and [MENTION=4751327]F4uzan[/MENTION] for testing the values

and my whole Nameless Team

Note to users : Be helpful to each other , use this thread as an opportunity to enhance your knowledge in kernel tweaks, I sincerely expect this thread to be filled with any/all sorts of tweaking doubts , so before posting something, kindly hit the search button
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
The Tweaks ​

Required app : Kernel Adiutor (special build for Note 4 by [MENTION=4824728]Pafcholini[/MENTION])

Find it here :

https://mega.nz/#!JgMjBLab!m1Hgm0S0Xs-YqN5PM5wkmREndb_QsLsNLH66yzo3bj0

☆ 1. Interactive based -performance and battery

Hotplug tweak

* Disable all other hotplugs

*Enable MSM Mpdecision Hotplug (at bottom)

* Minimum CPU online = 2

* Maximum CPU online = 4

* Max Cores Screen-off = 1

* Idle Frequency = 960 Mhz

* Start delay = 5000 ms or lesser

* Delay = 75

Interactive tweak

Follow the same order while tweaking and do exactly as described , otherwise it won't work

* Set governor to Interactive

* Disable scheduled workqueues

*Disable cpu-boost unless absolutely necessary

Open governor tunables and change the following

*(Note for Emotion users) If bk_locked is 1 change it to 0 before tweaking and then for making the new values stick change it back to 1

* boostpulse_duration = 80000

* go_hispeed_load = 95

* hispeed_freq = 499200

* input_boost_freq = 960000

* min_sample_time = 100000

** target_loads = 98 422400:15 729600:30 1190400:35 1344000:40 1497600:55 1574400:60 1651200:65 1728000:75 1958400:85 2035200:90 2265600:95 2496000:98

(just copy paste lol)

* Now above_hispeed_delay = 20000 1497600:40000 1728000:30000 1958400:30000 2035200:15000 2265600:20000

== If above_hi_speed_delay does not stick copy and paste these values in /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay , save the file and change its permission to 444 to prevent overriding

CPU Voltage tweak

* Decrease global offset by 40 mV (Minus 40 mV)

==========================​

Other recommendations

* Intellithermal ON (for gamers)

* I/O scheduler cfq

* KSM OFF (u really don't need this :P)

* Software CRC control OFF

That's it for now so simple right , more guides technical info will be added later
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Even though my intention was to teach you and help people to make thier own tweaks, its proving to be difficult for few or some don't have much time

So now I share my profiles as a falshable zip , you can use it , as it is or as a base to make your own settings , somehow I hope this will be helpful to all the users. Good luck

1. Marshmallow

2. Lollipop

MM kernel based ​

PROFILES-V4 Stable​

Release date : 12 / Jun / 2016

These profiles were tested on

* Nameless Kernel 1.2 MM edition

Download here

Spoiler content hidden.

LP kernel based ​

PROFILES-V3​

​

Release date : 06 /Feb/2016

These profiles were tested on

* AEL 8.4

*Emotion RC23 & 24

*Nameless V7

Download here and flash from recovery

https://www.androidfilehost.com/?fid=24399994186369309

PROFILES-V2 Stable​

Release date : 18 /Jan /2016

These profiles were tested on

* AEL 8.2

*Emotion RC23 and 24 betas

*Nameless V7.0

Download here and flash from recovery

https://www.androidfilehost.com/?fid=24369303960687778

PROFILES-V1 Stable​

Release date : 05 / Jan / 2016

These profiles were tested on

* AEL 8.1

*Emotion RC23

*Nameless V6.0

Download here and flash from recovery

https://mega.nz/#!V9M0kDCI!yc8T4T7-S5BoDwTaboYtODkWn4sdRrLxHUIRLTD5eBQ

The profiles here have few additional codes for settings that are not available in UI of Kernel adiutor , so for full functionality apply after each boot manually. For those who are wondering if these profiles are just the result of changing few settings like governor , hotplug . Its not that and in reality its much more complex, It involves things such as ,

*Going through committ changes of each kernel to make best use of the available features.

*Calculating tunables for governors ,I/O schedulers ,Hotplugs based on the complex algorithms ,formulas that govern them

*Applying these knowledge for our device considering the real-time usage and the interaction between Cpu,hotplugs,schedulers,VM,LMK ,/proc/sys values /sys/module and a lot of other things.

What you see in app is just what the app allows you to see :D

*Setting up tasker for set on boot :- http://xdaforums.com/showpost.php?p=64875576&postcount=261
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
* Setting up tasker to apply profiles on boot : http://xdaforums.com/showpost.php?p=64875576&postcount=261

* Cannot add or delete Profiles? Follow this : http://xdaforums.com/showthread.php?p=64954992

* App Crashes or lag builds up , check this : http://xdaforums.com/showpost.php?p=64991257&postcount=350

* Further reading (deeper stuff) : http://xdaforums.com/showpost.php?p=64622626&postcount=35
[Galaxy Note 4 Android Development (Snapdragon)] ninjabadger:
I've failed at the first hurdle. I don't get the MSM mpdescision hotplug option.

Update. Doh. On nameless kernel. Sorry.
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Oops , NL kernel with msm_mpdecision is coming soon ?? , right now this guide is applicable with Emotion and AEL kernel ?
[Galaxy Note 4 Android Development (Snapdragon)] Paget96:
Nice thread and well organised :D
[Galaxy Note 4 Android Development (Snapdragon)] kalaishere:
Semma Post bro :good:

May I know which ROM , kernel , bootloader , modem combo is best for battery backup (N910G) ?

I wanna try ur kernel adiutor settings in it.. :victory:

I'm not able to find emotion and AEL kernel for our N910G 5.1.1 .. where can I get it bro? :confused:

https://www.mediafire.com/folder/rvxdm018fdm1o/EMOTION_KERNELS_NOTE4#dsxr7ruz9p0ub
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Thanks bro.

Correct link than,

The 5.1.1 910F kernel will also work on 910G , ?? ,
[Galaxy Note 4 Android Development (Snapdragon)] Wise.Guy:
The link you provided in the 3rd post for Kernel Adiutor for Note 4 doesn't work

http://"https://mega.nz/#!JgMjBLab!m...sNLH66yzo3bj0"
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Thanks for the tip bro ,updated . Check now
[Galaxy Note 4 Android Development (Snapdragon)] Wise.Guy:
It's ok now. Thank you
[Galaxy Note 4 Android Development (Snapdragon)] b.eslabon:
[MENTION=6773050]Senthil360[/MENTION] can you provide kernel backup settings and share it with us? it will be easier to restore your backup so we can test.

if you have time, please provide backup settings for the 2 kernels below (either from synapse or kernel auditor)

-emotion r23 rc1

-ael v8.1 multivariant

thank you! i love to try your kernel settings ?
[Galaxy Note 4 Android Development (Snapdragon)] jammerz:
Dealte.
[Galaxy Note 4 Android Development (Snapdragon)] ninjabadger:
Whenever I downloaded the emotion kernel it changes from a .zip to a .jar

Anyone else get that?
[Galaxy Note 4 Android Development (Snapdragon)] b.eslabon:
yeah. you have to use firefox or use pc to download.
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
No no bro , see that's the whole point , I want the users to be individualistic and i want you to help do these things on your own , Its very simple to follow and its been tested and approved , I hope that every bit of time you take to do this will certainly be useful and I cannot provide ready-made things outside Nameless now bro.
[Galaxy Note 4 Android Development (Snapdragon)] b.eslabon:
no problem bro ? i got your point. im just suggesting for easier ways tho ;)

when you say interactive governor, it includes all the governor which are based on interactive such as interactive pro, intelliactive, etc
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
I get 6.30 to 7.15 with Balanced profile and 1 hour of asphalt , no amplify, only greenify and i have like 7 or 8 takser profiles to manage according to situation , like if music is playing and screen off or when battery is below 20% Battery profile will be on :D
[Galaxy Note 4 Android Development (Snapdragon)] :
3h 48m screen time in 11h30m use and 50% free battery..

Emotion kernel, battery profile with 268Mhz min freq, greenify+amplify+power nap

Kyubi sdx, Debloated by me. Brightness auto 50%, 1 hour serfing with dolphin, no game.

It wouldn't have happened without Senthil360 threat.. (first time I used kyubi rom i didn't have 3.5h screen in 12h)

Thanks again.
[Galaxy Note 4 Android Development (Snapdragon)] vivrosh:
Ael 8.3 drops
[Galaxy Note 4 Android Development (Snapdragon)] Benny Bosser:
Yeah keeping up with Fried the master will be a hard job [emoji14]
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
D*mn ??, AEL 8.3 , now only 8.2 for u:D
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Ok anyhow, V2 stable is ready , NL kernel V7 will be out soon, same thing about Emotion rc24 ,

PROFILES V2 - CHANGELOG​

*Much more Cleaner and meaner codes

*Removed overriding errors such as 2 hotplugs as far as I tested

*Made I/O scheduler tweaks universal ,i.e. across all partitions

*Added newer VM tweaks

*Modded cgroup memory swappiness

Profile Battery

*Reduced Music Playback frequency

*UV disabled (due to complaints of black screen of death)

*Intelliplug - Reduced Max cores online to 1

*I/O Scheduler - ROW set for all partitions

- All ROW values reworked from hp_read_quantum to read_idle_frequency

*VMdirty_writeback_centisecs set to 3000

*Changed kernel/rendom read write values

*Modded Vfs cache pressure

*VM Tweaks added

*LMK set to default

**And all other countless tweaks of V1 included

Profile Balanced

*Lionheart governor tweaked for Emotion and NL with Intelliplug

*Tripndroid used for AEL with Alucard

*CPU boost disabled

*UV removed (change if unstable)

*I/O scheduler set to ROW (fully modded)

*LMK set to Multitasking

**And all other countless tweaks of V1 included

Profile Performance

*Changed governor to blu_active

*Changed hispeed_freq

*Disabled CPU Boost

*Hotplug delay reduced by 2000ms in MSM MP_DECISION hotplug

*I/O Scheduler - Set to FIOPS for all partitions

*FIOPS read-scale increased to 5

*LMK set to balanced

*Changed Above_hi_speed_delay value as suggested by friend [MENTION=4603148]Pho3n!X[/MENTION]

Profile Gaming

*Enabled CPU boost

*Hotplug set to MSM_MPDECISION (modded)

*Enabled core control

*GPU Max frequency set at 700Mhz

*I/O Scheduler - Set to FIOPS for all partitions

*FIOPS read-scale increased to 5

*LMK set to Balanced

*Kernel read-ahead and write increased

==Actually I have modded different things for different kernels, so this is not the complete changelog ,so tiring to type more than this...

STATUS :- Testing
[Galaxy Note 4 Android Development (Snapdragon)] yz999zz:
Great job, I've never got a such optimized kernel! Battery life is infinite and performances are stunning!

Thank you, seems like I've got a next generation phone! Tried yesterday the battery profile (v1) and I've got 7.12 hours SOT with 18% of fuel remaining!

Waiting for V2 final...
[Galaxy Note 4 Android Development (Snapdragon)] kevje1406:
Will the profiles v2 also work on ael kernel 8.3?

Verstuurd vanaf mijn SM-N920C met Tapatalk
[Galaxy Note 4 Android Development (Snapdragon)] qubanaso:
I believe V2 is a beta for emotion only no??
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
No read 2 posts above , final V2 is being tested and will have profiles for NL , AEL and Emotion,

Yup ,it should.

Awesome :win: :win:
[Galaxy Note 4 Android Development (Snapdragon)] insanedeath44:
How do u load this profiles with kernel aditour? Thanks
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Read post 4 , flash the zip and they will show up in kernel adiutor ,

Reading is very important in this thread, atleast reading posts on page 1 shouldn't be that tough
[Galaxy Note 4 Android Development (Snapdragon)] WinJunkie:
Great work :) Can't Wait....
[Galaxy Note 4 Android Development (Snapdragon)] :
Perhaps 2 versions would be better if it isn't much trouble .. One with stock voltages, and one like before as most of us didn't have problem and we will undervolt again..

If stock voltages is all just - 50, then no problem.. We can do it in 1 sec by ourselves. But if for every frequency is different adjustment, it would be good the 2 versions.
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Yes right now I am doing more experiments with voltages, Undervolt should be done without leaks , its needs much experiments and time consuming , let's hope it turns out ok
[Galaxy Note 4 Android Development (Snapdragon)] :
Every cpu is different. Whatever you try, some cpu will have problems probably.

I think a lebel with red color "If you have reboots, stuck etc increase voltages to this values" would be ok.

After all this threat isn't supposed to be readen by newbie.. :)
[Galaxy Note 4 Android Development (Snapdragon)] Benny Bosser:
Hey, I've been setting up some tasker profiles to switch between your kernel profiles ? I was wondering if you would be willing to allow editing/copying your settings. I love the double tap to wake/sleep function, but since they're not enabled in the profiles, you have to enable those manually upon every switch by tasker. Would be great if I could just edit the profile in order to enable them automatically ?

Great work in either case my friend!
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Ofcourse u can edit to ur willingness , not a problem at all , Creativity is the first thing we need , don't hold back. :D , I guess the profiles are non editable now , so I'll include a fix in v2 to fix that.
[Galaxy Note 4 Android Development (Snapdragon)] infernicc:
Hi, how can we use these settings along with skynet or LSpeed?

Odoslané z SM-N920C pomocou Tapatalku
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
No kernel tweaks are much much more powerful and I recommend u to stick with this, because most of the things set by those scripts are added in the profiles and each device is special that's why I suggest people to find the best solutions rather than the universal tweaks , some tweaks are helpful but use at ur own risk because it interferes with my profile settings, such as VM , Entropy , Z-Ram , KSM ,

But if your scripts change more values inside /proc/sys , then no point in using profiles..

Ok let me expand... , the tweaks made in profiles are done with careful calculations based on algorithms and the formulas that govern them ,

One small example, out of many; Take the deadline I/O scheduler , one of the easier ones , still it has tons of formulas, for deadline scheduling it uses EDF [1] algorithm , for scheduling tasks across different cores it uses CBS Algorithms, and these algorithms in turn are dependent on files inside /proc/sys which are modified by these scripts , how they modify? Purely based on personal experience and definition-reading stuff (this means NOT real tweaking that involves the calculation, algirothm and limitations for cpu's and disks) Blind tweaks are done and values are changed here ,

But I do not agree with this approach , because every device is different and especially the ouput of the formulas vary heavily in multi-core cpus , the details are too much to discuss here..

So my opinion, if you are either new to android or afraid of tweaking stuff start with scripts they are the easiest and give you an idea , but with a note 4 and these hardcore custom kernels you cannot settle there (no offense)
[Galaxy Note 4 Android Development (Snapdragon)] yz999zz:
[MENTION=6773050]Senthil360[/MENTION]: today for the first time after three days with no issues I cannot wake up from standby using profile V2 balanced.

Now I set CPU voltage to 660mV (at 300mhz) instead of 650mV to see if it happens again.
[Galaxy Note 4 Android Development (Snapdragon)] infernicc:
Thank you for your describtion, I will uninstall skynet then. And for LSpeed can you provide here best settings for our device which will be working allong with your tweaks? Thanks

Odoslané z SM-N920C pomocou Tapatalku
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
If it keeps happening, then remove set on boot for CPU voltages and reboot to get back stock voltages.
[Galaxy Note 4 Android Development (Snapdragon)] AMunozXS:
Do we restart after applying desired profile?

For me atm would be emotion battery

Thanks
[Galaxy Note 4 Android Development (Snapdragon)] AlexanderBlaQ:
No you do need to click all the apply at boot options tho to save it
[Galaxy Note 4 Android Development (Snapdragon)] AMunozXS:
So its either apply at boot for all options or applying the profile at every boot right?
[Galaxy Note 4 Android Development (Snapdragon)] Benny Bosser:
No need for reboot, I've been switching profiles based on location with tasker without any problems ?
[Galaxy Note 4 Android Development (Snapdragon)] AlexanderBlaQ:
Correct
[Galaxy Note 4 Android Development (Snapdragon)] AMunozXS:
Thank you for quick reply!

---------- Post added at 10:37 PM ---------- Previous post was at 10:36 PM ----------

Thank you Alexander! I think i will apply set on boot option for balance profile an just used other profiles as needed. Thank you once again
[Galaxy Note 4 Android Development (Snapdragon)] kalaishere:
Battery drop after installing xmod

after installing XMOD games app.. battery life reduced from 5hrs 15min SOT to 4hrs 30mins..

I can see that the battery is dropping on standby as well..

What could be the issue?

For ur info, xmod is hibernated all the time using greenify..

3 battery cycle without xmod, I got more than 5hrs 15mins SOT.. 0% battery drop in standby..

2 battery cycle with xmod, I got less than 4hrs 30mins SOT.. battery drops even on standby even though xmod is hibernated.

Nameless ROM v5, Nameless kernel v6, N/L Balanced Profile..
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
As I have mentioned in post 2 , this is not a place to discuss the drain caused by apps or modules ,and from your reports its clear that the profiles or kernel has nothing to do with this. Let's Stay On Topic,

There are infinitum of threads here in XDA discussing wakelocks , amplify, powernap .. U can take a look there
[Galaxy Note 4 Android Development (Snapdragon)] Maurizio1953:
Are these kernel tweaks useful also for snapdragon note 3?
[Galaxy Note 4 Android Development (Snapdragon)] infernicc:
No, because its different device.

Odoslané z SM-N920C pomocou Tapatalku

---------- Post added at 09:15 PM ---------- Previous post was at 09:09 PM ----------

What do you think Senthil360 are these settings safe allong with these tweaks or what to enable/disable

thanks

Odoslané z SM-N920C pomocou Tapatalku
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Come on man I don't want to give a thesis about everything here , u are still asking me what to enable even after I explained you all those stuff , In short drop the scripts.. or you should find that yourself.

I'm not being rude , but I just don't know how to get it through to you mate
[Galaxy Note 4 Android Development (Snapdragon)] infernicc:
I understand to you but you said that some settings are good, I only want best possible experience nothing else. But OK then, I will uninstall LSpeed. again...thanks for you explaining.

regards

Odoslané z SM-N920C pomocou Tapatalku
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Yeah some tweaks are good , infact I am also member of the L-Speed dev team and infact we make values and tweaks there aimed for all devices but these profiles have much effect since they are specific for note 4 and are handpicked
[Galaxy Note 4 Android Development (Snapdragon)] lazer9:
Ok I have taken Lspeed out of the equation based on the talk and obvious conflict.

I have been on (Beta v2-emotion) per OP4 and having very random reboots. First I tried the suggestion of raising just the 300mhz +10, reboots persisted. I have now made a "Global" +10 using the middle profile (I believe balanced) and have not had a reboot since but still testing = been less than a day.

Have noticed a bit more battery drain now (after uninstall of Lspeed and/or +10 global voltage change) although I have streamed Pandora a bit more today.

Curious if I ended up close to stock voltage now? I know in the past on AEL & Synapse, I could undervolt - 25 max without issue :o
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
V2 Final will be here in a day or two and it will be rock solid :D , good and lemme know if u face any odd behaviour.
[Galaxy Note 4 Android Development (Snapdragon)] lazer9:
Thanks for quick response & looking forward to the stable! Here is where my voltage is currently. (stupid xda app doesn't let you "edit" to attach an image. Lol
[Galaxy Note 4 Android Development (Snapdragon)] AlbGol:
In the screenshots below u have my rom info and kernel info. On performance profile with no restrictions wanam and exposed with 7 modules running at all times. Very happy, and I love the screen color to. Thanks for your work!

Looking forward to future improvement and updates. Thank you again
[Galaxy Note 4 Android Development (Snapdragon)] AlbGol:
Screenshots:
[Galaxy Note 4 Android Development (Snapdragon)] AlexanderBlaQ:
OK so for some reason when I set lmk values even after I check apply at boot the values Change after a reboot any advice on how to fix this? I'm on tek HD rom dok2 5.1.1 full root running the newest r23emotion emotion kernel
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
The V2 of profiles will be uploaded in the next 24 or 48 hours, , then after that probably for v3 I will concentrate on some specific things regarding CPU and schedulers
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Change the delay in settings to 20 secs , the kernel's boot process might be overwriting the LMK but anyway doesn't happen to me on Emotion kernel
[Galaxy Note 4 Android Development (Snapdragon)] AlexanderBlaQ:
OK thanks I'll give that a shot
[Galaxy Note 4 Android Development (Snapdragon)] SamuelBegui:
I'm going to test emotion v2 and I'll post my battery life, stats, etc. ;) if that helps
[Galaxy Note 4 Android Development (Snapdragon)] AMunozXS:
Thank you for all you do for us!
[Galaxy Note 4 Android Development (Snapdragon)] :
I think playstore, or last beta version, don't keep the setting at start, and you have to select it every time.

I installed 09923 above version here and had this problem..

Now i installed special version from here above the previous but still have same problem, so i suggest use the special from here..