[One (M8) Android Development] sayad1:
(PnP&Thermals tweak)battery saving and better performance for m8 100% working[ 11/8]

I'm not the dev

1st of all thanks to [MENTION=1792279]ivicask[/MENTION] for making this awesome tweak

Original thread :> http://xdaforums.com/htc-10/development/pnpthermals-tweak-customized-profiles-t3411860

:D:o;)This is the better battery saving and performance tweaks ever I face best battery life after flashing this tweaks

This tweak originally for m10 and it's available on venum hub and m10 development thread i was tested this and it's work perfectly on m8 without any issues so I decided to bring to m8 users

bugs

Sorry no bugs

change logs

[*]

8.11.2016

v19:Fixed CPU dosnt drop to lowest speed for some users/kernels

- Merged v18 balanced changes into performance profile

working on cm 14.1 and old or gpe base rom and aosp,lyrs

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

[*] Quote:

[*]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

[*]

[*]Compatibility

[*]All 1,8x and 1.9x based roms and kernels(even stock).

[*]Not compatible with 1.5 or below bases (will cause random crashes), use Version v8 for older 1.5x and 1.2x bases

.work

Only on sense based rom like srom ,viper,sky dragon and other cm,aosp,gpe lyrs

[*]Download

[*]Version v19

https://drive.google.com/file/d/0B8deuP4KW_MgOUdjZGI2dGttZmM/view?usp=drivesdk

install

[*]

[*]1 Put file into internal or external SD card

[*]2 goto twrp recovery

[*]3 chose file and hit install

[*]4 reboot system and enjoy your phone's new battery life

[*]5 if twrp offer you to install superSU do not install

[*]Screenshots

[*]View attachment 3912107. View attachment 3912106. View attachment 3912105.