yashsingh1/xdaforums huggingface dataset:
[One (M9) Android Development] Roobwz:
Alrighty. Nice battery btw. Im stuck at 5-5.30 SOT :((

Skickat från min HTC One M9 via Tapatalk
[One (M9) Android Development] Mostafa Wael:
Come on! 5.5 hrs SOT, what else ? :D :silly:

I will keep on refining it as much as possible :angel:
[One (M9) Android Development] biglo:
Looks like your making good progress
[One (M9) Android Development] Mostafa Wael:
Yes!

And from the next version, EX kernel will be a pre-requisite, since I will be using conservative CPU governor for the big cores to help tame the thermals for browsing

:)

I am just making my final tests before release ;)
[One (M9) Android Development] Mostafa Wael:
Kicking off good so far :)

Brace yourselves :cowboy:
[One (M9) Android Development] shezaad879:
Stop teasing us... Release it :p:D
[One (M9) Android Development] Mostafa Wael:
Well if you are vigilant enough, you should notice it is released already ;)

Pre-requisites: EX kernel should be installed

Conservative CPU governor should be selected only for the big cluster
[One (M9) Android Development] shezaad879:
Damn! I use Lee's kernel... :(

Any plans for Lee's yet? And do you encounter any lags?
[One (M9) Android Development] Mostafa Wael:
With the current setup no

Thermals considerably better
[One (M9) Android Development] shezaad879:
Thanks. I'll give it a go asap ;)
[One (M9) Android Development] VFL:
What rom u used and Kernel ? Coole or Gaming Beta ?
[One (M9) Android Development] biglo:
Any good news for me?
[One (M9) Android Development] Mostafa Wael:
So far yes :)

Just hang on and sit tight hehe
[One (M9) Android Development] biglo:
Thank you sir
[One (M9) Android Development] Mostafa Wael:
Just hang on till we confirm that it is all good here in the M9, then i will instantly make it to your Nexus 6P
[One (M9) Android Development] biglo:
Not a problem, makes sense to me.
[One (M9) Android Development] lu_peng2:
just for information after re-flashing rom and kernel and ur file the elemental x Thermal comes with

msm_thermal Disabled and Core_control Enabled

i'm using a file from daily use (relaxed) with date 17/05/2016 with ElemantelX and big cluster conservativ

any special Governor profile to apply or just leave it like it comes out of the box
[One (M9) Android Development] Mostafa Wael:
Leave it out of the box untouched :)

Report results please :D
[One (M9) Android Development] Mostafa Wael:
That commit of switching big cluster to conservative has pretty much brought more bad than good.. :rolleyes:

Need to think again what to do...

Just switch back to interactive governor
[One (M9) Android Development] Mostafa Wael:
Keep on daily use (relaxed) gentlemen, nothing to see here :(

Still thinking
[One (M9) Android Development] Mostafa Wael:
44 minutes of Marvel Future Fight

max battery temp is 42 degrees!

average frame rate is 40 fps (due to that lot of stops :p)

What else ? -> browsing... still to be confirmed...:rolleyes: [MENTION=1904718]biglo[/MENTION] good news coming bro :)
[One (M9) Android Development] p50kombi:
I seem to keep going back to the 'old' daily use.

That one seems a bit better for me than all the others..

I'll keep trying then though.. :laugh:
[One (M9) Android Development] biglo:
Sounds good to me
[One (M9) Android Development] lu_peng2:
me too, back to cooler and lee droid kernel (R13 motivated me to flash and stop the test) anyway i did't feel any improve even it got worse with conservative)

defiantly the cooler works best for me i just can't decide between ElementalX or Lee's kernel

and i'm thinking to switch on msm_Thermal in the ElementalX app but first i want to get where i was 2-3 days ago
[One (M9) Android Development] Mostafa Wael:
That is normal, I was just plotting for a new "experimental" idea and it just didn't live up to the expectations, hence the test tag ;) That is the point of providing test files here, to gain feedback and refine the file based on this feedback ;)

leave those msm_thermal and core_control as they are out of the box. Flar2 has stated that those settings are kind of "not functional" and therefore messing up with these settings may bring unpredictable actions...

Anyway, glad you liked the cooler file :) :good:

I am testing another file that goes even more extreme. [MENTION=4388232]ZeroInfinity[/MENTION] could you elaborate ? hehe :D
[One (M9) Android Development] ZeroInfinity:
http://xdaforums.com/showpost.php?p=65835490&postcount=2059 Not sure if you should use it, even Flar recommended you do not touch that setting, as what Mostafa said.

Oh man this test file could be the sweet spot for thermal/performance! Will be testing GTA SA, LCS, and Assassin's Creed Identity today :D

EDIT: here we go: Assassin's Creed Identity - the game is poorly optimized so it's often laggy, not due to thermals. However temps are pretty nice.

GTA SA - temps are good, only warm (battery around 40C) after 30 minutes of playing, slightly laggy here and there (Resolution, Draw Distance, Reflections on max, all others are either low or off)

GTA LCS - no lags whatsoever, temps are still great after 30 mins of playing (Maxed graphics, dynamic shadows disabled)

Marvel Future Fight - played Team Up Mode, world boss, and timeline battles, performance is still decent, temps are still around 40C battery (Performance set to High, graphics on Medium)

overall this is a very good balance between performance/thermals. Additionally, battery endurance when gaming has greatly increased due to less cpu power used by throttling, gpu has a more flexible throttling so performance is still decent.

Note: I played these games one after the other without letting it cool down, it is still amazing imo.
[One (M9) Android Development] Mostafa Wael:
And here you have it guys! Happy days Zero :) :highfive:
[One (M9) Android Development] BLEK0TA:
Hey guys can you please post here your rom settings cuz I'm can't beat more than3 hours SOT

Please post here your:

- kind of rom

- kernel and kernel settings

- kind of file from first post

- special features like xposed hibernation tool or something special

Please that would be very useful for all M9 owners.
[One (M9) Android Development] Roobwz:
Use greenify and naptime. Try leedroid with your desired kernel. Should get you 5h+ SOT

Skickat från min HTC One M9 via Tapatalk
[One (M9) Android Development] BLEK0TA:
What means desired kernel
[One (M9) Android Development] Roobwz:
Either LeeDroids kernel, the stock one or Elemetalx.

Skickat från min HTC One M9 via Tapatalk
[One (M9) Android Development] Mostafa Wael:
Well according to [MENTION=4645599]DeeZZ_NuuZZ[/MENTION] greenify auto hibernation is not working well. However, aggressive doze is. Just sayin...
[One (M9) Android Development] fhartane:
May I ask how is auto hibernation not working ?
[One (M9) Android Development] DeeZZ_NuuZZ:
it does't work 100% some apps won't be hibernated according to greenify so they are still active in background.. might be a bug, but i just noticed it now
[One (M9) Android Development] TouchscreenLover1:
Sorry if I'm stupid but what is the difference between ther Folder cooler and daily use?
[One (M9) Android Development] Mostafa Wael:
Cooler has more aggressive throttling in an attempt to produce cooler thermals, however it may not work for some. For some people daily use is better, so you have to try yourself and set which one suits you more ;)
[One (M9) Android Development] fhartane:
Hey [MENTION=5060769]Mostafa Wael[/MENTION] someone mentioned the fact that he is using this mod on CM13 on the CM thread. I'm currently using this ROM (wanted to try something different from HTC Sense), do you think I would get some benefits using your thermal file although there is no pnpmgr file on CM ?

Envoyé de mon HTC One M9 en utilisant Tapatalk
[One (M9) Android Development] Mostafa Wael:
Well that is a tricky question :o

CM may have its own hotplug engine instead, so maybe the mod works and maybe not. And it may crash as well. You need to track the CPU behaviour and tell me ;)

But I suppose it will work just well,....hopefully :D
[One (M9) Android Development] lu_peng2:
so thats with lee's rom and kernel, mostafas Cooler and half of it with msm_thermal on and other half off (no influence)

almost never over 40 even when i was surfing nonstop for hours (greenify is running too)

naptime has a big impact???
[One (M9) Android Development] BLEK0TA:
Despite to your recommendations my batt is still draining 1% per hour in fly mode...
[One (M9) Android Development] Roobwz:
When was the last time you did a clean flash? Fb installed ?? You need to give more info about your usage and setup. Run gsam monitor and post A screenshot. That will help us more than just sayinh that your standby is bad

Skickat från min HTC One M9 via Tapatalk
[One (M9) Android Development] Mostafa Wael:
Then that is a baaaaad app abusing your phone.

You need BetterBatteryStats to track the wakelocks and determine which app is abusing your phone. Hang on I will link you to a very good thread that should introduce you to some of the neat tricks you need to improve your battery. Even they may analyse the wakelocks for you :)

Your problem is not of a thermal kind, so here you won't find that much of help sadly....

Wait for an edit...

EDIT: http://xdaforums.com/android/general/guide-extreme-battery-life-t3095884/page933

Enjoy :)
[One (M9) Android Development] Mostafa Wael:
That means the msm_thermal tuning has no effect

Anyways, just leave it as it was out of the box :)

I am sure this is the best.

Happy days :)
[One (M9) Android Development] Mostafa Wael:
for those having temps higher than 42C, do bear in mind that the newest file has added step that bumps the big core back to 1.4 GHz after temp reaches 42C. Why? Well certainly if temps just keep climbing, then you are certainly gaming, and you don't want thermal barriers to spoil your gaming pleasure, so with that 2:1 mode at 1.2/1.4 GHz respectively, you will get back to your 60-ish average fps and enjoy your game session. Max temp here was 44C.... what do you think ?
[One (M9) Android Development] amokkatxda:
I think you should leave this in "gamin" profile. Also want to ask if there is a way to apply different thermal-config on the fly, without reboot?
[One (M9) Android Development] Mostafa Wael:
Without reboot would be so difficult.

However, a flashable zip should be possible.

I am just too busy to look into making it in a flashable zip :angel:

FYI, any change in the system files will need a reboot to apply ;)
[One (M9) Android Development] DeeZZ_NuuZZ:
we already think about it, especially for other files too, which we mod, which has nothing to do with this mod. the problem is, some files are so deep into the system that it is difficult to apply on the fly.

maybe we can find some ways. but it will take time to find them out
[One (M9) Android Development] amokkatxda:
Kernel Adiutor has a switches for thermal services like pnp, throttle. If I turn it off and on, config file will not be re-read? Or we can restart some service?
[One (M9) Android Development] Mostafa Wael:
Well Kernel Adiutor app is not that accurate and can have some settings that are not actually there, and flar2 recommended not to touch them

However you said a brilliant idea and I will keep an eye on it for sure

My hypothesis, it won't have an effect
[One (M9) Android Development] Mostafa Wael:
Oh, almost forgot. I will add it for sure, but I waw just saying hehe ;)

I am testing a newer config that looks to sustain lower temps (2 little at 1.3 GHz + 3 big at 1.2 GHz)

I will introduce it in the middle between the hexa-core mode and 2:1 mode as mid ground, then switch to that 2:1 mode when temps still raise

However, i guess we reached a veerrrry good spot with the newest test file 18/5 imo
[One (M9) Android Development] blackflagsvn:
I downloaded the file from dropbox. Its name is file.txt, isn't it? So do i have to rename it to thermal-engine.conf before applying?
[One (M9) Android Development] mutil:
Yes you have to rename it
[One (M9) Android Development] Krsmqn:
Is this compatible with aosp roms, like cm12/13?
[One (M9) Android Development] DeeZZ_NuuZZ:
Yes it should be, but in case backup stock file and try the modded.
[One (M9) Android Development] Krsmqn:
Thanks for the reply. I only asked because CM13 doesn't use pnpmgr. But the file is found in the same place. Any who, I'll try it out and see if I can report back on it.

Thanks again.
[One (M9) Android Development] Mostafa Wael:
Good news everyone

Uploaded a test file today morning

https://www.dropbox.com/s/9uvcqlltql26yre/thermal-engine.conf?dl=0

Should be probably a release candidate

Please use and report :)
[One (M9) Android Development] Roobwz:
What changes??

Skickat från min HTC One M9 via Tapatalk
[One (M9) Android Development] Mostafa Wael:
At 35C -> little cluster throttled to 1.2 GHz

At 36C -> 4:2 mode with big cores at 1.4 GHz

At 38C -> 4:2 mode with altering cores for better thermals plus big cores throttled to 1.3 GHz

At 40C -> 3:2 mode plus big cores at 960 MHz

At 41C -> 2:2 mode

At 42C -> 2:1 mode plus big core set to 864 MHz

GPU kept 390 MHz
[One (M9) Android Development] Mostafa Wael:
[MENTION=398245]LeeDroid[/MENTION] please have a look in this one

https://www.dropbox.com/s/9uvcqlltql26yre/thermal-engine.conf?dl=0

Most likely will be a newer one to include as an option in your ROM ;)
[One (M9) Android Development] TnG2903:
Hello

I've been using LeeDroid's ROM for a while on my M9 Sprint (S-OFF). Then, I apply the cooler beta thermal configuration. Things went great. But for some reason, recently, my battery is being drain like crazy. Here are some screenshot taken from GSMonitor. Are these consider normal? Especially the media server and android kernel...

Thank you in advance :D. And really sorry for my bad English, still learning :D
[One (M9) Android Development] DeeZZ_NuuZZ:
one of the game seems to keep the phone awake. open the gsam stats of the games and see what it shows. if music on is helding awake soo long, it's either a game, or something else. nothing related to this mod
[One (M9) Android Development] 1337jay:
Will this work normally with elementalx? Since I went back to ViperM9 with EX my phone is like a heater.
[One (M9) Android Development] Mostafa Wael:
Sure it applies for EX normally :)
[One (M9) Android Development] 1337jay:
Is this normal? Seems odd or maybe thats why its keeping my phone cool.
[One (M9) Android Development] DeeZZ_NuuZZ:
Yes, thats totally normal.
[One (M9) Android Development] Mostafa Wael:
That's why your phone is cool bro :)

Take it easy on yourself and relieve this pressure of having to log everything haha
[One (M9) Android Development] 1337jay:
Well, that's true...but you know, I always keep an eye on things like that :P
[One (M9) Android Development] Mostafa Wael:
Okay latest news

HeatBuster Mark25

1 hour 45 minutes YouTube streaming:

Straight 37C :)
[One (M9) Android Development] hhhfdq:
this test work with any rom, any kernel? or work with elmentax
[One (M9) Android Development] DeeZZ_NuuZZ:
It works with every kernel which has HTC pnpmgr . So all sense kernels. I don't know much about cm/aosp kernels
[One (M9) Android Development] fhartane:
I read on the CM13 thread that someone was using it on CM. Haven't had the chance to try it myself yet though. Will do later when I have more free time and let you guys know about it.
[One (M9) Android Development] Mostafa Wael:
Nice work my friend [MENTION=4645599]DeeZZ_NuuZZ[/MENTION] :) :highfive:

[MENTION=7121407]fhartane[/MENTION] well CM may work and may not. I remember someone reporting me that he had soft reboots one day, and the other day it was working flawlessly, so... you have to try it yourself :)
[One (M9) Android Development] Mostafa Wael:
Replies may be delayed a little bit long since I had a panic attack that dropped blood pressure too low (80/50) and i had insufficient oxygen intake problems as well as my body getting cramped a lot everywhere. Dev will be paused till I feel better.... once I am back I will notify you of course. Wish me good luck. Thanks
[One (M9) Android Development] anto12:
Take your time, get well soon dude
[One (M9) Android Development] DocLem:
I appreciate the work that was put into this, it sounds really great, thanks! And I hope you get well soon.

I have a question that I hope someone can answer: I am on Viper One M9 4.3.0 with the elementalX kernel and EX Kernel Manager. If I install this, which settings do I have to change on EX Kernel Manager or are the default settings good already?

I ask this because when I copied the thermal file over to system/etc, I played Drastic (DS emulator) game which heated up the phone and eventually auto-restarted. This happened twice so I suppose it's because of overheating issues. I don't know if I installed it correctly.
[One (M9) Android Development] BUBBA DUB'S:
Did you change the permissions on the file the reboot before using?
[One (M9) Android Development] Tikerz:
What is this app? Also, to confirm thermal throttling is based on battery temp not CPU temp? Thanks!
[One (M9) Android Development] hhhfdq:
get well soon..
[One (M9) Android Development] DocLem:
Yes I did. it's -rw-r-r right?
[One (M9) Android Development] Mostafa Wael:
Okay I eventually got to my senses.

Massive news everyone!

A new overhaul is incoming.

Final testings before release.

It will be a lot safer and should be much better than any other past file.

Will talk about it later.

Thanks to all the kind words from ya people. Very much appreciated :)
[One (M9) Android Development] lu_peng2:
glad to hear you feel better, take care
[One (M9) Android Development] avivhaiser:
Glad to see that you are better now :)
[One (M9) Android Development] Mostafa Wael:
[MENTION=1904718]biglo[/MENTION] i guess your file will be nearly out.

However, it won't tolerate any gaming...

Here is what i planned

35C -> hexa core mode with frequencies limited to 1.3 GHz for little cores and 1.4 GHz for big cores

37C -> big cores limited to 1.2 GHz

39C -> big cores limited to 960 MHz

41C -> turn off big cluster

That way, your phone should stay bounded between 35C and 37C. And if it bumped up to 39C, that 960 MHz should limit the heat. 41C will pull out the last card, which is shutting down the big cluster.

GPU throttling will remain stock. What do you think?

Sorry for the sooooooo late reply. But i had a lot of things and i faced a severe health "issue" days ago. Plus i faced the worst exams in my entire life now, and i was a bit busy tuning the files for the M9 and your Nexus 6P... :)

I hope you are still there hehe :D
[One (M9) Android Development] biglo:
Yeah I'm still here! Sounds promising to me. I'm not a gamer at all so I won't have any issues. Can't wait to give it a test.
[One (M9) Android Development] avivhaiser:
[MENTION=5060769]Mostafa Wael[/MENTION]. Hey man, sorry for not being so active, been busy with exams. I am back for full testing if needed, just lemme know ;).

So far I have just been using the daily (regular) and im loving it, great with gaming as well :). I was wondering tho, how similar is the daily (regular) to the one in lee's kernel?
[One (M9) Android Development] Mostafa Wael:
It is the same

And it is not integrated in kernel, rather in the rom :)
[One (M9) Android Development] Mostafa Wael:
Life is full of plot twists, but whatever happens, stay #Cool :D
[One (M9) Android Development] avivhaiser:
Aight, cool. Good to know :).
[One (M9) Android Development] BLEK0TA:
Can I rewrite thermal configfile in cyanogen rom?
[One (M9) Android Development] hhhfdq:
i think maybe not..
[One (M9) Android Development] Mostafa Wael:
Okay everything is ready to release. Stay tuned on this post as this is where I will post the things....

But first, let me introduce you.....

Team Helix

[MENTION=4645599]DeeZZ_NuuZZ[/MENTION] [MENTION=4388232]ZeroInfinity[/MENTION]

And me :D

I owe them a lot for their help with my new version of thermal mod :highfive: :good:

Stay tuned.... :)
[One (M9) Android Development] Rhadamanthis:
installed at optimized, i have turned on antutu, best +90000 not freezer ;)
[One (M9) Android Development] Mostafa Wael:
Excellent news! can you post the 3D score ?
[One (M9) Android Development] hhhfdq:
try optimized now
[One (M9) Android Development] xunus:
I'm getting 94783, 3D score 32149:D
[One (M9) Android Development] Rhadamanthis:
sURE MY FRIEND!"!!!
[One (M9) Android Development] blackflagsvn:
Just copy the thermal-engine.conf file of our choice to the device as before?
[One (M9) Android Development] ZeroInfinity:
flash the latest zip in recovery here: http://xdaforums.com/showpost.php?p=67178914&postcount=330

all you need to do is flash like normal and go through the options in the aroma installer. Reboot and done.
[One (M9) Android Development] exup86:
hello good work

which mode best battery life ?
[One (M9) Android Development] Mostafa Wael:
okay, the surprise was that all files are in an Aroma Installer now, no need to bother yourself copying thermal files and changing permissions and reboot. You now have them simply in one file. Just boot in recovery mode, then flash the file and select your option and voila!

Thanks to [MENTION=1792279]ivicask[/MENTION] for that :good:

And thanks [MENTION=4388232]ZeroInfinity[/MENTION] [MENTION=4645599]DeeZZ_NuuZZ[/MENTION] for rectifying it :highfive:

Anyway, I guess I may pause a little bit on that now. Still, I have to update the gaming file to improve the experience for some CPU-intensive games like Real Racing 3 for instance, though it may be a hard nut to crack to be honest as this SoC's "cool part" is not actually cool, and that messes the whole thing.

A quick peek at what used to happen on Real Racing 3:

The phone runs the game flawlessly smooth till 37C, which I some times reach it before even starting a race, then the big cores lie flat down at 384 MHz and the Little cluster goes straight 1.5 GHz as per task migration actions in an attempt to cool down the phone, but sadly that does not help as the little cluster heats up badly when such action is done, and temps continue to rise reach a scorching 46C or even 47C in like 10 minutes. Maybe if the ambient is a bit cooler it will be 45C which is far from being acceptable, specially when you see the performance being so choppy and inconsistent as well, though that inconsistency may be a fault in how the game is coded. What supports my hypothesis about the issue being solely depending on the little cluster is that High Performance Mode, which can be enabled in the Developer options in the settings, delays that task migration act a little bit, and actually the game takes a bit more time to heat up the phone to the 43+C range, which means the big cluster IS needed in this game and the little cluster must be toned down...

So my initial plan is to do the following:

1- use throttling policies as per "Optimised" file till 40C

2- 41C brings down the big cluster to 960 MHz and the little cluster to 1.2 GHz

3- 42C locks the phone in a 2:2 setup

4- 44C brings down the little cluster to a harsh 960 MHz, since at this point the little cluster will be stuck at max frequency so there is no option to do rather than hard limiting its max frequency...

Of course I will be using EX kernel's "min performance percentage" setting since this can control the task migration and will certainly come handy :)

Maybe I can try to mess with the task migration part in the thermal file as well so we do not depend on a certain kernel.

Anyway, this should take some time gents, so wish me good luck in that :D

[MENTION=1904718]biglo[/MENTION] your file is done, will be uploading in a few minutes. Please do post feedback. I shall be way more responsive to replies now :cool: I am officially in vacation :D
[One (M9) Android Development] Mostafa Wael:
[MENTION=1904718]biglo[/MENTION]

Here you are

https://www.dropbox.com/s/jn3cmw33833qdjw/thermal-engine.conf?dl=0
[One (M9) Android Development] biglo:
Thanks will post feedback by the end of the day tomorrow.
[One (M9) Android Development] Mostafa Wael:
Take your time buddy :)