Il Forum è consultabile solo in modalità lettura. Per domande o consigli iscriviti al nostro GRUPPO FACEBOOK / COMMUNITY cliccando qui

[MOD] [PnP&Thermals tweak] Profili Custom | Battery Saving | Better Performance

Discussione in 'ROM e KERNEL per HTC 10' iniziata da uLtiMo125, 29 Set 2016.

  1. uLtiMo125

    uLtiMo125 Golden Droid

    Iscritto:
    19 Dic 2010
    Messaggi:
    7.355
    "Mi Piace":
    4.126
    Questo Addon è stato progettato per risparmiare un po' di batteria supplementare, e per ridurre il calore.

    Magic è composto da 2 file:
    1: Thermal-engine è ottimizzato al fine di fornire prestazioni migliorate con un telefono più fresco, senza grande impatto sulle prestazioni
    2: Pnp file è un altro componente chiave, esso è il motore di controllo di CPU/GPU/EMMC/MODEM e moltio altro, qui sono stati fatti molti ritocchi , ma di seguito una lista rapidamente con alcuni dei più importanti:
    -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..
    Fortemente consigliato non modificare nulla su CPU/GPU tramite altre applicazioni, come EX e lasciare che questo file faccia tutto il lavoro autonomamente

    Compatibilità:
    Tutte le ROM e Kernel con base 1,8x, 1.9x, 2.x
    NON compatibile con le basi 1.5 o inferiori (causerà crash casuali)
    usate la Versione v8 per le vecchie basi 1.5x e 1.2x.

    Istruzioni:
    Basta flashare da recovery lo zip allegato.
    Se per qualche motivo non vi piace questa MOD o in caso di problemi con esso
    l'installer include l'opzione per ripristinare a stock.
    ... sicchè è sufficiente ri-flashare lo zip.

    Download:

    Version v23
    Download link flashable ZIP - AFH



    Versioni Precedenti:

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

    Changelog:
    ion v8 for older 1.5x and 1.2x bases
    Download link flashable ZIP - AFH


    Changelog:
    Code:
    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 dosnt 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

    Di seguito alcuni esempi di durata della batteria ottenuti grazie al profilo Balanced

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]




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

    Contributors
    ivicask, hamdir

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

    Created 2016-07-06
    Last Updated 2017-03-27


     
    Ultima modifica di un moderatore: 27 Mar 2017
    A Giulio75, Marty27 e kalel77 piace questo elemento.
  2. uLtiMo125

    uLtiMo125 Golden Droid

    Iscritto:
    19 Dic 2010
    Messaggi:
    7.355
    "Mi Piace":
    4.126
    I've worked with [MENTION=1792279]ivicask[/MENTION] 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 [MENTION=1792279]ivicask[/MENTION] 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
    [​IMG]

    [​IMG]
    [​IMG]

    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
    [​IMG]

    [​IMG]
    [​IMG]

    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
    [​IMG]

    [​IMG]
    [​IMG]

    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
    [​IMG]

    [​IMG]
    [​IMG]

    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?
     
    A cranio84 e kalel77 piace questo messaggio.
  3. uLtiMo125

    uLtiMo125 Golden Droid

    Iscritto:
    19 Dic 2010
    Messaggi:
    7.355
    "Mi Piace":
    4.126
    RISERVATO
     
  4. Marty27

    Marty27 Silver Droid

    Iscritto:
    7 Dic 2015
    Messaggi:
    3.115
    "Mi Piace":
    3.205
    Thread aggiornato alla versione V22 .
     
    A Giulio75, Paulpier007 e uLtiMo125 piace questo elemento.
  5. Marty27

    Marty27 Silver Droid

    Iscritto:
    7 Dic 2015
    Messaggi:
    3.115
    "Mi Piace":
    3.205
    V23 disponibile...primo post aggiornato col nuovo link!!
     
    A uLtiMo125 piace questo elemento.