yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 1S] ravinder0003:
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
[Xiaomi Redmi 1S] ravinder0003:
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.
[Xiaomi Redmi 1S] sumitsrk123:
is it really works ??????
[Xiaomi Redmi 1S] pgreed:
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.
[Xiaomi Redmi 1S] coolpepe:
Thanks a ton for the patch but flashable zip file be a lot easier to install. So please make a flashable zip.
[Xiaomi Redmi 1S] ravinder0003:
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...
[Xiaomi Redmi 1S] ravinder0003:
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...
[Xiaomi Redmi 1S] ravinder0003:
Yo bro... Signed flashable zips are up... Also added undo zip to revert to stock.
[Xiaomi Redmi 1S] ravinder0003:
This is what i am using ...

I prefer little more performance over heating...
[Xiaomi Redmi 1S] SH3H1:
Nice....now i can use the phone [MENTION=1247388]1.6[/MENTION]Ghz without heating !!

Beast Mode Unlocked :D

Thanks Man for this :)
[Xiaomi Redmi 1S] ravinder0003:
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...
[Xiaomi Redmi 1S] SH3H1:
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 :)
[Xiaomi Redmi 1S] ravinder0003:
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..
[Xiaomi Redmi 1S] dhrtlockeroo9:
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:
[Xiaomi Redmi 1S] suneelkumarpalla:
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
[Xiaomi Redmi 1S] SH3H1:
What to do to RAM management with thermal control guys?? O.o
[Xiaomi Redmi 1S] ravinder0003:
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...
[Xiaomi Redmi 1S] ravinder0003:
For hard gaming !!! Will be uploading in some minutes...

Thanks for request...
[Xiaomi Redmi 1S] ravinder0003:
Mod for hard gaming is up... Plz check the op or attachment...
[Xiaomi Redmi 1S] pgreed:
why did you limit the max frequencies of gpu at 400MHz? (in the balanced control)
[Xiaomi Redmi 1S] ravinder0003:
Mostly our device gets heating while playing games or using internet.. Underclocking the gpu helps in reducing extra heat a lot. The same has been observered in samsung handsets and lg nexus series, that they both also reduce heat with gpu+cpu... So i have added them also. It wont harm gaming as i dont have reduced cpu+gpu at the same time...

If you have any other thought then share that...
[Xiaomi Redmi 1S] akhilkumarco007:
hie ravinder i like your work very much and could you please clarify which version will provide me the better battery? rds one or hard gaming one? :fingers-crossed:

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

ravinder i play lot of games currently im playing mc5 so i just installed your hard gaming patch but i just wanna get more battery while i dont play the game so which version do you suggest for me bro or can you please consider making another patch for my needs? ;) :p please? :o
[Xiaomi Redmi 1S] ravinder0003:
Give me little time.. I will explain the whole algo..in detail...so you will self be able to know what to use..
[Xiaomi Redmi 1S] esrom02:
Thanks for this! Will try the Balance one.. :)
[Xiaomi Redmi 1S] spironox:
Dear Ravinder

Please update us with the information

very few like me have just stumbled upon into REDMI 1s updates and are worried about the heating .
[Xiaomi Redmi 1S] immu07:
good...job....but. with applying this zip...does the battery life goes down....and to what temp it reahes...like playing asphlt 8 games...:confused:
[Xiaomi Redmi 1S] FrozenMindXXIII:
Thanks, this help me a lot
[Xiaomi Redmi 1S] ravinder0003:
Temp depends upon so many factors like room temp, plugged into charging or not, internet data on or not, graphics of the game etc etc ... You can chk the temp by using cpu-z apk from playstore
[Xiaomi Redmi 1S] spanda:
Your patch is good on standby. But, when im using phone it is draining battery very very fast. Im using the balance mode. Can you solve this please .:confused:
[Xiaomi Redmi 1S] Marius Cristian:
I tested the balanced mod and I can say it's working very good.I have't noticed any issues,the phone heats about the same but it doesn't lag after 15-20 minutes of intense gaming.I'm very satisfied with this feature.Also haven't noticed battery issues yet,hope to don't have what to notice at all.Thanks again!
[Xiaomi Redmi 1S] Leftrand:
Any one tested playing games during charging ?

Because most overheating caused while charging and playing at the same time.
[Xiaomi Redmi 1S] ravinder0003:
Again saying the same thing this mod does not directly affect battery... It tunes your cpu and gpu to avoid some extra heat and gain more performance...
[Xiaomi Redmi 1S] akhilkumarco007:
bro will hard gaming patch has any effect on battery life? :confused: as i told you i play lot of games so i want some extra performance with same battery and i just dont want this mod to let my battery down ... so is it possible? :o
[Xiaomi Redmi 1S] vague1030:
Thank you!

thank you very useful patches. :)
[Xiaomi Redmi 1S] ameer18:
dear ravinder....

..so ..after applying the zip...if i found its not bettr than ,,,how to revert back..to original..settings....ie origianl config.....:confused:
[Xiaomi Redmi 1S] Marius Cristian:
You have in OP an zip to flash if for some reasons you want to revert...but trust me,you won't do that.it really works.I use the balanced mod as i'm not a heavy gamer,i just play during a subway trip,when i get bored at college or a little before going to bed to lower the battery if i have too much so i can put it on charge over night.
[Xiaomi Redmi 1S] gummie:
SO this only works on MIUI V45 Kernel? So it means does not work ong V43 and later as well as Custom ROM such as AOSPA, CM11 and dervatives?
[Xiaomi Redmi 1S] ravinder0003:
Before v45 there was nothing to control the heat... Cpu was throttled at full speeds always..so so much of heat was generating but it was not controlled... In v45 miui limited our cpu to 0.998 ghz above 38°c to reduce heat...thus it just killed our device ...

So this mod works with previous versions also...
[Xiaomi Redmi 1S] gummie:
Tried the balance script on CM11 but it messes the kernel settings. The GPU starts at 200Mhz on startup, it does well to tone down CPU Frequency but it won't turn them back up when cooled down.
[Xiaomi Redmi 1S] ameer18:
dear

so....flashing..the balanced mode.zip file....can i play asphalt 8 with out lag on medium settings...

and one thing....after.....flashing...do i get the further updates,,,,,,by xiaomi

,,,is so...after...updating...these settings...wil be on that version also?????:confused:
[Xiaomi Redmi 1S] ravinder0003:
When the system cools down that means you are out of given threshold then the cpu gets back to previous frequency automatically...

If you have any issue with cm11 then send me original file from cm11 and pm me...

The issue that it gets stuck on 200 mhz is due to frequency table mismatch...

Will do that its simple...
[Xiaomi Redmi 1S] ravinder0003:
Thank you so much everybody for such a huge and beautiful response...
[Xiaomi Redmi 1S] Mahikp:
Can you provide this patch for mokee rom or some othrr custom rom like cm11 ?
[Xiaomi Redmi 1S] ravinder0003:
Plz upload the same file from cm11 ... I will patch that also
[Xiaomi Redmi 1S] suneelkumarpalla:
Hi,

I am using balance mode. It's heating and drying battery when I play movie , battery temperature is above 41 c.
[Xiaomi Redmi 1S] adewisman:
A simple question, Can the script use alongside nofrills or should i uninstall nofrils to use this script ? Thanks in advance

Sent from My Xiaomi Redmi 1S
[Xiaomi Redmi 1S] LyNChP1N:
I noticed your thread earlier. I have observed that using 1.4 ghz udnerclock reduces heating immensely on this device. Was using like that till now. I have modified my thermal cofig based on ur parameters from balanced version for gpu. Temperatures never go above 36 degree with data on and multitasking. I have put it to underclock when temp reaches 35.5. When using antutu benchmark, temp reaches 38 degree at max even if you do three tests. The only time my phone reached 40 degrees is when i cleared dalvik cache and cache and rebooted the phone.

Is 1.344 better than 1.402 ghz for reducing heating? I mean is ther signifciant voltage difference?

Compared to underclocking cpu, how much effect does underclocking gpu have on heating?
[Xiaomi Redmi 1S] Didam:
Comparison with another method

Hi Just would like to ask you about the conf file I attached. The method says that I only need to put this conf file into the etc folder of a rooted phone.

What do you think about it?

Attached is the conf file.

Thanks

I was about to put the link to the method, but it was not allowed as I am a newbie here and it is my first post.
[Xiaomi Redmi 1S] Didam:
CPU-Z vs Clean Master

Talking about CPU-Z, I am also using Clean Master. Which one represents better the situation? Usually Clean Master shows much higher temperature than CPU-Z.
[Xiaomi Redmi 1S] akhilkumarco007:
ravinder my gpu is at 320mhz at 32degrees why isnt it running at 450mhz? :crying:
[Xiaomi Redmi 1S] andriepu:
Should I flash 3 of them (gaming, balance, powersaver) ?
[Xiaomi Redmi 1S] ravinder0003:
only use one of these as per your needs...

also if gpu is at 320mhz because ondemand governer is the default one which is controlling it... will go to 450 if system will need to
[Xiaomi Redmi 1S] bhatia.mani:
Hi,

My phone is rooted, so i copied below lines

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

and changed values in the original file without deleting original format and saved and restarted the phone.

Hope this should work...
[Xiaomi Redmi 1S] szxa21:
My GPU is stuck on 200mhz even on 30'c while using the Balanced tweak. Any ideas? I'll try the Hard Gaming mod insted. Wish me luck. :)

---------- Post added at 08:33 PM ---------- Previous post was at 08:11 PM ----------

I'll copy this if you wouldn't mind. :) I'll try it if it'll work for me. tehee
[Xiaomi Redmi 1S] brahmastra:
Thanks man........
[Xiaomi Redmi 1S] MikeUI:
I've done a script like this since Xiaomi released the MIUI v45 update.

I've Also Done This Script since MIUI Rolled The v45 Update out and it didn't strike my mind to underclock the GPU except when i saw your thread anyways here's mine. :)

Here's Mine: I've Got the Underclocking GPU idea from you but the others done it myself since the v45 update ;)

sampling 7000

[CPU0-1_MONITOR]

algo_type monitor

sensor cpu0-1

sampling 900

thresholds 110000

thresholds_clr 105000

actions shutdown

action_info 0

[CPU2-3_MONITOR]

algo_type monitor

sensor cpu2-3

sampling 900

thresholds 110000

thresholds_clr 105000

actions shutdown

action_info 5000

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+hotplug_3 cpu+gpu cpu+gpu

action_info 1497600+450000000 1401600+450000000 1344000 1094400+320000000 998400+320000000
[Xiaomi Redmi 1S] makuru:
I was just wondering of it is possible to make CPU temperature instead of battery temperature as the sensor. Thanks for your kindness.
[Xiaomi Redmi 1S] MikeUI:
I've got no idea but cpu is cpu and it will heat up as long as it's loaded w/ work and i think we can't change that..underclocking still might help but just a little.
[Xiaomi Redmi 1S] makuru:
Thank you. Did you try your script? How is it compared with the one uploaded earlier by Ravinder?
[Xiaomi Redmi 1S] chintoo:
Help

do i have to apply the recent update .....before applying the patch.....:)
[Xiaomi Redmi 1S] SH3H1:
Not at all necessary as this file exist in older versions too but didn't control cpu from overheating !

So will work :)
[Xiaomi Redmi 1S] chintoo:
so u mean in order to stop the over heating its better to update and then apply one of the patches according to my need....
[Xiaomi Redmi 1S] SH3H1:
No....no...this is the temperature control engine (actually modified for balance between performance and heating) that MiUi v45 included to prevent over heating (which also resulted in bad performance and lagging !) ! Flashing this in older one will also reduce heat !

So nothing to be doubt,go for it :)
[Xiaomi Redmi 1S] MikeUI:
Of Course i've tried it already made that script before i saw this thread ;) already even made a rom a day after v45 was rolled out..though it's posted on miui forum.
[Xiaomi Redmi 1S] Cissiboy:
ok I'm still on v37 which has no thermal control, goes full speed and goes great.

I'm not a gamer so I have yet to experiment overheating issues on my 1S.. as such, should I install v45 and copy the thermal-engine-8226.conf over from v37 so that it won't undervolt my cpus ?
[Xiaomi Redmi 1S] soubhikmullick:
Need few details on few codes

What is the different gpu units that we can set :450mhz and other units for it...

And is it necessary to keep all the different temperature units, cause i want to keep only one degree unit that is 40 deg or something..

And what is threshold_clr..

Help me out mate..
[Xiaomi Redmi 1S] niyapan90:
super...b :good::good::good: please make a another patch for call and voice sound.......
[Xiaomi Redmi 1S] Majal:
This is what I've been looking for!

Thanks for explaining the meaning of the values.
[Xiaomi Redmi 1S] brony:
How to flash zips
[Xiaomi Redmi 1S] SH3H1:
With Updater App

1.Open Updater app

2.Press option

3.Select "Select update package"

4.Select the desired zip you want to flash,Power_saver/Balanced/Gaming !

5.Press Update

6.No need to backup !

With Recovery (TWRP)

1.Press install

2.Select package

3.Swipe to install

[MENTION=225651]op[/MENTION] btw power_saving do save power,amazing :)
[Xiaomi Redmi 1S] karthik414:
Can U plz guid me by making a video on Youtube Plz i Could not get What you Said As im not That Good at All These Plz help me Buddy It will be A great Help ... And It will also be HelpFull tO other guyz like me plz help buddy facing lag problem so much

---------- Post added at 11:08 AM ---------- Previous post was at 10:19 AM ----------
[Xiaomi Redmi 1S] soubhikmullick:
What are the different frequency steps for gpu and cpu?

I want to set my own values for cpu and gpu but i wanna know what are the different cpu frequencies and gpu frequency steps like 200,350 etc.. .

Thanks
[Xiaomi Redmi 1S] adewisman:
Cpu : central processing unit

Gpu : graphic processing unit

Have you check post #2 I thinks it quite clear how the controlling works
[Xiaomi Redmi 1S] alok.tari:
I truely loved and enjoyed this mod on the v45 MIUI Adria rom. Great battery saving mod with no heating issues and without compromising performance. Can I expect similar results if I flash this mod on the new MIUI V6 special edition Rom of Syshost?
[Xiaomi Redmi 1S] kartrikpal:
Steps to Flash !

http://youtu.be/deC3WKwsc9o
[Xiaomi Redmi 1S] TPelangi:
im new on redmi 1s :D

but i use rom 45 china version.

this is work on ROM 45 CHINA ? or only global version ;)
[Xiaomi Redmi 1S] vinacchio:
Will it work on miui v6

Heating a lot on miui v6.will it work on it?
[Xiaomi Redmi 1S] richard el renthlei:
im using miui 6, will it work for miui6 and if i use thermal engine i wont be needing no frills cpu app to control cpu to cool down right????
[Xiaomi Redmi 1S] shiruuu.samad:
Can this work for s4 i9500 or only for MIUI
[Xiaomi Redmi 1S] delang:
FYI, i just replace original with this mode, (not flashing.)

and im on miui v6 by syhost,

im not sure is it working or not because max cpu stuck at 600mhz although already set to 1.4ghz.

gonna monitor for few hours.

update : tried flashing the file. nothing change. undo the changes, but cpu still max to 600.
[Xiaomi Redmi 1S] ev.brianbiazon@gmail.com:
salute thanks

thanks for this config my phone runs smooth :good::good::good:

im using balance mode :D

what is mode/config of hard gaming? i will try it, specially i play a lot of games like asphalt
[Xiaomi Redmi 1S] delang:
dear [MENTION=4544019]ravinder0003[/MENTION]

i dont know what, im on miui v6 by syhost,

i just copy thermal-engine-8226.conf file from zip file into /system/etc/ and restart. the cpu max speed stuck 600mhz, set permission with rw-r-r.

then i just deleted this line to return back to normal
[Xiaomi Redmi 1S] AndroidFrantic:
Thanks So Much! Works Perfectly!!

I've just bought this phone and was annoyed that there was overheating problems. After applying this patch it works perfectly fine now. THANKS SO MUCH!! XD
[Xiaomi Redmi 1S] Deelip:
Redmi 1s Update V50

Can this Thermal Patch be applied to latest update of Redmi 1s V50.

:)
[Xiaomi Redmi 1S] cyberzone5:
I desperately want to try this mod but have few questions!

1. I have redmi 1s rooted. So, will it interfere?

2. I have rom version v36. Can I still use this?
[Xiaomi Redmi 1S] rahulsa:
Same question here.
[Xiaomi Redmi 1S] MerXcoolZ:
Can i edit your mod to get good battery life

I dont play games

and Only use whatsapp

I am using no frills to underclock but it reverts back to 1.6Ghz again after reboot

Is there any way to set max freq to 600 or 787 permanent

and any way to run in one core or turn off 3 cores
[Xiaomi Redmi 1S] chowdary_jhs:
thanks

Thank u so much for providing such technique..
[Xiaomi Redmi 1S] fendy360:
this file working or not for redmi note 4g lte?
[Xiaomi Redmi 1S] vc3181:
redmi note 4g balance thermal engine setting

hi, ravinder0003, currently i am using redmi note 4g glober, rom version miui v5 / 22.0, my request is can you make one of this thermal engine setting for redmi note 4g to solve my overheating cause video recording lag and bad performance? :cowboy: thankyou. my email: vc3181@gmail.com
[Xiaomi Redmi 1S] shiruuu.samad:
Deleted.I aint like this
[Xiaomi Redmi 1S] iFilae:
please update for MIUI V6, it seem different value than V5
[Xiaomi Redmi 1S] kai_india:
yeah same question here too... i am in V50 updated
[Xiaomi Redmi 1S] Lightning_:
This was awesome

when i had redmi 1s this patch started giving me performance again before this i was stuck at V43 since V45 sucked really bad even tho on V43 performance was not that good but when i update phone and added this patch my was lightning once again 21.6k anututu benchmarks, before that i struggled playing asphalt 8 on very low sets too but after that i was able to play on high sets with minimum lag

I brought the mi 4i but once again they did what they did to mi 4i please make a patch for hard gaming for mi 4i please i request you.:laugh:
[Xiaomi Redmi 1S] tetran:
This does not work in mIUI7 redmi 1s. Please update. Thanks.
[Xiaomi Redmi 1S] ravi_ravio:
Great work dude
[Xiaomi Redmi 1S] musiclife98:
Hey Can you help me with Redmile note 4g?
[Xiaomi Redmi 1S] Anjayna:
Do I need to unlock bootloader to do that?
[Xiaomi Redmi 1S] NewbieZLA:
Thanks man, very cool. :good: