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

Search This thread

clemdaddy

Member
May 26, 2012
39
4
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.

It's seems (at least in my case) system.bin is merely a container (zip container?) of files as opposed to an actual binary file. I simply right clicked it and told 7zip to extract the bin file. When 7zip was done I had a folder on my desktop with all the files that were encased in the system.bin file.
 

Parasol_Monsters

Senior Member
Feb 21, 2014
91
33
It's seems (at least in my case) system.bin is merely a container (zip container?) of files as opposed to an actual binary file. I simply right clicked it and told 7zip to extract the bin file. When 7zip was done I had a folder on my desktop with all the files that were encased in the system.bin file.

It is definitely not a zip file, you can test this renaming it to zip and trying to enter it. I tried to extact thermal-engine-8996.conf with 7zip and still got the same file I did before.
 
Last edited:

clemdaddy

Member
May 26, 2012
39
4
It is definitely not a zip file, you can test this renaming it to zip and trying to enter it. I tried to extact thermal-engine-8996.conf with 7zip and still got the same file I did before.

Yep! You are correct. In the link you gave (with the list of zip firmwares), I avoided US99620f.zip because of the note about encryption. But when I saw that none of the other links worked, I resorted to downloading F. When I saw it would take several minutes to download, I remembered I had download a flashable zip a day or so prior. So I ended up using that one.

Oh course, I no longer have that zip file (I had promptly deleted it after I extracted the themal file). And now I can't find where I downloaded it :(.

Anyway, today I went ahead and downloaded US99620f.zip from the link you sent, and sure enough, when I extract it, it is in a similar binary file as yours. Is must be encrypted?
 
Last edited:

Parasol_Monsters

Senior Member
Feb 21, 2014
91
33
Yep! You are correct. In the link you gave (with the list of zip firmwares), I avoided US99620f.zip because of the note about encryption. But when I saw that none of the other links worked, I resorted to downloading F. When I saw it would take several minutes to download, I remembered I had download a flashable zip a day or so prior. So I ended up using that one.

Oh course, I no longer have that zip file (I had promptly deleted it after I extracted the themal file). And now I can't find where I downloaded it :(.

Anyway, today I went ahead and downloaded US99620f.zip from the link you sent, and sure enough, when I extract it, it is in a similar binary file as yours. Is must be encrypted?

Encoded probably, you can see this when opening in a hex editor. Encrypted would be totally random.
 

PxYra

Senior Member
Apr 22, 2011
128
26
Unknown
LG V40
Thank you, copied with Total commander (root explorer fro google pay now cost 1 euro/pound) working good, topic need be updated

---------- Post added at 10:20 PM ---------- Previous post was at 10:16 PM ----------

P.S. when I backuped up original file its will be corrupted...maybe somoene can upload orginal file here ?
P.P.S. my device F800L, PIE
 

Ice Fire

Senior Member
Mar 18, 2017
181
25
LG G5
Asus ZenFone 3
Hi. please tell me how to open the file and editing the value
Areyou sure you want to edit stuff in there if you dont know how to edit the file in the first place.
Anyways you should be able to do that with any text editor be it the editor notepad++ or the total commanders internal text manager.

Edit: I just looked at your other messages. Is your phone rooted yet?
 

chinhnguyen000

New member
Jul 25, 2022
4
0
Areyou sure you want to edit stuff in there if you dont know how to edit the file in the first place.
Anyways you should be able to do that with any text editor be it the editor notepad++ or the total commanders internal text manager.

Edit: I just looked at your other messages. Is your phone rooted yet?
My phone is rooted already. but there files on my phone is encrypted . I thought everyone had a way to decrypt it but I searched for a few days and still didn't find the answer
 

Ice Fire

Senior Member
Mar 18, 2017
181
25
LG G5
Asus ZenFone 3
My phone is rooted already. but there files on my phone is encrypted . I thought everyone had a way to decrypt it but I searched for a few days and still didn't find the answer
Individual files that are encrypted, or the complete data partition. There is a zip that can auto decrypt your data partition befor you start the device for the first time but it sounds like you already did that.

What i am not understanding is why you would need to modify the bulid.prop to fix a encryption problem.
 

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!!!!