[MOD] FIX CPU Throttling When Charging/Gaming (Increase Charging Speed Screen On)

Search This thread

alexandero11

Senior Member
Jul 4, 2013
90
37
Seattle
Why not? I haven't tried this mod yet (waiting until I know 100 percent for sure that we won't get official Pie, of course, I'm assuming that I won't, but hey) but as a longtime and current V20 user, I can certainly verify that 95+ percent of the lag in the general user interface is from this throttling nonsense. It's as simple as observing how fast the V20 is for the first two minutes when you start using it in the morning. Again, I can't personally verify if this mod works, but assuming that it does, I can't see how it would be unreasonable to assume that general stock UI lag would also be significantly reduced.
 
  • Like
Reactions: ezzony

KUSOsan

Senior Member
Jul 21, 2013
855
296
Why not? I haven't tried this mod yet (waiting until I know 100 percent for sure that we won't get official Pie, of course, I'm assuming that I won't, but hey) but as a longtime and current V20 user, I can certainly verify that 95+ percent of the lag in the general user interface is from this throttling nonsense. It's as simple as observing how fast the V20 is for the first two minutes when you start using it in the morning. Again, I can't personally verify if this mod works, but assuming that it does, I can't see how it would be unreasonable to assume that general stock UI lag would also be significantly reduced.
This only affects the V20 when it's charging, and not every model is affected as bad. I noticed the way the OP is worded makes it sound like it's either charging or under heavy use but I'm think it means when it's charging or heavy use when charging. I could be wrong but this mod has only affected my device when charging never noticed it with general usage while unplugged. I guess just try it and see if works on your device since you didnt specify which model you had.
When I was on nougat on one of the h918 firmwares throttled so bad that using Google maps and Waze while charging was like a slideshow. On Oreo (think I'm on 20H) its not noticeable unless gaming.

Have you read up on RTCD? That only applies if you are rooted but it sounds like very similar to getting sluggish later on. Have you changed out your thermal paste? If not, get one of those thermal pads instead of the paste, they work great and easier to manage. Have you tried a custom kernel to see? Mk2000 kernel works great for mine and gets better battery.
 
Last edited:
  • Like
Reactions: ezzony

spywalkers

Member
Mar 15, 2011
37
4
Surabaya
Confirmed working on h990ds feb 2019 oreo update with the applied permission rwxr-xr-x from root explorer on a systemless rooted magisk stock rom and mk2000 kernel ... Thanks op the thermal throttle is really better now
How do you rooted the phone and still get updated until feb 2019 update? My phone still at first oreo, and I'm curious how to keep it up to date.
 

clemdaddy

Member
May 26, 2012
39
4
Anyone have a copy of the original unmodified stock thermal-engine-8996.conf file? I did a search of the thread and found a post asking for it, but I didn't see a reply. I unfortunately didn't save my original. I'm on a US 996 variant. My phone heats up like the sun (for example, when the camera is on). I've changed the thermal paste and that doesn't seem to help (I guess no surprise because there really isn't a heat sink of any sort for the thermal paste to really do its job). Anyway, my last resort is perhaps I picked a too aggressive thermal-engine-8996.conf mod. I'd like to simply return to stock to see if that solves my temperature problems.

thanks!
 

khtr98

Member
Sep 6, 2017
28
3
Anyone have a copy of the original unmodified stock thermal-engine-8996.conf file? I did a search of the thread and found a post asking for it, but I didn't see a reply. I unfortunately didn't save my original. I'm on a US 996 variant. My phone heats up like the sun (for example, when the camera is on). I've changed the thermal paste and that doesn't seem to help (I guess no surprise because there really isn't a heat sink of any sort for the thermal paste to really do its job). Anyway, my last resort is perhaps I picked a too aggressive thermal-engine-8996.conf mod. I'd like to simply return to stock to see if that solves my temperature problems.

thanks!
You can search Gamma stock thermal engine. It might help :)
 

clemdaddy

Member
May 26, 2012
39
4
You can search Gamma stock thermal engine. It might help :)

Thanks for the reply. When I search for that I find instances of the thermal-engine file, but they don't look like stock. They all have "mod" in the name. And when I do a diff between their default thermal-engine file and my default thermal-engine file, they don't match. Since I never modified the default one, that certainly is stock.

I'll keep searching!
 

Parasol_Monsters

Senior Member
Feb 21, 2014
91
33
Thanks for the reply. When I search for that I find instances of the thermal-engine file, but they don't look like stock. They all have "mod" in the name. And when I do a diff between their default thermal-engine file and my default thermal-engine file, they don't match. Since I never modified the default one, that certainly is stock.

I'll keep searching!
Attached is the default thermal-engine-8996.conf file for the US996 variant.
It seems to be encoded/encrypted to non human readable format.

You can confirm this by extracting it from the stock rom here or the stock kdz here.
 

Attachments

  • thermal-engine-8996_US99620f_STOCK.zip
    1.3 KB · Views: 33
  • Like
Reactions: khtr98

clemdaddy

Member
May 26, 2012
39
4
Attached is the default thermal-engine-8996.conf file for the US996 variant.
It seems to be encoded/encrypted to non human readable format.

You can confirm this by extracting it from the stock rom here or the stock kdz here.

Thanks, BUT, I'm wondering if that will work. My understanding is if you delete that file, it will revert to the default one. So in this case where it is perhaps encrypted or unreadable by the phone, I won't be able to tell if the phone defaulted to the default thermal.

There is a good lesson for me to be learnt here - I shouldn't have deleted the original!! :crying:
 

clemdaddy

Member
May 26, 2012
39
4
Attached is the default thermal-engine-8996.conf file for the US996 variant.
It seems to be encoded/encrypted to non human readable format.

You can confirm this by extracting it from the stock rom here or the stock kdz here.

I did what you suggested and extracted from flashable zip. When I retrieved it, it was in the usual readable format. Thanks for responses. I've also attached the file in case anyone else is interested.
 

Attachments

  • thermal-engine-8996.zip
    622 bytes · Views: 42

Parasol_Monsters

Senior Member
Feb 21, 2014
91
33
I did what you suggested and extracted from flashable zip. When I retrieved it, it was in the usual readable format. Thanks for responses. I've also attached the file in case anyone else is interested.
Really? What software did you use to extract the file?

I always used to mount system.bin as a raw image since it was the easiest way for me, and that was the file that I got out of it.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 46
    STANDARD DISCLAIMER: I am not responsible for any damage caused to your phone or loved ones.
    MUST HAVE ROOT.

    The PROBLEM:
    This mod is for phones that throttle heavily and lag during charging / heavy use/ gaming. Seems like it affects people on stock-based roms rather than AOSP/lineage based roms since the thermal file is deleted/edited already. Switching kernels does not help the throttling at all. Using any kernel or cpu app (EX kernel, kernel aduitor), you should see that the cpu freqs throttle down to 652mhz on the small cluster and 1036mhz on the big cluster when charging or after heavy use. The throttling isn't caused by thermals since the CPU temps and battery temps are well within acceptable levels (below 50 degrees cpu and below 25 degrees battery).
    Seems like the only reason LG does this is to prolong battery life rather than keeping performance at acceptable levels.

    The second issue is the SLOW charging when your screen is on. Ampere reports a maximum charging rate of ~300mah when charging (qc3 or regular) before the mod. This mod will increase it to ~1000mah when screen on (I'm unsure how to increase it further). Screen off charging is unaffected and is still Quick Charge.

    THE FIX:
    Download my "thermal-engine-8996.conf" file here: https://drive.google.com/file/d/0B0W3xXHgfOxvLUpKNWhrWDE0TDg/view?usp=sharing
    Use a root explorer.
    Backup your old one in root/system/etc (or just rename it to thermal-engine-8996.conf.bak).
    Put the new one in root/system/etc
    Edit: apparently it downloads as a .txt file so change it back to .conf
    Change permissions to rw-r--r--
    Restart and enjoy lag free charging + increased charging speed!

    This will make your device slightly hotter and possibly less battery life during heavy use but that's a given.
    Thermal throttling is NOT affected (CPU speeds still throttle after 80 degrees with my testing)


    Flashing rom updates WILL overwrite the file so you will need to replace it again.

    Different versions:
    Reduced charging speed (to 600mah) when screen on (To reduce heat):
    https://drive.google.com/file/d/0B7VVzSKFTGVkNHBnWXNYY2JJdEU/view?usp=sharing
    Reduced max speed (to 1824mhz) but kept 1000mah charging when screen on (should reduce heat when doing intensive tasks): https://drive.google.com/open?id=0B7VVzSKFTGVkWjlnUF84SDc0N0k
    Reduced charging speed (600mah) + max speed (1824mhz) to reduce heat even more and will still help reduce lag:https://drive.google.com/file/d/0B7VVzSKFTGVkV2ZoTU1sS2YtOUk/view?usp=sharing

    What I did:
    Under [KRYO_SS] in the conf file, I edited the "device_perf_floor" value to 2150000 instead of the stock 1036800. This will cause the phone to never throttle below 2150mhz big cluster and 1593mhz small cluster when charging/heavy use. If you are using an kernel that supports overclocking, this value can be set higher (to your max big cluster mhz). The small cluster mhz will automatically scale up since there's no value for it anyways. I think this entire section is just to save battery life as I see no other benefit from throttling when you're charging (when temps are low). Honestly, you can probably delete the whole section under [KRYO_SS] and it'll keep it at max mhz but I rather have some control over it.

    For increased charging speed when screen on, I edited the values under [CHG_MONITOR]. I also deleted the entire [PA_MONITOR] and [LCD_ON_MONITOR] section. This increases the charging speed to ~1000mah from ~300mah but I can't seem to increase it further when screen on. Might be due to another setting I haven't found yet.

    I also increased the GPU clocks to decrease throttling but I haven't found GPU throttling to be a problem at all before the mod so this probably won't affect performance.

    The only other phone I have found that has the same thermal conf file is the LG G5 thread here: https://forum.xda-developers.com/lg-g5/help/reduce-gpu-thermal-throttling-help-t3471510
    Seems like they were doing it for the GPU throttling however.

    Let me know if anyone is having issues with this mod or wants to implement it in their rom :)
    5
    made one with the gpu throttling completely disabled, and the cpu minimum cooling range stay at 1996 mhz. i am using it so far so good.
    4
    Someone earlier in the thread was planning to do this. I'm unsure of how to do it even though I am using magisk as well.

    that was me... if any wants to test it go ahead, otherwise I'll confirm it works or not tonight...
    4
    Let me know if anyone is having issues with this mod or wants to implement it in their rom :)

    So I'm having a hard time testing whether this is actually working or not. I use the mk2000 BTTF kernel and I'm suspicious that it has already done some modifications to the kernel for charging. I'm on a VS995 and I have some other differences based on what I'm reading from here.
    For instance, my stock thermal-engine-8996.conf has
    Code:
    action_info      1000
    in the
    Code:
    [PA_MONITOR]
    and
    Code:
     [LCD_ON_MONITOR]
    sections - which sounds different than what others have stated.

    Also, I'm not sure the best way to measure the current charge because Ampere doesn't work with the screen off and I am getting wildly different readings with the screen on. With my stock .conf I was getting anywhere from ~250 to ~1300, but seemed to be usually between ~600-800. This seems to be much higher stock than what others are reporting so I am trying to find out from the kernel dev if he made any modifications.

    In any event, I have gone ahead and created an AROMA based installer for these mods to make it easier for users to pick between the different profiles as well as go back to their backup/an original conf.

    I've used all your original config files, which based upon my examination appear to do the following:

    - charging-600mah-max-speed-1824mhz
    - charging-600mah-max-speed-2150mhz
    - charging-1000mah-max-speed-1824mhz
    - charging-1000mah-max-speed-2150mhz

    If I have got these wrong please let me know. This is what I have labeled profiles #3-#6 in my script. If you unzip the file you will see a profiles directory which shows these. I also added two new profiles:

    - charging-600mah-max-speed-1037mhz
    - charging-1000mah-max-speed-1037mhz

    These are #1 and #2 respectively. The idea here is that you may want to increase your charging speed, but not your CPU at all. Because of the issues I'm having getting accurate measurements I'm not sure this is working. I don't know why we wouldn't be able to increase the charging speeds while leaving the default CPU speeds. If you could check over the 2 .conf files that I included for these profiles to make sure I configured them right that would be appreciated.

    I think the flash file is pretty self explanatory. It has the 6 options as well as the option to restore from backup. The backup file will be the file that was overwritten the *first* time you ran this flash. So if you are doing it on a stock phone the backup file will always be your original. In case you weren't sure what your original was I include as a final option the ability to restore a stock .conf file. Again, this is the file from a VS995 and I'm not sure if everyone's is the same. If people want to send me stock files from other models I can compare and include them for restore.

    I'd also love to pick your brain about some of these settings and also clean up some of these profile files (I did remove some extra LF already). I just am having some issues because I can't tell what is working or not on my phone at the moment.
    3
    Don't forget

    Don't forget to rename the file from .txt to .conf after pasting. :) THANK YOU!!!!