Question Modified thermals (thermald) - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

I've read that Casanova project has different thermals (Balanced, Performance) available to use with Magisk, which provide different thermald implementations. The one with performance sets the thermal throttle border higher - CPU (and GPU?) throttling will be done at higher temps than stock. I would like to try that out (even knowing that the device produces more heat then and eats more battery of course).
Now I don't have root, but TWRP. And I don't plan to root my device. Does anyone know if it's possible to create a TWRP flashable from the Magisk module? Or is there already something for TWRP?
Thanks in advance!

there is a channel in telegram called @ThermalAlioth. he/she does some good stuff
Edit: I dont have an answer for your question, i just wanted to get that person some fame for his/her good work

kniffo80 said:
I've read that Casanova project has different thermals (Balanced, Performance) available to use with Magisk, which provide different thermald implementations. The one with performance sets the thermal throttle border higher - CPU (and GPU?) throttling will be done at higher temps than stock. I would like to try that out (even knowing that the device produces more heat then and eats more battery of course).
Now I don't have root, but TWRP. And I don't plan to root my device. Does anyone know if it's possible to create a TWRP flashable from the Magisk module? Or is there already something for TWRP?
Thanks in advance!
Click to expand...
Click to collapse
I recommend using Thermal Engine disabler 855 Magisk Module and then settings in FKM Kernel manager Dynamic Evaluation thermal profile as on boot.

Thanks, but I don't have magisk and therefore no root I thought it might be possible through TWRP flashable. It seems not

kniffo80 said:
Thanks, but I don't have magisk and therefore no root I thought it might be possible through TWRP flashable. It seems not
Click to expand...
Click to collapse
Thermal Mods are impossible with TWRP even thermal profile in fkm needs root

Related

[Base 1.80][Root][SCRIPT] 08/07 Butterfly V12/Ghostpepper Inspired Interactive Values

Hey Guys,
I thought while waiting for the first custom kernels that maybe i should have a look at the interactive values and try to tweak them based on this way:
http://forum.xda-developers.com/nexus-5x/general/guide-advanced-interactive-governor-t3269557
So i took a script from @Alcolawl and modified it to work with our device. Many thanks for his scripts.
I adjusted the values to our snapdragon 820 as the original scripts are for the nexus 6p which runs with a snapdragon 810. (octa on the 810 vs quad-core on the 820)
I´d highly recommend to try these values as it gave me a significant boost in battery life. here is a screenshot:
https://drive.google.com/file/d/0BxbxiBXaZVu-N1lsRTMyZ2hsY1k/view?usp=sharing
https://drive.google.com/file/d/0BxbxiBXaZVu-N1MzamRvM2FVZlk/view?usp=sharing
BIG UPDATE: with base 1.80 i´m not able to trick the touch/Input boost from htc´s pnpmgr with a chmod command like i did before. so all versions since Butterfly v11 will disable pnpmgr completely.
that means if you Play high end games and your device overheats like crazy please Report back. i had no Problem until now.
also there are now 2 versions. the oc one is for overclocked cpus with elementalx. without oc is for the default clock speeds.
here are explanations on what the 2 different stragies do:
Butterfly - A culmination of all strategies, provides smoothest performance of all currently published settings, though battery savings are a little more modest. Excellent for light and moderate users; heavy/marathon users might want to check out a different setting profile as it gets battery intense with heavy usage.
GhostPepper - Uses a quantized, frequency-aligned parametric curve to influence low core clock rates while providing extremely smooth transitions from each clock rate and exceptional battery life. Good for light to medium usage and multitasking.
So basically there will be two ways of applying this mod.
First one is via scripts. this allows to set parameters outside of the interactive governor controls like cpu boost, editing of pnpmgr, min/max frequencies etc. so basically there´s more control.
Second one is via EX Kernel Manager. I will upload the profiles and you can apply them directly into the app. This will however only affect the tunables of the interactive governor. Touchboost has to be set manually for the profile to work exactly as intended.
when the phrase "elex" is in the zips name it is for use with ex kernel manager app (loading profile in governor options screen.
so to try the script method follow these steps. (and before do a nandroid as always)
1. download the attched file.
2. unzip the file, choose the correct script (oc if you have overclocked)
3. with a root explorer or terminal copy the file to system/su.d
4. set the correct permissions (rwxr-xr-x)
now you may either choose to change the settings temporary (step 5A) until the next reboot or permanently upon each reboot (step 5B)
5A. rename the file to 50ghostpeppertenv3.sh
use any script manager and run the script from this location (system/su.d)
alternatively use any terminal emulator app with the following commands
su
cd system/su.d
sh 50ghostpeppertenv3.sh
Be advised that the script takes in its current state 60 seconds to be applied. So the changes need a minute to be applied.
now check if the script has applied
- to do this go to sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
- if it looks like this: "25 480000:35 652800:45 844800:60 960000:75 1113600:85 1228800:90 1401600:95 1593600:100" the script was applied successfully
- the values changed with each update. what´s important to check is just the generel layout
5B. (-if you did the temporary approach beforehand remove the .sh)
- it should look like 50ghostpeppertenv3 (make sure there are now spaces at the end)
reboot and check if the script has applied
- to do this go to sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
- if it looks like this : "25 480000:35 652800:45 844800:60 960000:75 1113600:85 1228800:90 1401600:95 1593600:100" the script was applied successfully.
-- the values changed with each update. what´s important to check is just the generel layout
Important!!!
if you run permissive and run into no signal issue due to this look here
if you should run into a no signal issue where your baseband shows as unknown under software status ( currently on custom roms eg leedroid) you have to put a script to system/su.d that sets selinux to permissive. attached is such a script.
unzip it. copy it to system/su.d
set the same permissions as the ghostpepper script and your good to go.
running in terminal the command "getenforce" should return permissive.
Second method via Elemental App:
1. Download the desired profile from the attachments
2.Extract the Profiles from the zip
3. Choose the Overclocked(oc) version if you overclocked
4.Copy the file to sdcard/ElementalX/gov_profiles
5. Open the app and apply the values
let me know if it brings a little battery boost for you. you may also let me know if you face performance issues.
Thank you and have fun testing it.
Changelog:
Ghostpepper:
v1: Initial Release
v2: Tweaking The Script so the values will get applied properly on all roms
adding a permissive script in case of getting enforced
v3: Removed touchboost so the profile may unleash its full potential <<--- results in overall slower device.
v4: Added back short input boost
v4withtb: Added back original touch boost from htc
v8: New try on getting the interface smooth and disabling touchboost (minimal stutter remains)
v8withtb: same as v8 touchboost is still active
v9: only one version with touchboost now. tweaked target loads (lower freqs are used more), short input boost
there are now two files inside the zip.
v10: try to further improve frequency usage, less aggressive scaling
v11: fix in case Little cores might get stuck at highest clock
Butterfly
v4: Initial Release
v4withtb: Initial Release with original touch boost from htc (extremely smooth)
v6withtb: tuned the values and kept touchboost from pnpmgr, kernel touch boost is disabled, extremely smooth for me
v7: less aggressive scaling, performance should be really good while reducing less power than v6
v9: basically scaling is tuned to respect the crossover effieciency point from big and little cluster
v11: updated to work on base 1.80
- disable pnpmgr completely because the chmod trick for disabling pnpmgr´s touchboost is no longer working
- enable msm_thermal and core_control
v12: tweak some values to work better with the new base
v13: hotfix as i made a mistake in the previous version
credits:
thanks to @Alcolawl for the script template
also thanks to @soniCron for the original thread
reserved
Thanks for this - about to try it out now.
Question, though - Instead of using init.d, which requires a modified ramdisk, why not just use su.d, which only requires SuperSU?
EDIT: It doesn't seem to be loading when using su.d either.
Thanks. I'm using it now. Will let you know if there are any performance problems.
Can you also make a script that makes the phone smoother?
Captain_Throwback said:
Thanks for this - about to try it out now.
Question, though - Instead of using init.d, which requires a modified ramdisk, why not just use su.d, which only requires SuperSU?
EDIT: It doesn't seem to be loading when using su.d either.
Click to expand...
Click to collapse
Yeah it's strange. When flar will Releases his kernel, init.d will be hopefully working.
Seems like we have to apply it manually for now. When exkm gets updated we can switch profiles there so maybe we should just find good values now.
gusoldier said:
Thanks. I'm using it now. Will let you know if there are any performance problems.
Can you also make a script that makes the phone smoother?
Click to expand...
Click to collapse
Did you face a performance loss with these values? For me it's already pretty smooth.
But sure I may trim it more performance oriented yes.
Freak07 said:
Did you face a performance loss with these values? For me it's already pretty smooth.
But sure I may trim it more performance oriented yes.
Click to expand...
Click to collapse
Compared to stock I feel no performance loss, as smooth as stock. What I actually meant was a new script for buttery smooth nexus like experience.
Btw I will also check how hot it will get. On stock the phone gets sometimes hot watching youtube etc. Hopefully it'll better with this script
gusoldier said:
Compared to stock I feel no performance loss, as smooth as stock. What I actually meant was a new script for buttery smooth nexus like experience.
Btw I will also check how hot it will get. On stock the phone gets sometimes hot watching youtube etc. Hopefully it'll better with this script
Click to expand...
Click to collapse
yeah. I can try this later. But compared to my nexus 6 and my pixel c the 10 is about as smooth.
Freak07 said:
Yeah it's strange. When flar will Releases his kernel, init.d will be hopefully working.
Seems like we have to apply it manually for now. When exkm gets updated we can switch profiles there so maybe we should just find good values now.
Click to expand...
Click to collapse
Got it working with su.d. Just needed to add some sleep at the beginning of the script, otherwise it runs too early and the parameters can't be set .
P.S. You didn't answer my question about why you're not using su.d instead of init.d?
Captain_Throwback said:
Got it working with su.d. Just needed to add some sleep at the beginning of the script, otherwise it runs too early and the parameters can't be set .
Click to expand...
Click to collapse
Can you post it? I will add it to op thank you captain!
Edit: didn't think about it I'm not that knowledgeable.
Or is it just like "sleep 30"?
Edit2: it is indeed. thank you again.
Freak07 said:
Can you post it? I will add it to op thank you captain!
Edit: didn't think about it I'm not that knowledgeable.
Click to expand...
Click to collapse
Sure, right now I'm just trying to find the minimum sleep value that works, and once I do, I'll post it.
RE: su.d, see the 2nd paragraph here: http://su.chainfire.eu/#selinux-policies-supolicy
An additional advantage besides the ones listed there is that in a systemless root setup, su.d doesn't require modifying system at all, which is important for being able to take OTA updates in the future. On this device, I try to touch system as little as possible (if at all), so it might be a better alternative, and doesn't require a custom ramdisk.
Captain_Throwback said:
Sure, right now I'm just trying to find the minimum sleep value that works, and once I do, I'll post it.
RE: su.d, see the 2nd paragraph here: http://su.chainfire.eu/#selinux-policies-supolicy
An additional advantage besides the ones listed there is that in a systemless root setup, su.d doesn't require modifying system at all, which is important for being able to take OTA updates in the future. On this device, I try to touch system as little as possible (if at all), so it might be a better alternative, and doesn't require a custom ramdisk.
Click to expand...
Click to collapse
yeah you´re right. thanks for the reference and the hint. i knew about it but didn´t remember i could use this see my edited last post. with sleep 30 it´s working for me. i updated the op.
besides, do you had any luck in finding your pvs bin? i´m extremely intersted in this. i only found my voltage table so far. maybe you may post yours too. i opened a thread here:
http://forum.xda-developers.com/htc-10/how-to/post-voltage-table-chip-t3383494
if we had a way to check our pvs bin it would be even more helpful.
Freak07 said:
yeah you�´re right. thanks for the reference and the hint. i knew about it but didn�´t remember i could use this see my edited last post. with sleep 30 it�´s working for me. i updated the op.
besides, do you had any luck in finding your pvs bin? i�´m extremely intersted in this. i only found my voltage table so far. maybe you may post yours too. i opened a thread here:
http://forum.xda-developers.com/htc-10/how-to/post-voltage-table-chip-t3383494
if we had a way to check our pvs bin it would be even more helpful.
Click to expand...
Click to collapse
sleep 30 didn't work for me, as I have another script running before this one. It's probably safer to go with sleep 60 to make sure it loads for everyone (sleep 45 did work for me too, but 30 was too short - figured it's better to allow more time). Just a suggestion, or you could just tell people that if it doesn't load for them to increase the sleep value. Up to you, really.
EDIT: And I don't know anything about a pvs bin
Captain_Throwback said:
sleep 30 didn't work for me, as I have another script running before this one. It's probably safer to go with sleep 60 to make sure it loads for everyone (sleep 45 did work for me too, but 30 was too short - figured it's better to allow more time). Just a suggestion, or you could just tell people that if it doesn't load for them to increase the sleep value. Up to you, really.
EDIT: And I don't know anything about a pvs bin
Click to expand...
Click to collapse
Okay i'll edit it to 60.
This is what I'm talking about. Every Chip has a pvs bin. The higher the bin the lower the voltage for a certain cpu frequency.
And every bin has its own voltage table.
http://forum.xda-developers.com/htc-one-m8/general/guide-snapdragon-801-clocking-voltage-t2807173
Hey @Freak07,
Wondering if you can help.. Can't seem to get this working?? Please see attachment. I've set permissions and used terminal to get it working but no dice?
Edit: Nevermind.... I can't follow simple instructions to unzip a file (I was renaming the zip rather than unzipping and renaming that to .sh).... #Special
Edit 2: Went straight for option 5b (so it should have worked on reboot). When I rebooted I lost the radio and have had to clean flash my ROM? I was on Leedroid's Rom when it happened.
rav101 said:
Hey @Freak07,
Wondering if you can help.. Can't seem to get this working?? Please see attachment. I've set permissions and used terminal to get it working but no dice?
Edit: Nevermind.... I can't follow simple instructions to unzip a file (I was renaming the zip rather than unzipping and renaming that to .sh).... #Special
Edit 2: Went straight for option 5b (so it should have worked on reboot). When I rebooted I lost the radio and have had to clean flash my ROM? I was on Leedroid's Rom when it happened.
Click to expand...
Click to collapse
Which Kernel were you on?
This morning i had the same issue when flashing tbalden Kernel using leedroid and my Script.
Freak07 said:
Which Kernel were you on?
This morning i had the same issue when flashing tbalden Kernel using leedroid and my Script.
Click to expand...
Click to collapse
Hey buddy,
I was on the kernel built into Leedroid.
Hope that helps.
rav101 said:
Hey buddy,
I was on the kernel built into Leedroid.
Hope that helps.
Click to expand...
Click to collapse
How did you recover? Full Wipe?
Delete
Freak07 said:
How did you recover? Full Wipe?
Click to expand...
Click to collapse
Yeah, I tried a dirty wipe but that didn't work so had to do a full wipe.

[KERNEL][8.1] Electron Kernel for Taimen [v4][Discontinued]

Due to the @MSFJarvis and @nathanchance being the unbeatable dynamic duo, I've decided to discontinue this kernel. At this point, our kernels are extremely similar, save ElectroUtil and a few misc commits. Rather than put time into a modified Flash kernel, I recommend y'all just try Flash (warning: its pretty good). ElectroUtil and my other changes will live on in the CarbonROM kernel, and will simply be added on top of flash kernel. Thanks for supporting this project while it was alive.
For those of you who have used my angler and (unreleased) ether kernels, then you already know how this works. Feel free to skip to the Instructions.
Electron kernel has a few goals that make it different from other kernels. These goals are to:
Be as light weight as possible
Improve battery while performing at least as well as stock
Be a flash-and-go kernel (recommended settings are defaults)
That being said, This is a flash and go kernel (If you install the Magisk Module), please do not tweak options unless you are an advanced user.
Electron does NOT have spectrum support yet, and I don't plan on adding it until twrp is semi stable.
Current Features:
Upstreamed to 4.4.108
Updated EAS
ElectroUtil governor (renamed schedutil for compatibility)
Maple I/O scheduler
Adreno Idler
GPU Display state awareness
KCAL Support
Wake Gesture support
State Notifier
Disabled FSync
Power-Efficient Workqueues
Wakelock blocker
Devfeq wake boosting
FP Scanner speedups
CAF CPUIdle Updates
GPU+CPU Undervolted
Zen Interactive Tunings
Optimized string routines
Many warnings fixed
Optimized strlen use
Compiled with DragonTC 4.0
Polly optimizations
Installation:
Download the Electron boot image
OPTIONAL: Patch with Magisk
Run "adb reboot bootloader"
Run "fastboot flash boot /path/to/Electron-boot.img"
RECOMMENDED: Download Electron Defaults zip
Install as a Magisk module by pressing the "+" in the modules menu
Reporting Bugs:
Please follow this guide by @The Flash . If reporting a crash/reboot, provide both a dmesg and ramoops. Otherwise, provide a logcat and dmesg. CLICK HERE
Download:
Boot Image
Magisk Module
I would like to thank all of the great people whose support and help that I've received and whose work I've referenced to make this kernel a reality: nathanchance(TheFlash), boeffla(andi-p), FranciscoFranco, RenderBroken, flar2, xanaxdroid, R3V3NT3CH, arter97, DespairFactor, neobuddy89, ZeroInfinity, and anyone I missed!
XDA:DevDB Information
Electron Kernel for Taimen, Kernel for the Google Pixel 2 XL
Contributors
frap129
Source Code: https://github.com/frap129/taimen
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: v4
Stable Release Date: 2017-12-26
Created 2017-11-15
Last Updated 2018-02-08
In this post, I will add descriptions of my original kernel features for users and developers to reference.
ElectroUtil Governor:
ElectroUtil is a schedutil based CPU Frequency governor, taking some queues from pwrutilx by ZeroInfinity, but with an overall different frequency selection algorithm.
ElectroUtil is a hexacore-biased governor, meaning that all 4 Silver and the first 2 Gold cores are preferentially granted higher frequencies at lower utilizations than the last 2 Gold cores to prevent excess use of more Gold cores than necessary. ElectroUtil is also device state aware, forcing lower frequencies when the device is suspended. This is handled via 2 different mechanisms. The primary mechanism is the 'suspend_capacity_factor' tunable, which is used such that
max = capacity * (suspend_capacity_factor + 1) / suspend_capacity_factor
where 'max' is the divisor of the frequency calulation
algorithm. For example, a value of 10 for the capacity factor result in a frequency that is 1/10th lower when the device is suspended. The second mechanism is a hard limit, set by the tuneables {gold/silver}_suspend_max_freq. If the requested frequency is higher than than the respective suspend max, the max will not be exceded. For the last 2 Gold cores, this max is always the minimum frequency.
Maple I/O Scheduler:
Maple is based on the Zen and Simple I/O schedulers. It uses Zens first-come-first-serve style algorithm with separate read/write requests and improved former/latter request handling from SIO. Maple is biased towards handling asynchronous requests before synchronous, and read requests before write. While this can have negative aspects on write intensive tasks like file copying, it slightly improves UI responsiveness. Like chill, maple also has power saving features. When the device is asleep, maple increases the expiry time of requests so that it can handle them more slowly, causing less overhead.
More to come...
Reserved
Errors out when I try to install module, but the kernel itself runs smooth
crossen0 said:
Errors out when I try to install module, but the kernel itself runs smooth
Click to expand...
Click to collapse
Thats weird, it installed for me. Will look into it asap.
Here's what the error said:
Ah yes, feed my flashing hunger muhahahaha!!! Install of kernel and module went without issues. I have noticed the following repeated in logcat but I had to run out for a few so only posting the error until I return home. Every 10-15 lines in logcat contains the below at least once.
11-14 20:57:26.139 811 811 E [email protected]: Governor not supported by powerHAL, skipping
crossen0 said:
Here's what the error said:
Click to expand...
Click to collapse
That's the same exact error ive been getting with no matter what module i try to flash with magisk. just started after i unistalled viper4android and tried reinstalling it. Can't find a workaround with it just yet either
crossen0 said:
Here's what the error said:
Click to expand...
Click to collapse
Thats a device issue. Try rebooting and/ redownloading
123SIT said:
Ah yes, feed my flashing hunger muhahahaha!!! Install of kernel and module went without issues. I have noticed the following repeated in logcat but I had to run out for a few so only posting the error until I return home. Every 10-15 lines in logcat contains the below at least once.
11-14 20:57:26.139 811 811 E [email protected]: Governor not supported by powerHAL, skipping
Click to expand...
Click to collapse
I forgot that the governor is powerHAL dependant for EAS devices. I'll look for a workaround until twrp works (requires installing a custom powerHAL), but for now, performance and battery don't seem to be affected much
Do I need to rename the .zip?
Maybe I'm missing something here? I have rebooted several times redownloaded the zip.
crossen0 said:
Do I need to rename the .zip?
Maybe I'm missing something here? I have rebooted several times redownloaded the zip.
Click to expand...
Click to collapse
Did you make sure that the Kernel flashed correctly? First time I flashed it I was still on the previous FLash kernel. Had to do it one more time and it finally showed Electron kernel under sett/about. Then I installed the Magisk Module w/the defaults successfully by using + once in Modules menu.
https://drive.google.com/file/d/1lPda5zNtK0FUXswmIIDEvPAGry4wZqss/view?usp=sharing
an21281 said:
Did you make sure that the Kernel flashed correctly? First time I flashed it I was still on the previous FLash kernel. Had to do it one more time and it finally showed Electron kernel under sett/about. Then I installed the Magisk Module w/the defaults successfully.
Click to expand...
Click to collapse
I am on Electron v1
crossen0 said:
I am on Electron v1
Click to expand...
Click to collapse
Hmm, the only other thing I did was copy the Electron-defaults.zip to the MagiskManager folder before installing as a mudule...
an21281 said:
Hmm, the only other thing I did was copy the Electron-defaults.zip to the MagiskManager folder before installing as a mudule...
Click to expand...
Click to collapse
I tried moving it over to MagiskManager folder but it still fails.
Made a quick workaround for the powerHAL issue, will include in v2 (Should only be a couple days)
crossen0 said:
Do I need to rename the .zip?
Maybe I'm missing something here? I have rebooted several times redownloaded the zip.
Click to expand...
Click to collapse
Sounds like a magisk issue. Try completely remove magisk and manager.
Going to dive in!! But, ugh! I have to go back to 8.0? THE HORROR!!! LoL.. Onward!
Up and running fine!!! Just a quick question..maybe OT? Maybe not.. But would this script have any issues with the kernel being installed from here?
https://forum.xda-developers.com/pixel-2-xl/development/mod-pks-tuning-script-t3702834
Is this kernel compatible with the pixel 2?
JayTheNinja said:
Is this kernel compatible with the pixel 2?
Click to expand...
Click to collapse
Really?? Look 5 posts above yours!
Badger50 said:
Really?? Look 5 posts above yours!
Click to expand...
Click to collapse
No, this is XL only! If it was Pixel 2 compatible, it would be in the Pixel 2 forum.
JayTheNinja said:
Is this kernel compatible with the pixel 2?
Click to expand...
Click to collapse
But... its not
No idea why there's such a large number of pixel 2 users that hang out in the xl forum

Best way to avoid bootloop?

As the title said, I'm going to install Stock 8.1 + root and a custom kernel, there is any way to prevent the bootloop? (i.e: reducing clock or lowering thermathrottle?)
Thanks in advance!
You will need to disable big cores. Use BLOD Workaround Injector from https://basketbuild.com/devs/osm0sis/osmods and 4-core version of TWRP: https://basketbuild.com/filedl/devs?dev=osm0sis&dl=osm0sis/osmods/twrp-3.2.1-0-fbe-4core-bullhead.img
przemcio510 said:
You will need to disable big cores. Use BLOD Workaround Injector from https://basketbuild.com/devs/osm0sis/osmods and 4-core version of TWRP: https://basketbuild.com/filedl/devs...is/osmods/twrp-3.2.1-0-fbe-4core-bullhead.img
Click to expand...
Click to collapse
Is disabling big cores with ex kernel manager does the same job?
francos21 said:
Is disabling big cores with ex kernel manager does the same job?
Click to expand...
Click to collapse
No. You have to disable them by modifying the kernel, so they won't be accessible by system.

[MOD] F.u.c.king-Tweaks

Hi guys, I've been working on these for a long time and now finally managed to find best configuration and fix all bugs.
I edited one by one and, after months of hard work, this got where is now
-Battery
-Balanced
-Performance
They do what their name suggest
They tweak:
-Cpu Interactive tweaks(modded by me)
-Battery one will use lowest voltage frequencies
-sysctl
-disable Zram on Battery
-Entropy
-Gpu
-Thermal configs
-sysconfig tweaks(to save battery on deepsleep)
-I/O
-and some in-build configs to kernel
HOW TO INSTALL:
-Make sure you have Magisk v15+ installed
HOW TO UNINSTALL:
-Go into magisk app, click on Modules. Then uncheck F.u.c.king-Tweaks module and click on trash icon. Reboot
Download Link:
https://androidfilehost.com/?w=files&flid=264755
If u want to suggest something or have a question, ask me on Telegram (@Characteress)
Works for Zui ? . .
vladimir.jz said:
Works for Zui ? . .
Click to expand...
Click to collapse
Yup. BTW, this build for battery have deepsleep issues. I'm testing a fix for it already.
Balanced and Performance are working great already.
Links updated !
Hey guys! Finally FINAL Version for all of them!!!
Thanks for everyone that tested and helped me doing this tweak.
You can use on all ROMs for Zuk (should work on all SD820 devices but need test)
Issues fixed:
-Deepsleep(was the only bug left btw)
Added thermal mods to all of them, Sun-Cooling to Battery and Balanced one, and Tweaked FSC-Thermal for Performance.
PS: FSC-Thermal is a thermal mod created by Korom42 for Xperia XZ. I ported it and edited some lines(changed sensor too).
LINKS ARE ON FIRST POST(Thread topic message)
hi all,
anyone compare this tweaks vs helix-engine? which one better?
by using this tweaks , i assume whatever rom we are using right now, will have same result for benchmark and battery backup?
Would this also force Doze on Google Play Service? Im using sysconfig patcher on magisk rn and it might conflict with this, so I wanna make sure I can remove that without any downside
This tweak is better
locolyric said:
hi all,
anyone compare this tweaks vs helix-engine? which one better?
by using this tweaks , i assume whatever rom we are using right now, will have same result for benchmark and battery backup?
Click to expand...
Click to collapse
This tweak is better than Helix engine i personally tested both of them and compared this tweak is better and I am using bootlegger rom with stock bfrv3 kernel
---------- Post added at 01:53 AM ---------- Previous post was at 01:50 AM ----------
pipyakas said:
Would this also force Doze on Google Play Service? Im using sysconfig patcher on magisk rn and it might conflict with this, so I wanna make sure I can remove that without any downside
Click to expand...
Click to collapse
I don't think this tweak will force doze on play service you can remove sysconfig patcher and instal enable doze for gms
Magisk module i am using both modules with no problem
New update is up!
Hi guys, if you follow my projects you know that Sun-Cooling has been updated to v2.2 so I updated Battery and Balanced too.
Performance tweak doesn't need to be updated anymore, as reached it's maximum(maybe I update and spend some more time on it when I have time)
Changelog:
-Changed frequency table on both(they should be more smooth now)
-Added Sun-Cooling v2.2 on both
Download Link:
https://androidfilehost.com/?w=files&flid=264755
Deleted
satyen_ said:
Deleted
Click to expand...
Click to collapse
Access denied fixed. Sorry for the incovenience
Hi, quick question, How's this different from the Sun-cooling mod that you have? Because this seems to have all of the features in that plus some more. Which one do I choose?
kishore1998 said:
Hi, quick question, How's this different from the Sun-cooling mod that you have? Because this seems to have all of the features in that plus some more. Which one do I choose?
Click to expand...
Click to collapse
Hi. So, this tweak is supposed to change a lot of things, I just decided to add Sun-Cooling on it too. In case you want tweak the whole system, flash this. If u want stock configs but only thermal mod, flash Sun-Cooling.
characteres said:
Hi. So, this tweak is supposed to change a lot of things, I just decided to add Sun-Cooling on it too. In case you want tweak the whole system, flash this. If u want stock configs but only thermal mod, flash Sun-Cooling.
Click to expand...
Click to collapse
Awesome. Thanks for letting me know.
characteres said:
Hi. So, this tweak is supposed to change a lot of things, I just decided to add Sun-Cooling on it too. In case you want tweak the whole system, flash this. If u want stock configs but only thermal mod, flash Sun-Cooling.
Click to expand...
Click to collapse
Buddy i have flashed sun cooling
Want to flash this battety mod
If i flash does the overrite sun cooling
And i f i remove this mod does sun cooling which i flashed easier also be gone ??!!
I tested these and these tweaks are effective. But i can't keep them installed as of now as i have to switch between modes frequently and flashing everytime is not an option for me.
characteres said:
Hi guys, if you follow my projects you know that Sun-Cooling has been updated to v2.2 so I updated Battery and Balanced too.
Performance tweak doesn't need to be updated anymore, as reached it's maximum(maybe I update and spend some more time on it when I have time)
Changelog:
-Changed frequency table on both(they should be more smooth now)
-Added Sun-Cooling v2.2 on both
Download Link:
https://androidfilehost.com/?w=files&flid=264755
Click to expand...
Click to collapse
Is your this tweak and sun-cooling tweak are different
kashyapp said:
Buddy i have flashed sun cooling
Want to flash this battety mod
If i flash does the overrite sun cooling
And i f i remove this mod does sun cooling which i flashed easier also be gone ??!!
Click to expand...
Click to collapse
it does overwrite automatically. If u remove this mod, sun-cooling is also gone, so u need to reflash Sun-Cooling.
aslam2121 said:
Is your this tweak and sun-cooling tweak are different
Click to expand...
Click to collapse
Yes, both are mine. Sun-Cooling and F.u.c.king-Tweaks are different. F.u.c.king-Tweaks does a lot of changes(and I've included Sun-Cooling inside it too). Sun-Cooling only changes Thermal configs.
Does this mod work along with AKT or have to install it alone?
characteres said:
Yes, both are mine. Sun-Cooling and F.u.c.king-Tweaks are different. F.u.c.king-Tweaks does a lot of changes(and I've included Sun-Cooling inside it too). Sun-Cooling only changes Thermal configs.
Click to expand...
Click to collapse
Your tweak does cool down my device and battery performance is also lot improved thanks for this wonderful work.

[JDCTeam] [Kernel] BUFFcore-o rel02 [8.x.x][AOSP/Lineage based rom] {EOL]

Buffcore oreo kernel​Samsung Galaxy S4 i9505 (jfltexx)​Release 02 - 11th June 2018​
Code:
#include
/*
* Your warranty is now void.
* And other random stuff no-one reads.
*/
Intro
I had never intended releasing this as a stand alone, but had always been aware that it would work.
With BB and Side both being busy and AOSP and OptLos stalling for a bit, the kernel from RR-oreo should I think help a bit to alleviate users battery issues.
What is it?
Buffcore 2.04 - this is a fork of BB's AOSP 8.1 kernel with added fastcharge and battery saving features.
It is the kernel supplied with RR-o release 2, so isn't needed for RR users.
Code:
renamed to buffcore;
sdfat enabled;
fastcharge implemented for faster charging (up to 1900 ac / 1000 usb);
bcmhd wakelocks for rx and tx halved;
libmemcopy and libstring sped up;
io readahead to 1024k;
lower min cpu governor frequency (270);
power efficient work queues;
voltage tweaking user interface;
faster vmstat;
autosmp hotplugging replacement;
mmc crc disabled;
allow for lower cpu voltage;
reduce swapiness;
optimise divide / multiply by power of 2;
added tcp optimisation options,;
set westwood default;
force doze screen off helper;
optimise cbfillrect function;
reduce wifi wakelock times;
nohz: reduce overhead under high-freq idling patterns.
What rom is it for?
BB's AOSP oreo
Side's OptLos 15.1
Installation
Dirty (use with current rom flash)
Extract the boot.img file from the zip (It is not a flashable zip!).
Reboot rom into twrp.
Perform a nandroid backup to be safe, incase you need to go back.
Go into Install, then select Install Image for Buffcore kernel.
Reinstall your prefered root solution (Magisk, etc).
Do not wipe caches.
Reboot.
Clean (flash as part of clean install)
Extract the boot.img file from the zip (It is not a flashable zip!).
Reboot rom into twrp.
Perform a nandroid backup to be safe, incase you need to go back.
Perform clean recomended in your rom thread.
Install rom.
Go into Install, then select Install Image for Buffcore kernel.
Reinstall your prefered root solution (Magisk, etc)
Install Gapps.
Do not wipe caches.
Reboot.
Usage
Some features will need to be forced on (IF desired) and set to apply on boot with an app like Kernel Aduitor, EXKM etc. (Fastcharge, Min cpu frquency used, Power efficient work queues, Voltage tweaking, AutoSMP hotplugging).
This kernel should / will not be compatible with stweaks.
There will essentially be no support with this, if it works then it works, or doesn't.
If it helps you then it helps you, if it doesn't tough, don't moan about it.
It has had a little testing with the roms it is intended, boots fine and seems to provide some benefit.
This may not get updated either - see it as a stop gap for the moment.
Thanks
Thanks due to Drrossum, Kesaras, CR4IGY_BOY for testing for me.
BB for original kernel and Side and TsvietOK for picks.
Download
Download from AFH here BUFFcore-o-2.04-release02-20180611.zip
md5sum - d2293a1e623ddcc68946dbea7ea12869
XDA:DevDB Information
BUFFcore-o, Kernel for the Samsung Galaxy S4
Contributors
Buff99, side
Source Code: https://github.com/Buff99/platform_kernel_samsung_jf/tree/aosp-8.1
Kernel Special Features: Fastcharge, battery saving features
Version Information
Status: No Longer Updated
Created 2018-06-18
Last Updated 2018-09-13
Reserved
might as well have one, won't be writing much tho....
Very well done, master!
Perfect. I guess it's my new optlos main kernel
side said:
Perfect. I guess it's my new optlos main kernel
Click to expand...
Click to collapse
Of course, we work better and smarter together.
Since Kernels are/should be backward compatible, any reason why this shouldn't work with RR Marshmallow?
Thx!
<CuriousCat> said:
Since Kernels are/should be backward compatible, any reason why this shouldn't work with RR Marshmallow?
Thx!
Click to expand...
Click to collapse
Backwards compatibility with kernels? Not guaranteed that I know of.
When Oreo kernels use 64 bit binder, it locks out use with ROMs that don't have 64 bit binder defined.
You'd be better trying a sidecore kernel for nougat as an intermediate, if it works then try this. A kernel flash that doesn't work should be easy to recover from if have you stock one on hand ready to reflash. Remember that any mod / root that patches the kernel will need reflash.
SideCore kernel is a no go. A stock RR Nougat kernel also. Do you think some repacking with the boot.img of the RR Marshmallow would help?
<CuriousCat> said:
SideCore kernel is a no go. A stock RR Nougat kernel also. Do you think some repacking with the boot.img of the RR Marshmallow would help?
Click to expand...
Click to collapse
if they don't work, then this is a definite no-go.
I think RR marshmallow used the stock CM13.1 kernel, nothing was changed. Your viable choice would be anything cm13 compatible.
Syzrgy & Alucard spring to mind from back in the day.
Buff99 said:
if they don't work, then this is a definite no-go.
I think RR marshmallow used the stock CM13.1 kernel, nothing was changed. Your viable choice would be anything cm13 compatible.
Syzrgy & Alucard spring to mind from back in the day.
Click to expand...
Click to collapse
Alucard can't be found for MM and Synergy is very old (and not sure how stable).
Is there a way to take the (your/lineage) source and compile it to work with MM?
<CuriousCat> said:
Alucard can't be found for MM and Synergy is very old (and not sure how stable).
Is there a way to take the (your/lineage) source and compile it to work with MM?
Click to expand...
Click to collapse
just change the ramdisk using an image kitchen
side said:
just change the ramdisk using an image kitchen
Click to expand...
Click to collapse
I was thinking the same. Let me try.
Once repacked it boots but it's unstable. After running AnTuTu a few times it restarted every time. Not a good sign.
I flashed it several times on I9505 running the LOS15.1 and everytime I reboot after flash it shows the boot up screen with the phone model and then goes to Download mode. The fix for this non booting condition is to reflash the ROM.
Pecata01 said:
I flashed it several times on I9505 running the LOS15.1 and everytime I reboot after flash it shows the boot up screen with the phone model and then goes to Download mode. The fix for this non booting condition is to reflash the ROM.
Click to expand...
Click to collapse
Where is los15.1? Which rom u mean
I meant the Optimized Lineage OS 15.1 builds Version1 on which I tried to install BUFFcore-o rel02 kernel and it didn't work. But i flashed the Lineage OS 15.1 Version2 and it's all working. Good job
Is it possible to change the max frequency? Before compiling? Or manually with an root Explorer?
Just for fun
M4verick44 said:
Is it possible to change the max frequency? Before compiling? Or manually with an root Explorer?
Just for fun
Click to expand...
Click to collapse
aka overclock.
yes its possible.not suggested though.this thing is really advanced and i dont think that u will have nice results.wont be 'fun' at all
Can you add Boeffla Wakelock Blocker to this kernel? The Wi-Fi wakelocks are still annoying.
side said:
aka overclock.
yes its possible.not suggested though.this thing is really advanced and i dont think that u will have nice results.wont be 'fun' at all
Click to expand...
Click to collapse
Will you add over clocking to this kernel anytime soon? @side @Buff99?, maybe @ripee
---------- Post added at 05:34 PM ---------- Previous post was at 05:33 PM ----------
side said:
aka overclock.
yes its possible.not suggested though.this thing is really advanced and i dont think that u will have nice results.wont be 'fun' at all
Click to expand...
Click to collapse
Will you add over clocking to this kernel anytime soon? @side @Buff99?, maybe @ripee

Categories

Resources