[RESEARCH] Fix cpu cap problem on TouchWiz Rom - Galaxy S 4 i9505 Android Development

Hello guys,
after a lot of test and research with my friend @ktoonsez finally i want ask to all community help us to fix a problem of touchwiz rom.
This thread is also to try to understand who have this problem as me.
First of all the scenario:
- i9505
- KK touchwiz rom (not important the base, i have tried omega, wanamlite,goldeneye, pure stock)
- Stock or custom kernel, is not important since this problem happens also on completely stock rom and kernel
The problem
After heavy playing games for 5/10 minutes the performance became very very low! Game starts to lag a lot and in few minutes became not really playable! The phone is quite hot in the upper part but not really really hot! Exiting game can fix the problem but not always. Only a complete reboot can fix completely the problem!
So i have decide to investigate and i have installed app like KtMonitor (included in kt kernel) or perfmon (http://forum.xda-developers.com/showthread.php?t=1933284) and i have noticed a very strange think!!!
When game start for the first time the cpu speed is max at 1890mhz
After a while the cpu goes to 1458mhz and stays at this freq for a while
After some minutes it scales down to 1242, then to 1134, then to 1026 then to 918 mhz!!!
*When 1134 mhz is reached gpu goes down to 304 mhz and when cpu is at 1026 freq the gpu is at 128/200
In this way the game is not playable anymore!
The only way to see again values upper 1242/1458 is to reboot or wait a long time (and this suggest me a thermal problem)
How reproduce the problem to see if i'm the only one or not!
Install ktmonitor or perfmon (http://forum.xda-developers.com/showthread.php?t=1933284) and lauch it
Install an heavy game such as Asphalt 8 (https://play.google.com/store/apps/details?id=com.gameloft.android.ANMP.GloftA8HM) or Real racing 3 (https://play.google.com/store/apps/details?id=com.ea.games.r3_row) or Front line commando 3 (https://play.google.com/store/apps/details?id=com.glu.flc2) or Ridge Racer Slipstream (https://play.google.com/store/apps/details?id=com.namcobandaigames.ridgeracerss)
Play for some minutes one of these games and during play monitor cpu and gpu (if you are using ktmonitor)
You should notice the cpu scale!
When u report your situation please report also your:
Rom (version also)
Kernel (version also)
Kernel settings (if available)
Bootlaoder version
Particular apps installed
Particular mod flashed
Thanks to all people who want's help me and the community to make these tests and try to find and fix the problem! If we wait for sammy fix...we can die before
Thanks to all!!

Hi
On 4.2.2 MGA roms the Cpu Min 1222 Mhz and Gpu 450mhz,thermal only underclocking Cpu But On 4.4.2 Game lagging and GPU Underclock at 200Mhz xD playing Games 5 Minutes.
App Cpu Overlay Real GPu and Cpu monitor :
https://www.dropbox.com/s/jseymxs5o7g0fg3/CPU_Overlay.1.0.apk
Rom :Wanamlite 2.4 and Stock NBE
Kernel:Adam 2.1
Bootloaderld
Particular apps:Xposed,Wanam Xposed,Xprivacy.
Particular mod:Quicksetting s5 Vrtheme
Thanks for advance.

Related

[Q] Stock kernel - bugs and behavior

Did anybody noticed the following bugs and behavior in stock kernel CPU controls ? If not, can you please post your ROM/build/kernel versions or even firmware version? Maybe some firmwares are fixed?
- Setting max CPU frequency actually change kernel internal min CPU frequency! eg if I set 1GHz max frequency, all cores jump to 1GHz minimum! Setting min CPU frequency seems to have no effect. Only a reboot can recover from this, sadly.
- Setting governor to interactive_eglinteractive freezes the phone which then reboots after a while.
- There doesn't seem to be any mpdecision module running, so all cores are always online, except maybe second CPU cores are turned-off in standby.
On the positive side, it appears that controlling online states of individual cores works well, good to turn off cores when screen's off for example.
I'm running latest received OTA: Android 4.3, kernel 3.4.39-2641344, build version JSS15J.N7505POUBND2.
Most of the features you are talking will not work correctly without a custom OC kernel....So let it be like it is untill we get a custom kernel....

[Mod/Fix] [No Root] Control Overheating and Performance with Thermal Engine

Hi Everybody,
After v45 update, we all are facing huge drop in performance in our Redmi 1s.
One of my dear provided one patch by modifing some system files.
But that patch will yes revert back the performance BUT IT WILL ALSO BRING BACK THE OVERHEATING ISSUE.
So i am presenting you all with this patch.
It will restore your performance and also will control overheating.
NOTE: THIS MOD ONLY CONTROLS MAX CPU+GPU FREQUENCIES AT HIGHER BATTERY TEMPS. SO IT WONT HARM BATTERY PERFORMANCE AT ALL.
How to do:
NO ROOT IS NEEDED NOW.
JUST FLASH ZIPS EVEN THROUGH STOCK RECOVERY.
How to undo:
Just flash undo zip.
Download:
Updated in attachments as recovery flashable zips.
NOW IT CAN BE FLASHED THROUGH STOCK MIUI RECOVERY.
What have i done:
(1) somebody ask me to remove some of the line from the file but if we remove them our redmi will start overheating as it wont control the cpu.
So i have not removed them but i have set them to frequencies which will neither make phone overheat nor will hang it.
(2) file is patched with little help from my nexus.
(3) in the v45 update the cpu was limited to use less than 1ghz. It hangs the phone. So i changed it.
Now reboot and you device will go easy.
Please comment if you find any issue or suggestions.
A thanks will motivate me.
Also if you want to use my mod in any rom then plz give credits.
Credits:
Ryuinferno : for the wonderful script to sign zip files.
Notepad++
My Nexus
Update (17-11-14)
1. Removed density data from patch. Now only used cpu and gpu to control it.
2. Uploaded Hard Gaming, Power saving and Balanced patch for specific usage.
3. Cleaned and power saving based on original parameters.
What have i done :
Lets have a close look at the original \system\etc\thermal-engine-8226.conf file:
algo_type monitor
sensor batt_temp
sampling 1000
thresholds 380 390 420 500 550
thresholds_clr 370 380 400 450 500
actions cpu+hotplug_2+hotplug_3 cpu+hotplug_3 cpu+hotplug_3 cpu cpu
action_info 998400+1+0 998400+1 787200+1 600000 600000
In above lines, the sensor is batt_temp so here battery temperature is observed.
When the temperature of bettery reaches 380 (i.e. 38*C) then cpu+hotplug_2+hotplug_3 will be performed. Means cpu will clock at 998400 mhz and core2 will be hotpluged. Here your device will start hanging as 1.6 ghz cpu is asked to run at only 0.998 ghz with core2 hotpluged.
Similarly, at 390 (i.e. 39*C) core3 will also hotpluged.
35*C is normal temperature. But you will reach around 39-40*C even at light internet browsing/gaming.
At 42*C your cpu will die with only 0.787 ghz speed. This is less than half of 1.6 ghz.
Now what have i done is i have pushed the limits to little high level.
I have stopped hotplugging of cores and to low down the temp. i have used cpu & gpu both.
algo_type monitor
sensor batt_temp
sampling 1000
thresholds 390 410 420 450 550
thresholds_clr 380 400 410 440 500
actions cpu+gpu cpu+gpu cpu+gpu cpu+gpu cpu+gpu
action_info 1344000+450000000 1344000+320000000 1190400+320000000 787200+200000000 600000+200000000
Here at 39*C the cpu will go to 1.34 ghz but the gpu will remain at max of 450 mhz.
Then at 41*C the cpu will remain at 1.34 ghz but gpu will lower down to 320 mhz.
Likewise, at 420*C the cpu will go to 1.19 ghz and gpu will remain the same.
Above 45*C is too hot so the device is really needed to cool down. So above 45*C both cpu and gpu will lower down a lot for enough cooling.
Again when the temperature with lower down, you will start getting the normal speeds.
All the above information is also observed closely with the help of cpu-z apk.
is it really works ??????
why you didn't just simply configure the ondemand governor to do the same thing? Is more easy and can be done manually or using Trickster mod.
Thanks a ton for the patch but flashable zip file be a lot easier to install. So please make a flashable zip.
pgreed said:
why you didn't just simply configure the ondemand governor to do the same thing? Is more easy and can be done manually or using Trickster mod.
Click to expand...
Click to collapse
Ya but as per me if we have limited something in the thermal config file to behave at a specific battery temp. then we can not use any app or mod to change the cpu frequencies.. I have tried that also..
Also this mod controls cpu+gpu+dencity at specific battery temps...
sumitsrk123 said:
is it really works ??????
Click to expand...
Click to collapse
I also had same questions so me and my friend have tested it with the help of cpu-z app...
Cpu-z app gives you details of your battery temp. and your current cpu clock speeds. Set governor to performance and start playing games like need for speed... Then in between checked the temp of the battery and the cpu clock speed ...
It really works it changes the frequencies as per specific temps...
coolpepe said:
Thanks a ton for the patch but flashable zip file be a lot easier to install. So please make a flashable zip.
Click to expand...
Click to collapse
Yo bro... Signed flashable zips are up... Also added undo zip to revert to stock.
This is what i am using ...
I prefer little more performance over heating...
Nice....now i can use the phone @1.6Ghz without heating !!
Beast Mode Unlocked
Thanks Man for this
In a sense. But you cannot run your cpu at 1.6ghz continuously for a very long time.. Every cpu will get overheat.
Here i have tried to make some balance between the performance and heat.
What miui did.. They just tried to limit us to use at 0.99 ghz when temp is above 38.c so i have pushed that limit to high level with help of other factors like gpu and density etc.
So simple you will not be limited if you go at a high limit of temp.. After that slowly slowly cpu gpu and density will be limited and cpu will cool down...
ravinder0003 said:
In a sense. But you cannot run your cpu at 1.6ghz continuously for a very long time.. Every cpu will get overheat.
Here i have tried to make some balance between the performance and heat.
What miui did.. They just tried to limit us to use at 0.99 ghz when temp is above 38.c so i have pushed that limit to high level with help of other factors like gpu and density etc.
So simple you will not be limited if you go at a high limit of temp.. After that slowly slowly cpu gpu and density will be limited and cpu will cool down...
Click to expand...
Click to collapse
What i meant was this is smarted thermal control and i won't be having to manually underclock any more to prevent heating !
Also i can help my friends who are not aware of rooting and stuffs
No you dont need to do anything... this is balanced version..
If you prefer more power or more battery just tell me i will edit it for you according to ur needs..
ravinder0003 said:
No you dont need to do anything... this is balanced version..
If you prefer more power or more battery just tell me i will edit it for you according to ur needs..
Click to expand...
Click to collapse
Can you make it more reliable for hard gaming & multitasking??? Mod is working perfectly and really increased my battery backup and performance, No heat anymore. Thanks bro keep it up.:beer::thumbup:
Sent from my HM 1SW using XDA Premium 4 mobile app
ravinder0003 said:
Hi Everybody,
After v45 update, we all are facing huge drop in performance in our Redmi 1s.
One of my dear provided one patch by modifing some system files.
But that patch will yes revert back the performance BUT IT WILL ALSO BRING BACK THE OVERHEATING ISSUE.
So i am presenting you all with this patch.
It will restore your performance and also will control overheating.
How to do:
NO ROOT IS NEEDED NOW.
JUST FLASH ZIPS EVEN THROUGH STOCK RECOVERY.
How to undo:
Just flash undo zip.
Download:
Updated in attachments as recovery flashable zips.
NOW IT CAN BE FLASHED THROUGH STOCK MIUI RECOVERY.
What have i done:
(1) somebody ask me to remove some of the line from the file but if we remove them our redmi will start overheating as it wont control the cpu.
So i have not removed them but i have set them to frequencies which will neither make phone overheat nor will hang it.
(2) file is patched with little help from my nexus.
(3) in the v45 update the cpu was limited to use less than 1ghz. It hangs the phone. So i changed it.
Now reboot and you device will go easy.
Please comment if you find any issue or suggestions.
A thanks will motivate me.
Also if you want to use my mod in any rom then plz give credits.
Credits:
Ryuinferno : for the wonderful script to sign zip files.
Notepad++
My Nexus
Click to expand...
Click to collapse
HI Ravindar,
Thanks for your post it is helpful.
I tried it. Given better improvement.
Ram performance better
No heating
But
Battery life poor
Can u rectify
Please
What to do to RAM management with thermal control guys??
It have nothing to do with ram dear its totally cpu+gpu+density hack...
Also, this hack comes into action when you overuse your cpu and it starts heating... But at normal usage it only improves your performance at no extra battery cost...
Simple there is no use of having 1.6 ghz if you are limited to use only 0.988 ghz over 38 degrees... I have extended this limit only... As this limit is manadatory for cooling process...
For hard gaming !!! Will be uploading in some minutes...
Thanks for request...
For hard gaming !!! Will be uploading in some minutes...
Thanks for request...
Mod for hard gaming is up... Plz check the op or attachment...

[Q] How to stop a CORE

I think to found the problem that is the cause of battery drain.
I just asked you help to it, but watching with Battery Doctor i think that the cause is the second cpu core that is often at 1600-1700 mhz.
With app like Set Cpu i just tried to set the max frequency to 810-1024 ecc.. but it has effect only for the firts cpu.
How can i stop the second cpu ?
I am using S5 Proyect ROM with BrisK kernel 3.4.0
gian90t said:
I think to found the problem that is the cause of battery drain.
I just asked you help to it, but watching with Battery Doctor i think that the cause is the second cpu core that is often at 1600-1700 mhz.
With app like Set Cpu i just tried to set the max frequency to 810-1024 ecc.. but it has effect only for the firts cpu.
How can i stop the second cpu ?
I am using S5 Proyect ROM with BrisK kernel 3.4.0
Click to expand...
Click to collapse
Hi dude there is an app called CPU governor, is not in the play store but you can look for it on Google i think it could help you!:good::good:

Still heat exists

Hi everyone. Is the heat persist for everyone. Mine in average 65 degree centigrade and going to Max 73 degree centigrade (through cputemp in status bar xposed module). I'm using telsa rom latest build (based on CM11 R17). I have also tried many custom roms and kernels, mods, underclock but same heating problem. Is there anything I'm missing out. Is there anything really working heat problem solution .
Please help let me know any information to be provided further.
try latest carbon rom... mine doesn't go above 38 deg, 45 deg n 60 deg while idle, while using phone n while playing games resp...
Try Latest Carbon or CM11.
I didn't noticed any heating issues in the latest CM11 builds!
I believe that the price of the phone tells us we should NOT have great expectations.Still,it turned out to be an amazing phone,with a great camera,good performance,no major issues(trust me,i owned an xperia L.that phone has obvious issues and Sony does nothing to fix them.I would sue them if I could for selling that on the market).The heating problem can't be avoided.I'm using latest CM11 and I use mostly balanced profile(1401 mHz top frequncy),and when using the phone to send texts,a little browsing,calls and so on it doesn't get heated up,or it gets a little warmer if you watch youtube videos for example,but when I play games,that's a whole new story.It is obviously that the phone is very hot,way above average.And that's it,we have to deal with it.We can't do anything,that's how the phone was build,the materials they used and so on.On stock the phone has some thermal engine control,if the phone got too hot it dropped the CPU frequency.Now on CM11,there's nothing similar,so we have to be careful to not let it stay hot as hell for too long,it might burn the CPU.I will ask the rom developer about this concern.Hope I helped you.All the best !
The best solution for "Heating Problem And Faster Battery Draining":
1)Flash latest Carbon Rom RC6 4.4.4 (it has its own kernel which is very much optimized and has some more governers)
2)After flashing Carbon Rom click go to settings>about phone> click build number 5 to 6 times to activate Developer options and Performance menu.
3)In performance menu Set maximum speed to 998 Mhz and minimum to 300 Mhz, Set the Governer to "conservative" and I/O Scheduler to "cfq".(If you play games alot then set max frequency to 1190)
4)Install Xposed framework
5)Install Greenify app, now activate its module in Xposed Framwork.
6)Add all applications to greenify list and greenify them. Set the Working mode to Boost. Also check auto hibernation mode.
7)Also create a hibernate now shortcut to homescreen to greenify apps frequently when you dont use them.
Now your phone will never heat and it will increase your battery by 50%
Enjoy
cm11
try cm 11 with xcelerate kernel for better batt and heat control

[Q] phone crashing

Need help or advice , last week i've been using lollipop rom, im not familiar to the new settings and setups on this so i explore and try the kernel settings. I set my kernel setting to maximum, like cpu which is about 1750 mhz all cores and gpu 450 thermal off etc. Because i hve been seen some comment that the lollipop rom reaches to about 27000 k antutu score . i tried it by my settings which is my phone crashed while testing it to about 25% of testing. Now i just go back to sling rom and try again to test with no modification with the kernel or any optimizing the performance and im surprise that it crashed too and tested with putting my phone on the freezer which i guess im having phone temperature problem but it crashed too. Now while charging and testing in the same time it completes the benchmarking of my phone.
I guess my battery is the reason my phone is crashing when on the heavy load of using
Or some hardware issues? Like cpu,gpu ??
Sorryto my bad english and explanation. Thanks
delacruzivancarlo25 said:
Need help or advice , last week i've been using lollipop rom, im not familiar to the new settings and setups on this so i explore and try the kernel settings. I set my kernel setting to maximum, like cpu which is about 1750 mhz all cores and gpu 450 thermal off etc. Because i hve been seen some comment that the lollipop rom reaches to about 27000 k antutu score . i tried it by my settings which is my phone crashed while testing it to about 25% of testing. Now i just go back to sling rom and try again to test with no modification with the kernel or any optimizing the performance and im surprise that it crashed too and tested with putting my phone on the freezer which i guess im having phone temperature problem but it crashed too. Now while charging and testing in the same time it completes the benchmarking of my phone.
I guess my battery is the reason my phone is crashing when on the heavy load of using
Or some hardware issues? Like cpu,gpu ??
Sorryto my bad english and explanation. Thanks
Click to expand...
Click to collapse
See this thread and check you PVS value of CPU....
http://forum.xda-developers.com/nexus-4/general/poll-cpu-binning-t2052496
If you are getting slower or slow PVS, try to increase the voltage of 1750mhz freq and run the benchmark...
Hope it helps
hasan4791 said:
See this thread and check you PVS value of CPU....
http://forum.xda-developers.com/nexus-4/general/poll-cpu-binning-t2052496
If you are getting slower or slow PVS, try to increase the voltage of 1750mhz freq and run the benchmark...
Hope it helps
Click to expand...
Click to collapse
Thank you . the result of my PVS is 4. I also suspect that i have low voltage to run the processor thats why when im doing benchmark it shutdown even playing COC.
How can i change my voltage and what is the default voltage ? Thank you again.
delacruzivancarlo25 said:
Thank you . the result of my PVS is 4. I also suspect that i have low voltage to run the processor thats why when im doing benchmark it shutdown even playing COC.
How can i change my voltage and what is the default voltage ? Thank you again.
Click to expand...
Click to collapse
trickster mod or faux clock app...

Categories

Resources