yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] xSilas43:
Thanks for this! As a Kylo fan I was often thinking of using the despair governer, IMHO I was thinking it may even be pretty good for the big CPU as it will slowly ramp up (no to slowly) yet immediately cut the hi freq when it's not needed, which may result in better battery savings. I might do some tweaking and I'll let you know! Awesome work guys!

Edit: saw you just uploaded 1.2 as well? Major differences if any?
[Nexus 6P General] Jsilver73:
No just text typo's in the script - nothing that will change settings - my bad :eek:
[Nexus 6P General] SaZh047:
Started the testing right now ;)

Thank you very much!
[Nexus 6P General] abbz123:
testing sid!

thanks!

currently my best is 7 hours of SOT over a days use with Redhawk v2.

Will report back tomorrow morning with results on sidious.

cheers
[Nexus 6P General] AleCicc:
With EX I got these errors:

tmp-mksh: /storage/emulated/0/Download/Sidious_v1.2.sh[22]: can't create sys/devices/system/cpu/cpu0/cpufreq/despair/up_threshold: No such file or directory

tmp-mksh: /storage/emulated/0/Download/Sidious_v1.2.sh[23]: can't create sys/devices/system/cpu/cpu0/cpufreq/despair/down_threshold: No such file or directory
[Nexus 6P General] xSilas43:
I got those errors when trying to execute it in terminal however when I used the scripter from ROM toolbox to execute it as root it worked fine, and actually changed the values. So far so good though! I think k it's definitely a bit snappier than RedHawk so far, haven't done my battery tweaks yet tho.
[Nexus 6P General] Prattham:
Try inc the min cpu freq

Cheers ?

Sent from my Purified NexusixP

If someone helped you don't just say thanks hit the thanks button
[Nexus 6P General] TyroneLT:
I found I had similar results until updating to the latest 6p software update via fastboot. Since then I've been using Heimdall V4 and have had great results performance wise and battery life averaging around 5 hours SOT.
[Nexus 6P General] Con1750:
Im already running the latest build and have been for some time so it definitely isn't that.

Secondly you mean increase the LITTLEs min to a higher freq?
[Nexus 6P General] Prattham:
Yes that's for the lags you are talking about but it will have effect on battery life though

Cheers ?

Sent from my Purified NexusixP

If someone helped you don't just say thanks hit the thanks button
[Nexus 6P General] dan04103:
Butterfly with io set to deadline 1024 has been sweet as honey here. 5hrs easy and games with ease.
[Nexus 6P General] d08speed3:
I use Butterfly as well. Only one that is fast IMO. I use to use RedHawk but I like ElementX kernel better IMO.
[Nexus 6P General] xda4ck:
[MENTION=1892392].hEiMDaLL.[/MENTION] I am using your v4 script with kylo kernel r9m 4.9. This is a very good and responsive profile but I noticed that the input boost does not get applied to cpu cores 1 to 4. The reason I think is that the script tries to set the freq as 600 MHz for these cores but in the drop down for input boost frequency, there is no such freq available.

At least kernel Adiutor's just shows the freq ranges of big cluster for input boost freq drop down for all 8 cores, thereby leading to only cores 5 to 8 getting input boost. Can you please check and confirm what is the issue here ?

Thanks a lot for your great work.[emoji3]
[Nexus 6P General] .hEiMDaLL.:
Hey there,

yes, I can confirm the issue with kernel adiutor. Seems to be a bug in the app itself...

Do you apply the profile by hand (insert the values manually) or did you use the .sh script?

Check with cat /sys/module/cpu_boost/parameters/input_boost_freq whether the values have been applied to to the kernel.

If not, running the .sh one more time should set everything. (even if not shown in kernel adiutor (check with above line or use another kernel tunig tool for the time kernel adiutor is not fixed)
[Nexus 6P General] Juzman:
I did something similar, but only increased the values by about 5 degrees. I used the stock thermal file though as it also had other values that were missing from the zip.
[Nexus 6P General] elreydenj:
Can you please tell us which parts of the thermal file need to be changed to raise the temperature values? There is a lot in that file.
[Nexus 6P General] Juzman:
I changed a few lines. Attached is a copy of my thermal file.
[Nexus 6P General] xda4ck:
Thanks, I checked the contents of the file you mentioned and the values are getting set properly, but it's just not showing up in kernel Adiutor's app. Thanks for your prompt response.
[Nexus 6P General] yung40oz84:
I want to use this file, but I am a little unclear on the difference between msm_thermal and core control? If am correct this file pertains to the core control right? SO what is msm_thermal? SHould that also be enabled as well? Thanks
[Nexus 6P General] chefp2010:
How do we use this file or enable it to work? Thx
[Nexus 6P General] yung40oz84:
Can I please get some help,

I have a question, there is a thermal-engine.conf file floating around and would like to give it a try. I just have a couple questions.

1. Does the thermal-engine.conf file pertain to core control or msm_thermal??? Which one do I need enabled to take advantage of the thermal-engine.conf file I will replace in /system/etc?

2. Also, which should I be using anyway? You can only use one correct? not both?
[Nexus 6P General] .hEiMDaLL.:
Still trying to figure out what each one does exactly. What I (think to) know by now is written at the and if this post

Only do something if you know how it works ?

I suggest you try to change the values in the file directly.

Do NOT simply delete the file or any of its content or formatting.

From my understanding core control is somehow connected to hotplugging the cores. I tried to find more information but hadn't any luck yet. A kernel dev should know more about that. Somewhere I read that both do nearly the same, but no further info on that

One thing regarding msm thermal you should keep in mind: If deactivated without a proper replacement you risk the overheating and possible death of your device. That applies also for to high temp values! You should get info on the optimal operation temperatures of the SoC first.

Ok... So from my understanding: There exist two different thermal control routines, one (KTM) applies on boot time, while thermal engine takes over once boot is completed. The thermal_engine.conf file controls the behavior of both (KTM and the actual thermal control)

A quick Google search pointed me to the documentation of msm_thermal which says:

MSM_THERMAL is a kernel platform driver which regulates thermal conditions on the device during kernel boot. The goal of MSM_THERMAL is to prevent the temperature of the system from exceeding a thermal limit at which it cannot operate. Examples are CPU junction thermal limit, or POP memory thermal limit.

The MSM_THERMAL driver polls the TSENS sensor hardware during boot, and reduces the maximum CPU frequency allowed in steps, to limit power/thermal output when a threshold temperature is crossed. It restores the maximum CPU frequency allowed in the same stepwise fashion when the threshold temperature (with hysteresis gap) is cleared.

I haven't changed anything in thermal_engine.conf besides setting the temp values up by 3 degrees - except the offline temp - yet and probably won't till I have some more info on that.
[Nexus 6P General] yung40oz84:
The only thing I may find strange in what u said is that when I flash any kernel or I flash a ROM msm_thermal is always disabled by default and sometimes not even available in certain kernels, but core control is always available and always enabled. From what I have read you should only apply one or the other, not both, so at the moment I have msm thermal enabled and core control disabled, but if I switch it the other way around what shall happen? That is the way it come stock, with core control enabled and msm thermal disabled
[Nexus 6P General] .hEiMDaLL.:
So the idea that both do somehow the same / one is a replacement for the other seems to be correct...

As I said, I'm no kernel dev and just started with digging deeper into the kernel configs.

A good test would be to change the thermal_engine.conf to lower levels and check what happens if core control is enabled compared to msm_thermal but I hadn't time to do that yet.
[Nexus 6P General] yung40oz84:
K thanks bud!
[Nexus 6P General] .hEiMDaLL.:
OK.. some more input on that:

I just had a look at the kernel source for ElementalX. (https://github.com/flar2/angler/blo...d4e34dade7a0fee/drivers/thermal/msm_thermal.c)

The only relevant mention of core_control is in the file msm-thermal.c

From my basic c knowledge:

core_control simply is used for hotplugging the cores (online/offline) on thermal events (shut down a core when getting to hot)

its - in my understanding - a sub function of the thermal control functions. besides that, we have voltage control, frequency control (the one we want to change with thermal_engine.conf), as well as functions for controlling gpu, ram, etc. )

So... question to the masses: why, if this is really only a sub function to do the core online/offline stuff, is it suggested not to use "both"? what could possibly happen?

offlining a core when at max temp is not a bad thing.. of course this should only happen, when already at the lowest freq (or at the highest temp) to prevent any damage caused by overheating.

I wonder why all questions regarding this in any kernel threads are not answered properly or with evasive answers...
[Nexus 6P General] yung40oz84:
This is very good making sense of things, lol. So for the time being I will enable both core control and msm thermal and see what results I come up with. I did see a thread involving the one plus one where it WAS recommended to turn both of these features on.
[Nexus 6P General] Juzman:
I have no idea TBH. I just bumped the temps up a bit on my original conf file.

---------- Post added at 01:07 AM ---------- Previous post was at 01:03 AM ----------

I know there was a CTT/Thermal mod for the LG G4 which had the temps bumped up a bit.

Still I personally don't know what it does, but bumping temps up 10c should not cause any issues from what I have read, YMMV.
[Nexus 6P General] yung40oz84:
[MENTION=4752299]Alcolawl[/MENTION] will the Bluejay script be available for Nexus 6P?

Nevermind, just realized Impulse not in 6P at the moment......
[Nexus 6P General] xSilas43:
Hey everyone, im going to releasing eclipse r3 as is, i haven't had as much time as i would like to work on it. While also gaining new knowledge on our devices using dynamic voltages so the voltage table obtained being effectively wrong and useless. It is not in the greatest state so may require some more tuning for optimal performance but overall I feel its an improvement from v2, I will not be releasing for 5x as i will be discontinuing eclipse after this release and i will not be releasing a script as well. I think ill be working on another very minimal approach to the tweaks which will be released when I get some more time, and will be more performance orientated. Direct link is here

The result is just excessive thermal throttling with devices that produce some more heat, ex) OPO, nexus 6p, etc.

Many people have completely disables thermal control and have had no damage thus far, but do not do excessive heavy loads like gaming. IMO the features are a little overprotective however, i haven't really had throttling issues so i choose to leave it alone out of precautions.

As for core control and thermal throttling, AFAIK, core control will hotplug and shut off cpus then the temp is exceeded while msm thermal will simply throttle them down until an " acceptable" temperature is reached, i personally do not use either.
[Nexus 6P General] Dbj.Dhaval:
Impulse is there in God kernel
[Nexus 6P General] yung40oz84:
God kernel? I was meaning stock dirty Unicorn kernel but the profile would still be nice for the 6P as I believe AK kernel also has impulse.
[Nexus 6P General] Juzman:
EclipseR2 works amazing with Franco [MENTION=5323968]xSilas43[/MENTION] so R3 can only be an improvement.

I'm not too concerned with performance as I don't game e.t.c. so prefer battery. You mention new one will be aimed at performance, so does that mean you will be sacrificing battery, and EclipseR3 will be the last battery-focussed tweaks?

Thanks for all your hard work mate!
[Nexus 6P General] iron maiden:
hello eclipse profile I can not apply it denied permits and terminal emulator if I use EX manager does not seem to load the profile as you have applied ? Thank you

regards
[Nexus 6P General] Juzman:
I just downloaded the .txt that was linked above, copied it into /sdcard/ElementalX/gov_profiles/ and removed the .txt extension then loaded it in EXKM.
[Nexus 6P General] .hEiMDaLL.:
You really wanna stop working on the profiles? If it's just because the dynamic voltage ranges, you can get the exact min and max for each freq from googlesource...the use of dynamic voltages doesn't imply that all the profiles are useless. power draw is still related to load. You did some great work with those profiles and inspired me (and many others) to start working on them.

The values in the file are indeed a bit overprotective. IMO it's because a lot of people claimed the 810 is getting too hot under load and they had to find a way to limit it's temperature.

I personally think any electronic component should never be running constantly above 50°C. Effects of overheating might not be directly visible, but operating any cpu at high temps over a longer period WILL DO harm to the device. The 66°C to switch a core offline are fine and I would never disable any thermal protection. In fact, I'm currently using both features and disable thottling only to apply the profiles and switch it on again afterwards. Furthermore: Higher temp => faster dying battery.

Sure, completely switching off a core is not needed in most cases, as the min throttling freq will be fine to let the chip cool down. The 66°C should (and might) never be reached at all, so it's irrelevant if hotplugging for thermal protection is on or off.

After all, this is something that everyone has to decide for himself.

I'd rather use my device as long as possible instead of risking any whatsoever small damage, just because I need that 0.1 percent more power to show off in some silly benchmarks.
[Nexus 6P General] xSilas43:
No our device uses dynamic voltage to obtain what voltage to use on our device so it will constantly be different depending on the load, am just discontinuing eclipse as there wasn't much for me to do with it. Also that just tuning governors will net some performance there are better ways to do it(msm performance tunables). I am currently working an a much more simplified profile that uses the despair gov(conservative base). Also with the more simplified profile, ill be able to work on it and release it much faster than my previous profiles. Then will likely experiment with the msm performance parameters. As for heating, I personally have never had my device go above 50 degrees which is why I have disabled the msm_thermal and core control, i still have the thermal engine enabled as a safety measure.

Edit: Join the DarkSide today!

I am now releasing my new profile/script, these settings will only be for Kylo/Phasma kernel as they use the despair governor on both little and big cores. This excellent governor by [MENTION=5169465]DespairFactor[/MENTION] is conservative based and tuned for more towards performance. But because it uses the conservative as a base, it is much less aggressive to ramping to max frequencies but gets zero lag. I have also set the InputBoost to 960mhz after some testing this allows for a much snappier device with no noticeable impact on battery life. Also i have changed the script with the following settings, so if you run the EXKM profile you'll need to change these manually

IO Scheduler - bfq

Read-Ahead - 512 or 1024 (I use 1024)

Max freq on little cpu - 1708mhz

Max freq on big cpu - 1958mhz

Disable msm_thermal and core_control (for optimal performance)

Download

Download the DarkSideR1.zip for script or .txt fpr EXKM profile.

https://www.androidfilehost.com/?w=files&flid=48034

Credits: DespairFactor for the wicked kernel and gov combo and some insight on many things.
[Nexus 6P General] xSilas43:
denied permission in terminal emulater means you didnt run it as superuser so type 'su' before running the script
[Nexus 6P General] giant22000:
Wow, new profile seems very smooth and lag free so far. Great work! Can't wait to see how battery life will be.
[Nexus 6P General] yvyv:
Link is dead!!

not found

Can't find it!
[Nexus 6P General] nathanchance:
Which one? I guarantee it is Tapatalk messing it up for you as it has been doing that a lot lately. Try opening through Chrome or another web browser
[Nexus 6P General] Juzman:
I was using Franco+EclipseR3.

Did a clean wipe and flashed Pure Nexus + Kylo AOSP, will follow DarkSide. :)
[Nexus 6P General] yvyv:
Try Chrome and duckduckGo still dead, Thank you for the reply..

https://www.androidfilehost.com/?w=files
[Nexus 6P General] nathanchance:
It would be helpful to know which link you are trying to access.
[Nexus 6P General] Pichingo:
Any particular reason why you chose, IO Scheduler - bfq instead of the others?
[Nexus 6P General] xSilas43:
Despair just recently updated bfq a bunch.
[Nexus 6P General] yvyv:
Download the DarkSideR1.zip for script or .txt fpr EXKM profile.<br />

https://www.androidfilehost.com/?w=files&flid=48034<br />

<br />

Thank you
[Nexus 6P General] nathanchance:
Yeah that link definitely works when clicking on it within Chrome, I just opened it
[Nexus 6P General] Prattham:
How to disable msm and core control?
[Nexus 6P General] nathanchance:
Using an app like EXKM under the CPU section.
[Nexus 6P General] Prattham:
Okay I have that app snd what exactly I'm looking for.? I really don't know anything about that msm and core thing

Thank you

Cheers ?
[Nexus 6P General] Dbj.Dhaval:
Is it ok if I use both ex kernel manager and Kernel Auditor together. As ex kernel manager don't have few options
[Nexus 6P General] nathanchance:
It's at the bottom of the CPU section, tap on the options to enable/disable them as you need.

Its only recommended to use one kernel control app but it may not be a problem if you aren't using them for the same things. However, I'd personally contact [MENTION=4684315]flar2[/MENTION] about what options are available in KA that aren't in EXKM so that he can add them since his goal is to make EXKM universal.
[Nexus 6P General] Prattham:
Don't know what I'm doing wrong but can't seem to find anything like that
[Nexus 6P General] nathanchance:
What kernel are you on? This is on both ElementalX and Elite.
[Nexus 6P General] Prattham:
I'm on kylo kernel as [MENTION=5323968]xSilas43[/MENTION] said that DarkSide is for kylo kernel

Does that mean this kernel does not support that msm thing or is it disabled auto? Or i need some other app to that?

Cheers ?
[Nexus 6P General] xSilas43:
Which version of kylo? have you tried scrolling the app down more? it should be right below the governor options.
[Nexus 6P General] mattkroeder:
Perhaps you need to update EXKM app. I am using Kylo R10.AOSP and the settings are definitely there. In the CPU section, all the way at the bottom.
[Nexus 6P General] Prattham:
Yeah haven't updated it

Thanks and sorry for the trouble

Cheers ?

---------- Post added at 05:09 AM ---------- Previous post was at 04:59 AM ----------

Whats the min freq for big cpu?

Cheers ?
[Nexus 6P General] iron maiden:
hi only happens with your eclipse profile thank you very much

hello with that version of kernel Kylo ? I installed it latest version Kylo R10 M UBER 6.0 and the maximum frequency Max freq on little cpu is by default 1555 and EX manager can not change it because it goes 1708 everything else is as you describe apply the profile using terminal emulator thank you very much and I feel my English

regards
[Nexus 6P General] xSilas43:
Ahh the eclipser3.txt is only for EXKM, you can just manually apply the values if you'd like though. Well I'm not sure why it would now be 1555 as despair always had it at 1708 which is supposed to be what google sets it at. My theory for using 1708 on little core was to maximize it's potential to handle loads so the big cpu doesn't have to scale up as much/often.
[Nexus 6P General] Prattham:
Can you please tell what should be the min cpu freq for big cpu while using Darkside profile for kylo?

Cheers ?
[Nexus 6P General] xSilas43:
little 384 - 1708

big 633 - 1958

:good:
[Nexus 6P General] Juzman:
I mixed it up a bit, and set big to 480 minimum, and little to 1555 max to hope improve battery slightly, more like eclipse.

Also set boost on 600 instead of 960.
[Nexus 6P General] xSilas43:
having big under 633 wont save any battery and only impact performance but the rest of the tweaks look good for battery savings! however, im getting anywhere from 6-8 hours SOT depending on my usage with the new settings.
[Nexus 6P General] Prattham:
I really can't agree with you

Battery life has been not That great and with same usage with eclipse r3 it was way better

Cheers ?
[Nexus 6P General] xSilas43:
You then may have things/services running in the background that cause the cpu load to jump around. It will have a bit higher drain that eclipse being more performance orientated but shouldn't be to big of a difference.
[Nexus 6P General] zige:
Hey xsilas43, sry i cant tag you because it is on to-do list on Xda Labs app but do you have any idea if its possible change that EXMM dont change governor to interactive while getting hot? Now i have seen couple of times that it change fron despair to interactive when phone battery temp is above ~39-40 celsius. I'm using yours Darkside if its matters.
[Nexus 6P General] Juzman:
Thanks for the info mate. Will set big back to 633 and leave the rest. :)

Might have a play around with some other bus and get it close to Eclipse, make it DarkEclipse. :p
[Nexus 6P General] xSilas43:
you can type [MENTION=340767]name[/MENTION] and xda will turn it into a mention, i use xda labs also. also maybe you have the performance or powersave modes activated in exkm? cause I've never experienced it changing the governor automatically without those enabled, otherwise that would be something to mention to the app developer [MENTION=4684315]flar2[/MENTION]
[Nexus 6P General] zige:
Oh thats nice to know, thanks!

I checked and not any powersaves or anything like that active. Thats reslly weird. I will contact to dev if he knows something. Thanks for info!
[Nexus 6P General] treIII:
If I would like to try a different governor tweak what are the steps I need to take? And thank you
[Nexus 6P General] nathanchance:
Untick the apply on boot option, load the different profile, then tick the apply on boot option again. If you wanted to be extra thorough, untick the apply on boot option, reboot, load the different profile, then tick the apply on boot option.
[Nexus 6P General] xSilas43:
No need to reboot in between, applyimg the profile/ correctly will handle all the necessary changes for you unless states otherwise. :) I personally just load the new profile and confirm the values has changed from what they were, never had any issues with this method.
[Nexus 6P General] Juzman:
So I've had a bit of a look at DarkSide and made these modifications to see if there is a slight improvement to battery without affecting performance too much [MENTION=5323968]xSilas43[/MENTION] let me know what you think, being despair governor it is new to me.

Loaded DarkSide and changed:

Input boost freq from 960 to 600

Big down threshold from 65 to 50

Freq step from 5 to 10 for big and little

Seems to be working okay so far.
[Nexus 6P General] xSilas43:
Seems interesting but i would recommend researching the conservative parameter s further to understand them a bit more. With the higher freq step it will jump 10% of the current frequency instead of 5% making it ramp up more aggressively, and the 50 down threshold will tell it to jump down when the load is at 50% instead of 65% making it jump down slower as well, If those were your goals then all looks well!