yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Generally tasker applies the profile much later than KA , Make sure it is enabled first and for first time I guess it will ask permissions
[Galaxy Note 4 Android Development (Snapdragon)] crash_194:
I'm confused lol, sorry. I just realised taskedr doesn't even need SU permissions does it? I'll keep playing and see how I get on.

I have much less experience than you but I am struggling to see the logic behind using tasker as it appears to actually apply nothing on boot (evident by no screen settings changes being applied until KA kicks in).

If tasker doesn't apply settings on boot and applies the settings after boot, what is it doing that is any different to KA?

It could just be I have my settings messed up I guess!

---------- Post added at 11:30 AM ---------- Previous post was at 11:16 AM ----------

I can see these notification when my device has booted up

So is my understanding correct, tasker needs to run KA during boot to apply the specified kernel settings?

We know it isn't though because KA runs itself and applies it's settings once the device boots?
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Tasker like other apps have boot receiver service , if you have setup takser properly then it will apply the "commands inside the profile" but what KA does is it only applies what is "Under each tab" . As I had already mentioned, the UI doesn't contain all the tweaks of my profile , in order to get every tweak to be applied , you either need to run it manually on each boot or setup tasker to "apply profile on boot"

And if your settings are applied correctly by takser on boot, you need not keep any set on boot option in kernel adiutor

Check bottom of post 4 , I have attached a link on how to setup tasker to APPLY PROFILE ON BOOT
[Galaxy Note 4 Android Development (Snapdragon)] alonso7:
Senthil360 could i ask u a question because i'm a noob in changing kernel!i have flashed nameless kernel v7 on my kyubi note 5 port rom and i have kernel auditor special edition!if i flash your profiles everything i see in kernel auditor will be your settings right?then i will have to turn on start on boot in every screen of kernel auditor or if i don't touch anyhting i will have your profiles! Sorry for the big message!

Στάλθηκε από το SM-N920C μου χρησιμοποιώντας Tapatalk
[Galaxy Note 4 Android Development (Snapdragon)] crash_194:
Yes I think I understand, sorry to be a pain. I'm always keen to try and learn to understand what is going on (as you have probably guessed android and coding is not my bag! Lol)

I appreciate your time and patience.
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
After flashing open kernel adiutor, apply profile after each boot ,

I can't explain 100 times the same thing , if you are new then read , none of us know everything in the beginning, Now I am worried this thread is becoming a Q/A thread which i particularly didn't want to happen , I will restrict myself from answering repeated questions

and focus more on discussing tweaks and ideas

If someone wants to learn I can help him/her to any extent , but there are some leeches about whom I don't like to care much

To everyone

N00bness is not an excuse , if you are ready to learn , there's a whole world in front of you and you can start from the first page of this thread ..

And guys Kernel tweaking, settings are not the same as flashing a fix and asking for simple solutions, I have made it as easy as possible , there's a lot of effort from my side , all that is asked from you is to READ

All those who have learned from this thread , I'm really happy for them and that's my biggest motivation to give new things for you guys

Right now I am working on some Automatic kernel programmes so not much time to answer here, Thanks for all your support and look forward to better things.
[Galaxy Note 4 Android Development (Snapdragon)] crash_194:
Whoops, sorry (sincerely), I didn't mean to make you angry! I'll take a back seat and let you do your thing.
[Galaxy Note 4 Android Development (Snapdragon)] SHADYEDGE:
Hi [MENTION=6773050]Senthil360[/MENTION],

I tried to follow the guide, but i have this starting to add lines,

mount -o rw, remount /2>/dev/null [enter]

usage: mount [-r] [-w] [-o options] [-t type] device directory

any help?
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Check again u must have missed that -o ,

Or copy the whole code into a file , delete empty line in between , paste in init.d , set 755 permissions and reboot
[Galaxy Note 4 Android Development (Snapdragon)] SHADYEDGE:
Ok. I will do it and let you know the results.

Thanks
[Galaxy Note 4 Android Development (Snapdragon)] SHADYEDGE:
Not working with this method, but following the instructions that [MENTION=1198227]sosimple[/MENTION] told me works.

I dont know if could be the KA version 0.9.9.2.3, i uninstalled this and install the one provided in the OP (0.9.9.2.2).

That's all.

Thanks again.:good:

---------- Post added at 08:29 PM ---------- Previous post was at 08:13 PM ----------

It is safe to apply profile one by one?

KA start and set configs in 5 seconds after boot.

Tasker is set to apply the Emotion Balanced in 10 seconds and 15 seconds later my own kernel settings. is this the right way?
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Yes it is absolutely safe given that ur profile settings do not conflict with other settings, it should work correctly .:good:
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
Awesome, thanks for your work! Follow up question - for the tweaks you've made that are not available through the KA GUI - are there any dependencies on any of the settings that ARE in the GUI? For example, are the changes for the Emo-Balanced profile dependent upon me using the Lionheart governor? Or can I change the governor to whatever I want and your behind the scene changes are still valid?

Can you describe what those changes are that aren't in the KA GUI - for us non-kernel developers? lol

EDIT - Thought of another question - is the fact that the Android Logger will not stay "on" after a reboot (and the setting doesn't stay on in any profile used) a limitation of KA or the Emo kernel? I was able to force it on by using tasker to set the appropriate file value at reboot, but it would be nice if I didn't have to lol
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Why not? :D

1. I/O tweaks across all partitions (*major) The Kernel Adiutor app shows only 2 partitions, i.e. Internal sdcard and external sdcard for which you can change I/O scheduler ,

** I have code added in profiles for the important mmcblk0rpmb

I have algorithm calculated values applied for 4 I/O schedulers , they are Fiops , Row , Cfq and Deadline .

=================

2. Cgroup (more clearly cpuctl tweaks ) - This documentation is pretty huge, just a small change had been done for the "memory swappiness of cgroups" which is nowhere in UI of kernel adiutor

===============

3. Various other tweaks in /proc/sys which are not fully displayed under vm , This includes 17 to 23 additional values for each profile changing values in

a) /proc/sys/kernel

b)/proc/sys/fs

c)/sys/module changes

d)/proc/sys/vm directory

And maybe one or two extras that I may not remember
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
Nice, thanks!

So it looks like there's nothing that is governor dependent right? So we can change governor to whatever we want and it won't impact the non-GUI changes you've made?
[Galaxy Note 4 Android Development (Snapdragon)] :
I suppose the answer is yes, but:

If you use a profile, and change it's governor, then there is no reason to use the profile at all, as all the profile settings are best for this governor, and then you should also change all settings, and in bottom line, you don't have the profile..
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
The explanation below is 100% correct :)

Thank u :D
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
Ok, now I'm confused. You replied to me and said that yes, your "hidden" settings will transfer over to a new profile - meaning that I could tweak your profile and save it as a "New" profile and all your hidden settings would work. But then you replied to someone else saying no, we still have to apply your profile first and then apply a second profile with the changes we want made... So which one is right?

Ok, so that's why I asked for clarification on what your hidden settings were, to determine if those settings were dependent on keeping the governor specified in your profile and it sounds like they are dependent on the profile governor setting. So can you tell us which settings we can tweak, which would not have an impact on the hidden setting tweaks?

Thanks!
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
The hidden settings are part of the code and they cannot be transferred unless you write the code again to whichever profile you want..

I never mentioned anywhere that your custom created profile will have my "hidden" settings , because it's NOT possible ;

The only way to have both my hidden settings and your new settings is - Apply any of my profiles first (all my codes in that particular profile gets applied) , then over that apply your profile which may change the other things but will not touch these hidden settings ..
[Galaxy Note 4 Android Development (Snapdragon)] AlexanderBlaQ:
Ok so I like using the battery profile but I also like using the gaming lmk values so I tried making a profile with just the lmk values changed but after I hit the done button to create the profile nothing happens i have no new profiles just the same 12 that come with the zip any help?
[Galaxy Note 4 Android Development (Snapdragon)] SHADYEDGE:
Hi I had the same situation and I fixed it following this

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

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

Hope this help
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
Ok, got it, thanks!
[Galaxy Note 4 Android Development (Snapdragon)] twe90kid:
thanks for this.. will try it now
[Galaxy Note 4 Android Development (Snapdragon)] Benny Bosser:
I'm hiding this post as it is a long one and I don't want to take up half a page of the thread :)

Spoiler content hidden.
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
It maybe the case , I won't say my tweaks are 100% perfect, for me and my testers it is , and I hope most of you might have enjoyed it, but if its this problem you are facing we can solve it (hopefully ) with 2 simple changes

1.Try the stock LMK values , because the reason for apps closing is ..

If you set high values as in the screenshot I have attached in post 5 , it is normal for AOSP/CM roms but in TW the bloat itself uses much RAM and the threshold levels are reached much earlier so apps get killed to keep the minimum amount of RAM specified by us in the LMK tab, these results would differ from ROM to ROM because of the memory taken up by bloat apps, services , processes etc..

More DEBLOATED = Better RAM management

Try 88 , 110 , 132 , 164 , 176 ,220 for default

Or 48 , 56 , 64 , 110 , 132 , 166 for MAX multitasking

2. Even after this if problem persists , revert the set on boot under VM tab so that it may use the stock values (won't be necessary)

Hope you now understand the way it works.
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Guys any suggestions, requests? I am close to completing a AUTO-POWERSAVER , that will automagically switch to battery friendly settings when below a certain percentage (say 20%) and again automatically switch back to your original settings when battery is above 20% , I made it for friends who didn't want to use tasker , and its better to have script programmes rather than apps to conserve memory :P ..

Share your thoughts on this :D
[Galaxy Note 4 Android Development (Snapdragon)] Benny Bosser:
Thanks a bunch my friend!

That's a very complete answer ?

I'll try this when I get the time later this week and I'll report back ?

As for the power save question, for me that sounds like a great idea!
[Galaxy Note 4 Android Development (Snapdragon)] lazer9:
[MENTION=6773050]Senthil360[/MENTION] appreciate your suggestions for my random reboots after the original v2 beta. Tried some without the complete wipe, Odin, ect... Trying to avoid that. Can you tell me based on these hidden tweaks & relation to my setup they may be stuck on or corruption to a particular partition, is there possibly another way without wiping everything again to fix? Thanks
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Sure , we can continue this in pm , send me what all you tried and the current status and problems of your phone ?
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
FYI - for anyone who wants to deep dive into Senthil's profiles.json settings file and/or modify them and/or make your own, you can try this online tool (I have no connection to this site, just found it through Google: http://jsoneditoronline.org/ )

Or you can open the Profiles.json file with a text editor on your phone and make changes. A basic understanding of programming syntax is recommended.

For example, one of the things I added to mine was this block:

{ "path": "/sys/kernel/logger_mode/logger_mode",
"command": "echo 1 > /sys/kernel/logger_mode/logger_mode" }

Which turns on the Android Logger (catlog) all the time and this block:

{ "path": "/sys/module/msm_thermal/core_control/enabled",
"command": "echo 0 > /sys/module/msm_thermal/core_control/enabled" }

Which disables the Core Control option under KA Thermal, which senthil said to turn off and only use Intellithermal...

Thanks to [MENTION=257188]senthil[/MENTION] for all his hard work on these profiles.
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
[MENTION=6773050]Senthil360[/MENTION] - I think there's a typo in the Emotion Balanced settings in this block:

{

"path": "/sys/block/mmcblk0/queue/iosched/rp_swrite_quantum",

"command": "echo 4\n4 > /sys/block/mmcblk0/queue/iosched/rp_swrite_quantum"

}

echo 4\n4 I'm guessing should be "echo 4"?
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Oops Yeah , That was actually a comment out line from Nexus 4 where the "ROW" scheduler was in the early stages of development, Thanks for pointing out , will correct that one later..
[Galaxy Note 4 Android Development (Snapdragon)] AlbGol:
This right here is the best thing that actually works. I have latest emotion r23 with performance profie v2 and i get about 5-6 hours SOT on a 24 hour period and my phone is an angry beast it flies thru everything with exposed modules and wanam loaded. Note4 hasn't been more powerful for me than what it is now. Super happy. Have no words to express my satisfaction towards [MENTION=4107827]TEKHD[/MENTION], [MENTION=4824728]Pafcholini[/MENTION] and emotion team, and [MENTION=6773050]Senthil360[/MENTION] that made profiles possible for us.

Thanks a bunch guys
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
Another thing.. this block is duplicated in the Emotion Battery section:

{
"path": "/sys/block/mmcblk0/queue/read_ahead_kb",
"command": "echo 512 > /sys/block/mmcblk0/queue/read_ahead_kb"
},
{
"path": "/sys/block/mmcblk1/queue/read_ahead_kb",
"command": "echo 512 > /sys/block/mmcblk1/queue/read_ahead_kb"
}
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Nope it seems correct here , are u saying its both mmcblk0?
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
I mean you have both of these blocks in the Emotion Battery profile:

This one:

{
"path": "/sys/block/mmcblk0/queue/read_ahead_kb",
"command": "echo 512 > /sys/block/mmcblk0/queue/read_ahead_kb"
},
{
"path": "/sys/block/mmcblk1/queue/read_ahead_kb",
"command": "echo 512 > /sys/block/mmcblk1/queue/read_ahead_kb"
}

AND this one:

{
"path": "/sys/block/mmcblk0/queue/read_ahead_kb",
"command": "echo 512 > /sys/block/mmcblk0/queue/read_ahead_kb"
},
{
"path": "/sys/block/mmcblk0rpmb/queue/read_ahead_kb",
"command": "echo 512 > /sys/block/mmcblk0rpmb/queue/read_ahead_kb"
},
{
"path": "/sys/block/mmcblk1/queue/read_ahead_kb",
"command": "echo 1024 > /sys/block/mmcblk1/queue/read_ahead_kb"
}

Won't hurt anything, just duplicating the first 2 statements...

EDIT - These are from the Emotion Gaming profile - all of the below blocks are duplicated, like the above 2 blocks:

{
"path": "/sys/kernel/intelli_plug/cpus_boosted",
"command": "echo 2 > /sys/kernel/intelli_plug/cpus_boosted"
},
{
"path": "/sys/kernel/intelli_plug/full_mode_profile",
"command": "echo 1 > /sys/kernel/intelli_plug/full_mode_profile"
},
{
"path": "/sys/kernel/intelli_plug/intelli_plug_active",
"command": "echo 0 > /sys/kernel/intelli_plug/intelli_plug_active"
},
{
"path": "/sys/kernel/intelli_plug/max_cpus_online",
"command": "echo 4 > /sys/kernel/intelli_plug/max_cpus_online"
},
{
"path": "/sys/kernel/intelli_plug/min_cpus_online",
"command": "echo 2 > /sys/kernel/intelli_plug/min_cpus_online"
},
{
"path": "/sys/kernel/intelli_plug/nr_run_hysteresis",
"command": "echo 8 > /sys/kernel/intelli_plug/nr_run_hysteresis"
},
{
"path": "/sys/kernel/msm_mpdecision/conf/delay",
"command": "echo 75 > /sys/kernel/msm_mpdecision/conf/delay"
},
{
"path": "/sys/kernel/msm_mpdecision/conf/enabled",
"command": "echo 1 > /sys/kernel/msm_mpdecision/conf/enabled"
},
{
"path": "/sys/kernel/msm_mpdecision/conf/idle_freq",
"command": "echo 960000 > /sys/kernel/msm_mpdecision/conf/idle_freq"
},
{
"path": "/sys/kernel/msm_mpdecision/conf/max_cpus_online_susp",
"command": "echo 1 > /sys/kernel/msm_mpdecision/conf/max_cpus_online_susp"
},
{
"path": "/sys/kernel/msm_mpdecision/conf/min_cpus",
"command": "echo 2 > /sys/kernel/msm_mpdecision/conf/min_cpus"
},
{
"path": "/sys/kernel/msm_mpdecision/conf/startdelay",
"command": "echo 5000 > /sys/kernel/msm_mpdecision/conf/startdelay"
},
{
"path": "/sys/module/msm_hotplug/msm_enabled",
"command": "echo 0 > /sys/module/msm_hotplug/msm_enabled"
},
{
"path": "mpdecision",
"command": "stop mpdecision"
}

Edit 2: Not sure if this was intentional, but the parameters for ..../queue/iosched/hp_read_quantum are missing from the following profiles/sections:

Emo Balanced - Missing /sys/block/mmcblk1/queue/iosched/hp_read_quantum
Emo Battery - Missing /sys/block/mmcblk0rpmb/queue/iosched/hp_read_quantum

Also, for all Emotion profiles (I haven't looked at any other kernel profiles) there is a double forward slash (//) for most of the "adreno" parameters - for example

"/sys/module/adreno_idler/parameters//adreno_idler_idlewait"
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Oh really a big thanks for looking into all these , I will have them corrected and if you find anything else send me in PM , don't want to make this thread look weird :D
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Getting ready to start V3 , it will take time and I might include few init.d scripts as well ?
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
[MENTION=6773050]Senthil360[/MENTION]

Will do!

Question for you - do you know why changes to gpl_headphone_pa_gain do not stick and the file always has invalid values?

FYI - I ran CF Bench using all of your profiles and the funny thing is, the Emo Battery profile gets scores equal to or just a little better than the Emo Balanced profile ;) lol
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
For headphone gain , first make gpl_sound_control_locked to 0 , then for reducing the gain echo a value from 236 to 255 like this (in pic), increasing gain can be done through app itself.

Here : /sys/kernel/sound_control_3/gpl_sound_control_locked

That's why I tell don't do benchmarks, Benchmarks take the score they want , its so much pointless to explain about benchmark stuff here , except that its not something you can rely even for a comparison.
[Galaxy Note 4 Android Development (Snapdragon)] royalh:
I tried this, but after rebooting, the value reverts to 192 0 even though I have Tasker applying my profile 30 seconds after reboot... any other ideas?
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Why "192 0", even if it is default it should be "0 0" , then somethings wrong with codes or kernel apps , check everything again , because its working as it should here ?
[Galaxy Note 4 Android Development (Snapdragon)] Benny Bosser:
I said I'd try these settings and report back. Unfortunately the problem I was having still persists with these new settings, even with max multi taking, apps get shut down very very easily for me. The strange part is that they really shouldn't, I checked ram usage while multi tasking and I've got an average of 900 mb of free ram on these settings compared to an average of 350 mb without them. Do you happen to have some background process restrictions included? Cause i'm really lost on what could be the cause of these apps closing.

Thanks again for your hard work!
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Background process limit ?? Hehe, I didn't/couldn't add something like that to profiles.

It seems like the linux itself is deceiving us from what you are saying , lol

Ok tell me what

ROM

Kernel

Xposed modules (if any)

Heavy apps or problematic apps

... that you are using.
[Galaxy Note 4 Android Development (Snapdragon)] Benny Bosser:
Yeah, I already thought background process restrictions wouldn't be it[emoji14]

Rom: Echoe note 5 port v26

Kernel: Emotion kernel r23 (tried them all, all give me the same issues)

Xposed: lots of them[emoji14]I've added a screenshot :)

Heavy apps: I've got some apps that have permanent processes like

Tasker

Texpand

Anticipate

Lmt

Next Launcher

Floatify

HeadsOff

Plus messenger

Calendar notify

Gsam Battery

Zooper

SwiftKey

Autoinput

Autonotification

MightyText

Other than that I don't really have a lot of apps that use a lot of ressources unnecessarily, neither do any of my installed apps have fc's

All my social media apps are greenified, I don't have fb or Google plus installed
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Sorry mate , I'm helpless then , I would suggest you to try without xposed , there are lots of people using these but haven't heard such complaint, because as far as my knowledge with LMK , I am correct , I am not sure about other things intervening
[Galaxy Note 4 Android Development (Snapdragon)] JeffyLube0:
Giving your performance profile for AEL kernel a spin.. WOW first impressions are telling me I will have a lot of fun on this. Not really worried about battery life at the moment
[Galaxy Note 4 Android Development (Snapdragon)] dinaps86:
When you say make this 0 I'm guessing you mean in build.prop?
[Galaxy Note 4 Android Development (Snapdragon)] Senthil360:
Lol , no what build prop has to do with any of these ? Its just an export array defining or showing the properties of system and the prop tweaks are most of the times placebo. This is a big topic , to say shortly most build prop tweaks are just placebos because the system's a) framework, b) init process has only few properties that actually uses "calls value from build.prop" , best example is DPI which can be called from build prop.

So if somebody claims about a tweak in this it has to be either defined in the source code or he/she should have experienced good changes ( no proof here) . That's why I stopped believing in

"ro.make.my_phone_fly= true" or maybe

"ro.enable.max_stream_speed=1" Rofl :))

Why did I mention all these ? :P Ah u mentioned the build.prop , lol

Anyhow sound control is here : /sys/kernel/sound_control_3/gpl_sound_control_locked
[Galaxy Note 4 Android Development (Snapdragon)] Benny Bosser:
Already tried that my friend ?

Yeah I really don't get why it isn't working either, you're completely right about everything in this thread. I read everything, did everything as described, so I'm really lost on what it could be ?

well I'll just wait for v3 then, maybe I'll be more lucky then ? thanks for your help!