[PnP&Thermals tweak] Custom profiles for battery saving and/or better performance-v24

Search This thread

vincenzo697

Senior Member
Sep 1, 2010
607
130
kozani
Try removing this line from build.prop

ro.vendor.extension_library=libqti-perfd-client.so

We can also try remove this lib and its service starter.
Do backup and try flash it again see if log changes(Clears), or it will produce more other errors.

If I want to revert back re install the rom or the firmware or both?
 

gianborrello

Senior Member
Dec 7, 2012
122
30
If I want to revert back re install the rom or the firmware or both?
Just dirty flash your rom and you're good to go.
In my case pnp_removerv2.zip together with build.prop line removal is doing the job... No problems nor weird battery drain whatsoever.

... Edit...

Drain is better than using dummy pnp.xml, but it's still worse than stock configuration.
 
Last edited:

gianborrello

Senior Member
Dec 7, 2012
122
30
I removed all code from it just enough so it doesnt complain about missing xml, it wont apply any CPU, GPU, memory or other rules.

See if it will work good like this.

Dear @ivicask, after enough testing, we can say that dummy pnp.xml makes the system still complain about missing xml and this seems to cause some idle drain more than usual.
Anyway, cpu and gpu values do stick, so I think you're on the right route achieving the perfect result.
Pnpremoverv2 gives sligtly better results in terms of drain but, as you said, it's better not to deactivate every aspect of pnpmgr.
May we help in any way?
 

jakc4103

Member
Nov 16, 2012
12
4
Dear @ivicask, after enough testing, we can say that dummy pnp.xml makes the system still complain about missing xml and this seems to cause some idle drain more than usual.
Anyway, cpu and gpu values do stick, so I think you're on the right route achieving the perfect result.
Pnpremoverv2 gives sligtly better results in terms of drain but, as you said, it's better not to deactivate every aspect of pnpmgr.
May we help in any way?

Same here. I flashed pnpremover2 and deleted that one line from buildprop. Battery drained more than usual when phone idle, and not much differences while screen on. Also tried helix engine with pnp removed, felt battery drain a little bit more compared to stock leedroid R146. Revert back to leedroid already.
 

kend0g

Senior Member
Sep 11, 2013
1,133
332
Oops nevermind guys I got out of the car and dropped my phone tonight and messed the screen up.. I'm gonna try and get a new phone tomorrow my upgrade is up also so... Idk I was thinking s9+ it really sucks cause most of the phones for vzw don't have root even now.. I think the pixel as long as it's on the first nougat software version and didn't get upgraded can be bootloader unlocked.

It was a good idea sorry fellas.
 
Last edited:

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
More im digging more i see how much deep pnp is integrated into system, its not only PnP but also performance libraries and also all is linked to thermal engine and performance hints it sends to kernel via /vendor/etc/powerhint.xml,, detects games, controls GPU drivers etc etc...

This is just too complicated, this is my last try u can try flash this, but most likely phone wont boot(DO NANDROID!) or it will spew even more errors as i removed most of this performance libs.

View attachment Pnp_remover_v3.rar
 

gianborrello

Senior Member
Dec 7, 2012
122
30
More im digging more i see how much deep pnp is integrated into system, its not only PnP but also performance libraries and also all is linked to thermal engine and performance hints it sends to kernel via /vendor/etc/powerhint.xml,, detects games, controls GPU drivers etc etc...

This is just too complicated, this is my last try u can try flash this, but most likely phone wont boot(DO NANDROID!) or it will spew even more errors as i removed most of this performance libs.

View attachment 4506896

Just tried...
Phone boots but CPU is overloaded and heats up a lot.
Also tons of errors in logcat.
Dirty flashing my rom back.
Thanks anyway for your attempt!
 
  • Like
Reactions: cyrusct82

gianborrello

Senior Member
Dec 7, 2012
122
30
But you've used something else to control CPU like Helix Engine? Because after you remove PNP manager the CPU stays at Max frequency

Of course I did...
It was cpu utilization that was really out of normal range.
Always more than 20% and frequently spiking over 80% just on screen-ON and no input, while it normally ranges between 5 and 30% more or less (using Resource monitor mini as overlay).
Besides, after a couple minutes all apps I launched started reacting slowly.
 
  • Like
Reactions: cyrusct82

dsjiffry

Senior Member
Aug 20, 2014
237
68
v24 is latest version , for Oreo so far i didint had plans to update as HTC did good job and performance /battery is already amazing, and they changed PNP completely.

Say on Oreo what do you recommend I set the min performance level to????

With your mod we had to set it to 0%. Should I do the same on Oreo?? Or leave it at the default 60%?? :confused:
 

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
Say on Oreo what do you recommend I set the min performance level to????

With your mod we had to set it to 0%. Should I do the same on Oreo?? Or leave it at the default 60%?? :confused:

Not sure what that option or kernels do by default on Oreo.Point is not to change anything kernel related as also PnP changes them so you have 2 sides constantly "fighting" each other to apply proper settings and u only get negative effect on battery.
 
  • Like
Reactions: dsjiffry

dsjiffry

Senior Member
Aug 20, 2014
237
68
Not sure what that option or kernels do by default on Oreo.Point is not to change anything kernel related as also PnP changes them so you have 2 sides constantly "fighting" each other to apply proper settings and u only get negative effect on battery.

Thank you Ivicask.

Should I also run the interactive governor also on it's default parameters??? :confused:

Because the phone heats up when browsing so I'm running some custom governor values, but I have to apply them on every screen unlock via tasker because of pnp. :eek:

I've noticed that the go_hispeed_load, above_hispeed_delay, hispeed_freq and target_loads parameters are the ones being overwritten by pnp.

Maybe I could try adjusting the parameters that are not being overwritten to keep down the heat. :)
 

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
Thank you Ivicask.

Should I also run the interactive governor also on it's default parameters??? :confused:

Because the phone heats up when browsing so I'm running some custom governor values, but I have to apply them on every screen unlock via tasker because of pnp. :eek:

I've noticed that the go_hispeed_load, above_hispeed_delay, hispeed_freq and target_loads parameters are the ones being overwritten by pnp.

Maybe I could try adjusting the parameters that are not being overwritten to keep down the heat. :)

Sorry man i cant give you clear answer im out of the game on Oreo, but my sister is using fully stock HTC10 Oreo and has no overheating issues what so ever.
 
  • Like
Reactions: dsjiffry

Top Liked Posts

  • There are no posts matching your filters.
  • 73
    Addon was originally only available on Venom HUB but i decided to release it for everyone to use.Here is copy paste of description and changelogs from the HUB.I will update thread as i update it on HUB.
    Also big thanks to @hamdir for testing my performance profile on various games, he will also post later hes review, pictures and comparisons to stock.


    This addon is designed to save some extra battery, and reduce heat.Magic is done in 2 files:
    1:Thermal-engine is tweaked in order to provide much better sustained performance and cooler phone, without big impact on performance.
    2:pnp file is another key component, its HTCs CPU/GPU/EMMC/MODEM and many more control engine.Here many tweaks where done, but gonna quickly list some of the important ones:
    -Per app control, automatically suspends 2 BIG cores, and runs on 2 low power ones, it also limits the GPU speed to lowest.This will do only for some most commonly used apps, like Sense Prism, Nova launcher, Apex, other HTC apps, various chat programs(hangouts, facebook, messanger, whatsap etc), YouTube and some more.. as those apps dont require a lot power.
    -Screen off is set to 2 low power cores for nice standby times
    -Power saver is tweaked to actually save some power and not just lower screen brightness
    -Extreme powersaver is also tweaked down to save even more power
    -Input boost frequencies are also lowered (CPU ramps up moment you touch screen)
    -And alot of other minor tweakups..

    Also its recommended not to change anything CPU/GPU related in any other apps, like EX and just let this files do the job for you.

    If for some reason you dont like this mod or have any problems with it, installer includes revert to stock option :)
    Read more info in changelogs below.

    List of battery optimised apps (feel free to post your suggestions):
    Code:
    com.ninefolders.hd3
    com.applisto.appcloner
    com.livae.apphunt.app
    com.fillobotto.mp3tagger
    org.polaric.cluttr
    com.rgiskard.fairnote
    com.glextor.appmanager.free
    com.catchingnow.undo
    kik.android
    de.onyxbits.listmyapps
    org.zloy.android.downloader
    com.slaughter.look.of.disapproval
    gaurav.lookup
    cn.wq.myandroidtoolspro
    com.embermitre.pixolor.app
    de.toastcode.screener
    de.munichsdorfer.screenittrial
    com.glitch.stitchandshare
    com.stumbleupon.android.app
    org.de_studio.recentappswitcher.pro
    com.happening.studios.swipeforfacebookfree
    com.laurencedawson.reddit_sync
    com.fifthelement.trimmer
    com.camel.corp.universalcopy
    com.google.android.apps.inbox
    com.riversoft.android.mysword
    com.taxis99
    com.tbig.playerpro
    com.tomtom.gplay.navapp
    com.xda.labs.play
    com.google.android.apps.translate
    com.safeincloud
    com.mobisystems.msdict.embedded.wireless.collins.p ortuguese.full
    com.mobisystems.msdict.embedded.wireless.oxford.es sentialportuguese
    com.accuweather.paid.android
    com.mobilesrepublic.appy
    com.pandora.android
    com.slingmedia.slingPlayer
    com.bumble.app
    com.tinder
    com.klinker.android.twitter_l
    com.nam.fbwrapper.pro
    com.timehop
    jp.naver.line.android
    com.linkbubble.playstore
    kr.co.vcnc.android.couple
    com.joshua.jptt
    com.noinnion.android.greader.reader
    com.netbiscuits.kicker
    com.redictandcgdstudios.projectslenderonline
    com.teotlstudios.slenderrisingfree
    com.dvloper.slendermanriseagainfree
    com.RexetStudio.SlenderTheRoad
    air.com.sticksports.sticktennis
    com.sticksports.sticktennistour
    com.bauermedia.tvmovie
    de.wetteronline.wetterapppro
    com.redictstudios.projectslender
    se.feomedia.quizkampen.de.premium
    com.quoord.tapatalkHD
    com.droid27.transparentclockweather
    com.speedsoftware.rootexplorer
    pl.solidexplorer2
    com.appseleration.android.selfcare
    com.google.android.apps.chromecast.app
    rpkandrodev.yaata
    com.andrewshu.android.reddit
    com.xodo.pdf.reader
    com.microsoft.office.word
    com.microsoft.office.excel
    com.kmobile.cb
    com.nianticlabs.pokemongo	
    com.google.android.apps.maps	
    com.htc.laputa	
    com.papago	
    com.mapbar.android.mapbarmap	
    com.autonavi.cmccmap	
    com.baidu.BaiduMap	
    com.pdager	
    com.kingwaytek.naviking	
    com.htc.lockscreen	
    com.htc.fingerprint	
    com.xda.labs	
    org.mozilla.firefox	
    org.mozilla.firefox_beta	
    com.emoji.keyboard.touchpal.oem	
    com.nitrodesk.honey.nitroid	
    com.android.calculator2	
    com.estrongs.android.pop	
    com.tbig.playerpro	
    org.telegram.messenger	
    com.instagram.android	
    org.wordpress.android	
    com.touchtype.swiftkey.beta	
    com.gsamlabs.bbm	
    com.htc.android.worldclock	
    com.quoord.tapatalkpro.activity	
    com.anddoes.launcher	
    com.google.android.gms	
    android.uid.systemui	
    com.android.systemui	
    com.chrome.beta	
    com.android.chrome	
    com.chrome.dev	
    com.teslacoilsw.launcher	
    com.spotify.music	
    com.quoord.tapatalkxdapre.activity	
    com.google.android.apps.plus	
    com.twitter.android	
    com.htc.AutoMotive	
    com.google.android.talk	
    com.viber.voip	
    com.ninegag.android.app	
    com.android.settings	
    com.devhd.feedly	
    com.htc.weather	
    com.google.android.phone	
    com.htc.sense.mms	
    com.htc.contacts	
    com.htc.htcdialer	
    com.htc.music	
    com.maxmpz.audioplayer	
    com.google.android.apps.photos	
    com.htc.launcher	
    com.htc.sense.news	
    com.whatsapp	
    com.facebook.katana	
    com.facebook.orca	
    com.m0narx.hub	
    com.ice.tweaks	
    com.m0narx.tweaks	
    com.google.android.youtube
    com.google.android.videos


    Compatibility:
    All 1,8x, 1.9x and 2.x based roms bases and kernels(even stock roms/kernel's).
    Not compatible with 1.5 or below bases (will cause random crashes), use Version v8 for older 1.5x and 1.2x bases.


    Download:
    Version v24
    Download link flashable ZIP - AFH


    Older versions:

    Version v8 for older 1.5x and 1.2x bases
    Download link flashable ZIP - AFH


    Changelog:
    Code:
    24.04.2017
    v24:Fixed remove 50 -> 60 fps boost on touch on performance profile(60fps locked now)
    - MaxPowerSaving profile optimizations to get even more battery life.
    
    27.03.2017
    v23:Added more user requested apps(30) for battery optimised profiles
    - Attempt to smoothen Facebook app scrolling (App still lags while loading items on any phone)
    - Increased touch input boost speed for MaxPowerSaving profile(smoother scrolling)
    
    16.01.2017
    v22:Viper Magisk compatible
    - Merged with 2.41 base changes
    - Added a lot more apps for battery optimised profiles
    - Added new MaxPowerSaving profile:
      Limits CPU to 1.3/1.78GHz(LC/BC), GPU 510MHz
      Launching apps bypasses above limit for fast app starting/switching
      Still uses balanced mode per app profiles which saves even more power
    - Cleaned installer from unnecessary files (smaller zip size)
    
    9.12.2016
    v21:Lowered input boost, touch boost, long duration touch boost, app launch and per app frequencies for even more battery savings(N is still very smooth) 
    -Cleaning of code and some other fine tuning
    
    24.11.2016
    v20:Merged  with Android 7.0.0 changes
    -Also backwards compatible with 1.5x + bases
    
    26.09.2016
    v19:Fixed CPU doesnt drop to lowest speed for some users/kernels
     - Merged v18 balanced changes into performance profile
    
    22.09.2016
    v18:(Balanced changes only)
     - Adjusted CPU scheduler load distributions and frequencies in order to fix some stutters,
      but also to save power while phone is idle with screen ON (drops to lower frequencies faster)
    - Fixed weird HTC bug where task migration gets stuck in loop and cause phone to heat up for no reason
    - (thermal file)Make it a bit cooler on higher loads
    - Minor fine tuning here and there..
    
    
    29.08.2016
    v17:Prevent cores going offline if running Android auto (fixes lag on screen off)
    - (Balanced)Tweaked 15+ various governor and boost settings for even more power savings
    - (Balanced)Added more appps for CPU limiting profiles
    - Allow 4 threads for oat proces if PlayStore in focus(faster app install)
    
    23.08.2016
    v16:Merged latest HTCs changes realted to PokemonGo thermals
    - Removed 50 -> 60 fps boost on touch on performance profile(60fps locked now)
    - Forced 60 fps for YouTube and Google videos on balanced profile
    - Tweaked thermal file on balanced profile for better performance
    
    07.08.2016
    v15:Balanced and Performance profile update
    - Fine tuned values
    - Big cores go offline during screen off for Performance profile
    - Tweaked low memory killer values on both profiles,
      prevents often app reloading, which is waste of time and battery.
    
    04.08.2016
    v14:Balanced and Performance profile update
    - Implemented dynamic swappiness
    - Default swappiness reduced from 60 to 30 (less writes to nand)
    - During app launch or touching screen event swappiness is reduced to 0
    - During screen off swappiness  is set to default 60 so it can do its job when we are not using phone
    - Increased dirty_ratio to reduce even more writing to nand
    - Overall goal is to reduce I/O on NAND while using phone and in that way improve performance,
      but also improve battery by better utilizing the 4gb RAM that this device has.
    - Added more apps for CPU limiting profiles(balanced only)
    
    v13:
    -Merged with changes from 1.9x base
    (Mostly fine tuning battery saving for various video chat programs)
    
    v12:Balanced profile changes
    - Added more commonly used apps for lower power CPU profiles
    - More fine tuning
    
    v11:
    - Fine tuned balanced profile to prefer a bit more battery life
    - Cleaned up aroma installer (wont create unnecessary Venom folders for non-Venom users) 
    
    v10:Balanced profile rebuild
    - Merged and fine tuned/adjusted thermal configuration from performance profile
    - Should improve responsiveness and fix stuttering on some apps that happend before
    - changed around 100+ lines of code, lazy to write full changelog :p
    
    v9:TEST balanced profile update
    - Big cores will now go fully offline during screen off and while in Extreme powersaver
    - Lowered screen refresh rate while in Extreme powersaver(even more saving)
    - Max GPU speed limited to 214MHZ while in Extreme powersaver
    - Max GPU speed limited to 510MHZ while in powersaver
    - Reduced app launch boost MIN frequencies speeds to 1.3gz for all cores.
    
    v8: complete rebuild of performance profile
     - Added extra 560mhz frequency step between 630 and 510 for GPU throttling
     - Added 5 additional throttling steps for each CPU cluster per temperature
     - Prevent big cores dropping  to 1.3ghz too soon which drops FPS in games.
     - Prevent killing one big CPU core too soon, instead 2 will run at half migration performance.
     - Everything fine tuned and balanced, 10+ FPS boost in most games compared to stock 
    
    v7
    - 1.8x base compatibility update
    
    v6
    -Removed battery saving profile as balanced does such good job, both smoothness and performance! :)
    
    v5
    -Many changes to balanced profile
    -Lowered app launch Max CPU speed locking to more reasonable levels(Still ramps up to max if load demands)
    -Reduced input boost duration a bit
    -Governor will now drop CPU to lower speeds faster
    -Added more apps to lower CPU speed profiles.
    
    v4
    -Aroma installer fixes
    -BatterySaving profile fine tuning
    
    v3:
    -2 new more options
    *MaxPerfomance
    *BatterySaving
    -Tweaked is now called Balanced
    
    v2:
    -fixed YouTube 2k+ videos lag

    This is example of battery life i get with Balanced profile
    image.png
    Screenshot_20160922_133326.png
    Screenshot_20160807_113036.png



    XDA:DevDB Information
    PnP&Thermals tweak, Tool/Utility for the HTC 10

    Contributors
    ivicask, hamdir

    Version Information
    Status: Stable
    Current Stable Version: v24
    Stable Release Date: 2016-06-23
    Current Beta Version: v9

    Created 2016-07-06
    Last Updated 2017-04-24
    25
    V22 final is released! Enjoy!
    22
    Just heads up for everyone im holding V20 update until 7.0.0 hits.

    Now we just need Nougat because v20 is already ready for it.. :)
    21
    Just switch back to balanced mode from performance on v16 for the sake of coolness and battery life. The balanced mode is so much smoother than the previous build. My phone and I is loving it��

    Yep, im always improving my mod as im using it im doing constant minor adjustment, currently testing v17 with even more battery savings, and some improvements, minor fixes...
    21
    v18

    Finally phone discharged after 2 days and that concludes my usual final testing procedure, hope it will work good for everyone as for me, i did a lot of testing and fine tuning this version.

    If everyone will be happy with it ill port some of changes to performance profile.

    Code:
    22.09.2016
    v18:(Balanced changes only)
     - Adjusted CPU scheduler load distributions and frequencies in order to fix some stutters,
      but also to save power while phone is idle with screen ON (drops to lower frequencies faster)
    - Fixed weird HTC bug where task migration gets stuck in loop and cause phone to heat up for no reason
    - (thermal file)Make it a bit cooler on higher loads
    - Minor fine tuning here and there..

    Screenshot_20160922_133326.png
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone