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

Search This thread

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
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
 

hamdir

Recognized Contributor
Aug 13, 2008
33,250
27,106
Beirut
twitter.com
Performance Profile

I've worked with @ivicask on optimizing gaming performance for the 1.80 base via the performance profile for this mod, in this post i will explain the gaming problem on stock HTC 10 and how this mod/performance profile solves it

by default HTC aggressively cripples the Snapdragon 820, not for the sake of thermals but for the sake of extending battery life, what happens is the following:

Stock CPU behavior on HTC ten (up to 1.80 base):
Starting with 33c battery temp CPU tasks will gradually migrate out of the big cluster, around 38c one of the two big Kryo cores (which enjoy higher clocks and bigger hardware cache) will be completely disabled, HTC smartly hides it in task migration rather than physically shutting down a big core

This means in CPU intensives games like Dead Effect 2 you will notice a sharp drop in performance/smoothness once the fourth core is killed, the game will drop from the 60fps range to 30fps, this behavior is noticeable in many games, if you are on complete stock you can only game at the full s820 speed if you are starting from a cool idle battery temp like 30c but then in about 5 minutes things will go downhill, considering that the HTC 10 idle state in average use is around 35c anyway you can see how most people probably start gaming on the 10 within the crippled state

Previously the only way to fix was to flash EX kernel with CPU migration hacked and already set by default to 60% limit, meaning EX kernel will refuse to let HTC 10 migrate tasks out of the fourth core under 40%, this is a good solution but you are forced to use EX kernel and not the stock kernel plus wait for the kernel source so that EX is updated whenever an OTA is rolled out, this mod will allow you to fix gaming on HTC 10 without touching the kernel plus it's thermally safe as its not a hack and will still gradually slow down the 10 to cool down, but it does so in a sane way

The performance profile in this mod was thoughtfully optimized by profiling the CPU usage in Dead Effect 2 (currently one of the heaviest games on the playstore) from 30c up to 45c, giving you enough time to actually enjoy this game at its full speed up to 30 minutes

The following tests will show you how the HTC 10 behaves in gaming when warm vs the performance profile, profiled using @ivicask tools and game benched in short sessions, the exact same level played from the same starting point to the same end at the same length of time, this level called "return to space gardens" is one of the heaviest sections in Dead Effect 2, at the end of this test you can see how performance drops to the ground because it meets a very dense and tough section in the game.

Stock kernel / PNP / thermals, Dead Effect 2 at 39c

The fourth big core is completely killed, GPU goes to 510mhz, small cluster drops to 1.3ghz, big cluster drops to 1.5ghz
27958523730_77a0581699_b.jpg


27623619283_7c27de8736_o.jpg

27958519290_77e54aef03_o.jpg


As you can see on pure stock 1.80 base by 39c the games loses one of the big s820 cores and performance drops from 45fps range in this level to 30fps (which happens way too fast) also as seen in the yellow graph how performance stability is terrible, after 40c it will get even worse

here are the results from the same level using the performance profile of this mod

Performance Profile, Dead Effect 2 at 34c to 38c

full tasks are still running on all cores, GPU at 624mhz, small cluster still at 1.5ghz, big cluster drops to 1.5ghz
28239201555_86e83573a5_b.jpg


27623618893_d60ae30d0a_z.jpg

27958518860_f199826880_z.jpg


Performance Profile, Dead Effect 2 at 39c to 41c

both big cores drops to 80% task migration, GPU drops to 560mhz, small cluster still at 1.5ghz, big cluster still at 1.5ghz
27958520850_024832feed_z.jpg


27623617943_9f951b9b3b_z.jpg

27623617693_6264173bff_z.jpg


Performance Profile, Dead Effect 2 at 42c to 43c

one big core sticks to 80% task migration the other big core drops further to 60%, GPU drops to 510mhz, small cluster still at 1.5ghz, big cluster still at 1.5ghz
27958519960_3710ea5263_z.jpg


27623617163_3b5bb29edc_z.jpg

27623616403_ca77aacb16_z.jpg


Once the device gets warmer after 43c CPU migration will drop to 60% on both big cores with further reduction in GPU speed etc, but at this stage the HTC 10 will no longer heat up as fast and as you can see up to this point it was maintaining almost the same performance in this game; while keeping fairly high GPU clocks too; this is a much more subtle well thought performance degradation than HTC's stock blind brute crippling of the s820 which happens way too fast on low temps

This profile is so good actually HTC should probably copy it and imitate how it deals with default CPU migration, otherwise why are we buying an s820?
 
Last edited:

SacredDeviL666

Retired Senior Moderator - May You Rest in Peace -
Sep 11, 2008
7,409
8,307
¤No Man's Land¤
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.

@ivicask

does it work differently from butterfly v11?

or say does it conflict with butterflyv11 if you have already loaded that profile and flash this zip?

thanks for another tweak made possible for Perfume devices :D
 
Last edited:

SacredDeviL666

Retired Senior Moderator - May You Rest in Peace -
Sep 11, 2008
7,409
8,307
¤No Man's Land¤
Completely different, it uses HTCs native engines to control everything, u can basically flash this on stock un-rooted phone :)
And doesn't require custom kernel, it should work immediately as new bases come out etc..

aah okay cool...does it conflict if i have already enabled butterflyv11 which disables pnq or its safe to flash while using that script
 

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
aah okay cool...does it conflict if i have already enabled butterflyv11 which disables pnq or its safe to flash while using that script

Half of this mod runs in PnP, if you disable it, your making this mod almost pointless.
Also, as i stated, this mod runs best standalone, its best not to use any other mods, or apps which change anything CPU /GPU related.
You can still flash EX kernel for example, i just dont recommend messing with any CPU/GPU related settings in it.
 

SacredDeviL666

Retired Senior Moderator - May You Rest in Peace -
Sep 11, 2008
7,409
8,307
¤No Man's Land¤
Half of this mod runs in PnP, if you disable it, your making this mod almost pointless.
Also, as i stated, this mod runs best standalone, its best not to use any other mods, or apps which change anything CPU /GPU related.
You can still flash EX kernel for example, i just dont recommend messing with any CPU/GPU related settings in it.

cool so this would conflict as butterflyv11 disables the pnp

would try this and see :highfive:
 

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
4,887
15,604
hey :)

great to see you released this for all on xda!
I have a question. since you wrote on the ex kernel thread that pnp config file is encrypted how come you can edit it?
or can you englighten me how i can just disable all Input and touch boosts from pnpmgr while keeping pnpmgr? :)
i think that would be the best for my script but i wasn´t able to do so.
i found no other way to stop the touchboost other than disabling pnpmgr completely.
maybe we can integrate my interactive values with your mod? if you are okay with this of course!

thanks :)
 

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
hey :)

great to see you released this for all on xda!
I have a question. since you wrote on the ex kernel thread that pnp config file is encrypted how come you can edit it?
or can you englighten me how i can just disable all Input and touch boosts from pnpmgr while keeping pnpmgr? :)
i think that would be the best for my script but i wasn´t able to do so.
i found no other way to stop the touchboost other than disabling pnpmgr completely.
maybe we can integrate my interactive values with your mod? if you are okay with this of course!

thanks :)

I cant give you much details on how i edit them, theres reason HTC encrypted them, if we spill it out, HTC would change encryption and everything very soon i suspect, so hope you understand why i wont share that part.

I can disable input boost for you, but im still not sure how your mod works along with PnP, as PnP constantly changes values dynamically, if you chmod values, than PnP constantly tries to change freqs and fails(may cause some problems).

What i can also do, is incorporate your changes directly into my mod, and make "ghostpeper" profile which would work directly in PnP, and people can choose and test which one works better for them and their daily usage.

EDIT:You could simple disable input boost by echoing 0(maybe chmod remove write permission after that so it cant change it) to

/sys/power/pnpmgr/touch_boost
/sys/power/pnpmgr/long_duration_touch_boost
 
Last edited:
  • Like
Reactions: Freak07

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
4,887
15,604
I cant give you much details on how i edit them, theres reason HTC encrypted them, if we spill it out, HTC would change encryption and everything very soon i suspect, so hope you understand why i wont share that part.

I can disable input boost for you, but im still not sure how your mod works along with PnP, as PnP constantly changes values dynamically, if you chmod values, than PnP constantly tries to change freqs and fails(may cause some problems).

What i can also do, is incorporate your changes directly into my mod, and make "ghostpeper" profile which would work directly in PnP, and people can choose and test which one works better for them and their daily usage.

EDIT:You could simple disable input boost by echoing 0(maybe chmod remove write permission after that so it cant change it) to

/sys/power/pnpmgr/touch_boost
/sys/power/pnpmgr/long_duration_touch_boost

yep i totally understand this. it would be however great if you could disable Input boost for me directly in the pnp binary.
i already tried to edit the files you mentioned in sys/power/pnpmgr. when i did this I got heavy lags. really heavy. i think something is conflicting there.
yeah the chmod trick worked before base 1.80. i would simply chmod the min freqs for big and Little Cluster and touchboost from pnpmgr disappeared magically. this trick is no longer working with the new base. that´s why i was forced to disable pnpmgr.
if you want to you can incorporate the Butterfly values for the interactive governor in your mod. I think Butterfly works far better on our 10, that´s why i just updated Butterfly for base 1.80.


does pnpmgr also edit the values for the interactive gov dynamically?
if you could make a pnpmgr config where touch/Input boost, Setting min/max freqs is disabled i´d be quite happy.

---------- Post added at 11:17 AM ---------- Previous post was at 11:10 AM ----------

cool so this would conflict as butterflyv11 disables the pnp

would try this and see :highfive:

you may also just edit my script and comment out with a # or delete the line "stop pnpmgr" :) then the pnpmgr conflicting part will at least be removed.
 
Last edited:

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
yep i totally understand this. it would be however great if you could disable Input boost for me directly in the pnp binary.
i already tried to edit the files you mentioned in sys/power/pnpmgr. when i did this I got heavy lags. really heavy. i think something is conflicting there.
yeah the chmod trick worked before base 1.80. i would simply chmod the min freqs for big and Little Cluster and touchboost from pnpmgr disappeared magically. this trick is no longer working with the new base. that´s why i was forced to disable pnpmgr.
if you want to you can incorporate the Butterfly values for the interactive governor in your mod. I think Butterfly works far better on our 10, that´s why i just updated Butterfly for base 1.80.


does pnpmgr also edit the values for the interactive gov dynamically?
if you could make a pnpmgr config where touch/Input boost, Setting min/max freqs is disabled i´d be quite happy.

---------- Post added at 11:17 AM ---------- Previous post was at 11:10 AM ----------



you may also just edit my script and comment out with a # or delete the line "stop pnpmgr" :) then the pnpmgr conflicting part will at least be removed.

PnP controls everything u mentioned, all your butterfly/ghost scripts has, and about 10x times even more :)

I checked your script, you just echo to disable input boost, try chmod it after you disable it with denial permission so it cant be changed..
Should work, if not i can mode PnP for you, but above would be better solution for you..
 
  • Like
Reactions: Freak07

tbalden

Recognized Developer
Oct 22, 2010
9,880
16,935
Budapest
www.virtuousrom.com
There is no need for that, it wont affect android pay or similar, why exactly you ask?
well, just related to OTAs, but that might be unimportant as you can flash back to original files, or restore no-RW mounted system image backups.
Or am i lagging behind, it's working to have a RW mounted system and do OTA updates? I don't follow that part much, my bad
 

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
well, just related to OTAs, but that might be unimportant as you can flash back to original files, or restore no-RW mounted system image backups.
Or am i lagging behind, it's working to have a RW mounted system and do OTA updates? I don't follow that part much, my bad

Its so much easier just to restore original image, i think wont do it systemless, as they are key system parts, dont want some weird things to happen..
 

tbalden

Recognized Developer
Oct 22, 2010
9,880
16,935
Budapest
www.virtuousrom.com
Its so much easier just to restore original image, i think wont do it systemless, as they are key system parts, dont want some weird things to happen..

OK.
I'm testing balanced option at the moment.
Also, i know I'm off topic, but in the end what's the recipe: what does and what doesn't affect androidPay. (I'm lagging behind again in this topic, just avoid modifying system partition in my kernel as it seemed to affect it at that time... as i don't use androidPay I didn't follow what exactly makes it unworking).
 
  • Like
Reactions: holofractal

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
4,887
15,604
PnP controls everything u mentioned, all your butterfly/ghost scripts has, and about 10x times even more :)

I checked your script, you just echo to disable input boost, try chmod it after you disable it with denial permission so it cant be changed..
Should work, if not i can mode PnP for you, but above would be better solution for you..
Thanks I will try this and come back at you
 

ivicask

Recognized Developer / Recognized Contributor
May 25, 2009
5,079
16,403
32
Zagreb
venomroms.com
OK.
I'm testing balanced option at the moment.
Also, i know I'm off topic, but in the end what's the recipe: what does and what doesn't affect androidPay. (I'm lagging behind again in this topic, just avoid modifying system partition in my kernel as it seemed to affect it at that time... as i don't use androidPay I didn't follow what exactly makes it unworking).

It checks alot of things, and its constantly updated, its simple must be done for security reasons..
 
Last edited:

Freak07

Recognized Developer / Recognized Contributor
Jan 2, 2011
4,887
15,604
Okay so I tried it with 444 permissions and it still lags. Should I try 000?
Would be great if you could make me a file with touchboost disabled and frequency changing disabled. :)
 

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