[Tweaks] Basic Kernel tweaks for CM13 - Moto G 2015 General

Hi guys,
Sharing with you'll few kernel tweaks that will betterment your battery backup and also maintain good performance on the default kernel of CM13 ROM and it's variants.
Won't bore you'll with lengthy description Head on straight to my screenshots and tweak accordingly.
These have resulted me with less drain in foreground usage and more solid backup in standby.

Thanks to you sir for writing this up! I'm going to try these settings on stock, just to
see if it'll work. If they do I'll let you know. May I ask you why you have set the minimum frequency higher?
EDIT:
The settings won't stick, not even through standby. Oh well. One probably needs a custom ROM then.

TVD1903 said:
Thanks to you sir for writing this up! I'm going to try these settings on stock, just to
see if it'll work. If they do I'll let you know. May I ask you why you have set the minimum frequency higher?
EDIT:
The settings won't stick, not even through standby. Oh well. One probably needs a custom ROM then.
Click to expand...
Click to collapse
Yes CM13 or its variants.
Stock ROM kernel is good by itself. In stock you can try only change IO Scheduler as deadline.
Edit: one small change in TARGET LOADS uploaded in last screenshot

Related

[Q] cpufreq parameters without using 3rd party apps

Hello.
I've got a stock Android 3.2.1 (A501 4.066.29 COM GEN1) rooted with Stock/HV/Taboonay V3.7 for HC 3.2 16-10 - 1.64Ghz/UV control kernel.
The question is:
how to set cpufreq parameters (governor, max_freq,..) WITHOUT using 3rd party apps so that the parameters were restored after reboot.
Thank you for reading this.
Either the kernel needs to support init.d scripts or a service needs to execute on boot.
That kernel doesn't support init.d and Voltage Control has a startup service.
CuriousTech said:
Either the kernel needs to support init.d scripts or a service needs to execute on boot.
That kernel doesn't support init.d and Voltage Control has a startup service.
Click to expand...
Click to collapse
Forgive my ignorance but I can't put to use your answer.
I don't get where is Voltage Control and what I have to do.
Get Voltage Control from the market, make adjustments, save as boot. You'll be given the option to save as init.d script or startup service.
Well.. I tested it. Odd app.
First of all it can see only one core. It's funny. After reboot cpu0 works in conservative mode, max_freq 1.4 GHz and cpu1 in ondemand mode, 1.0 GHz.
I tried to edit init.d script and add the 2nd core but after reboot cpu worked with the default kernel values - script didn't work at all.
Moreover Voltage Control shows voltages turned upside down - the less cpu frequency the bigger voltage values. I fear to use this app
Download setcpu or antutu cpu master it recognizes dualcore , has the boot option
More education would be advised To you PLEASE DONT BREAK YOUR TABLET
Please do not take this the wrong way..
it does sound like you do not know what your doing.. I suggest you read more about over clocking./under voltage of a TEGRA 2 DEVICE.. That will get you more understanding about what you need to do. And maybe even help you decide if you really want to do this or not.. There is alot of resources online about this subject. I have tried custom kernel with set cpu.. I use it on my 650 mhz phone. clock it to 768. but it has a huge battry issue when running at that speed.Not to mention It would be dangerous to leave it on my purse with something running might be a fire bug.. GOOD LUCK .
Basically lower voltage at higher frequencies keeps the CPU stable. Leaving it linear would increase temperature exponentially.
Script Manager can run scripts on startup but I don't know how you could disable them if they keep it from starting up.
I didn't know about VC and dual core though. My bad.
ef1x said:
Download setcpu or antutu cpu master it recognizes dualcore , has the boot option
Click to expand...
Click to collapse
Thank you.
I tried all cpu related apps from the Market that I was able to try. Now I want to try to get along without them.
erica_renee said:
Please do not take this the wrong way..
it does sound like you do not know what your doing.. I suggest you read more about over clocking./under voltage of a TEGRA 2 DEVICE.. That will get you more understanding about what you need to do. And maybe even help you decide if you really want to do this or not.. There is alot of resources online about this subject. I have tried custom kernel with set cpu.. I use it on my 650 mhz phone. clock it to 768. but it has a huge battry issue when running at that speed.Not to mention It would be dangerous to leave it on my purse with something running might be a fire bug.. GOOD LUCK .
Click to expand...
Click to collapse
Thank you Erica
I don't understand? You want something that does the same thing but you don't want to know it's there?
I found one app called System Tuner that lets you adjust CPU frequencies individually. I don't know why though.
CuriousTech said:
Script Manager can run scripts on startup but I don't know how you could disable them if they keep it from starting up.
Click to expand...
Click to collapse
Thank you but it looks too bulky for such a small task. And I still don't want to use 3rd party apps
CuriousTech said:
I don't understand? You want something that does the same thing but you don't want to know it's there?
I found one app called System Tuner that lets you adjust CPU frequencies individually. I don't know why though.
Click to expand...
Click to collapse
Actually I don't like how these apps work. And I thought that setting up a few parameters would't be difficult. It seems I was wrong.
Yep. Code has to execute to do stuff, otherwise that stuff doesn't get done.
System Tuner Pro allows voltage adjustments on overclock settings. If you're interested. Also, has a lot of packages integrated into one (task manager, app freezer, etc). They have a free version in the Market if you're interested. It's nice to have several apps, in one nice package.
Moscow Desire
Thank you but I actually don't need it anymore
I have rolled back to the stock kernel because of constant "sleep of death" issue.
huck_d said:
Moscow Desire
Thank you but I actually don't need it anymore
I have rolled back to the stock kernel because of constant "sleep of death" issue.
Click to expand...
Click to collapse
It's because the 3.7 kernel you used, is really not compatible with the a501. The ultra-low voltage causes "screen freeze" and the "sleep of death" when under 3g only. It's a known issue with the 501 and 3.6 and 3.7 kernels also. I would reccommend RTrips 3.4+. Probably his best for for a501.
I ship it with my own Alexandra II and III rom. No issues with it, and none ever reported.
Had I noticed when I woke this morning, you had an a501, I could have given this advice. Sorry, didn't have enough coffee
---------- Post added at 02:21 PM ---------- Previous post was at 02:18 PM ----------
Moscow Desire said:
It's because the 3.7 kernel you used, is really not compatible with the a501. The ultra-low voltage causes "screen freeze" and the "sleep of death" when under 3g only. It's a known issue with the 501 and 3.6 and 3.7 kernels also. I would reccommend RTrips 3.4+. Probably his best for for a501.
I ship it with my own Alexandra II and III rom. No issues with it, and none ever reported.
Had I noticed when I woke this morning, you had an a501, I could have given this advice. Sorry, didn't have enough coffee
Click to expand...
Click to collapse
The problem, is that a lot of dev's, don't have a501's, only a500's. So they really can't test a lot on it. And sometimes, the issue doesn't happen for 2 or 3 days. Sometimes less. I'm going to experiment a little this weekend, with some of the newer kernels, and mess with the voltage's and see if I can get it stabilized where it doesn't freeze on 3g only.
Moscow Desire ,
Thanks for clearing it up and the advise. I'll try either 3.4 kernel or your ROM.
huck_d said:
Moscow Desire ,
Thanks for clearing it up and the advise. I'll try either 3.4 kernel or your ROM.
Click to expand...
Click to collapse
If you go to RichardTrips kernel thread, you will see a link to his older kernels.
You will find the 3.4 listed on his server. I think you just need to flash it, although I usually dump Dalvak cache.
Alex II is an easy install. Alex III (3.2.1) is a little more ... interesting to install, but not difficult. If you run into an issue, post it in my thread. Everybody else has got it installed, so I think you'll have no issues either.
It's the only "certified" 3.2.1 for the Acer a501 that I know if. Not that the other roms are bad, because they really are good, but, the 3.2.1 they advertise, are from system dumps after running an update, or adding missing files to a 500 rom. The TMPL is an Acer release.

Ultimate Kernal v70

I just installed this amazing kernal, here's the problem the main language where this kernal comes from is German. I have stweaks and synapse installed and not sure how to tweak these setting appropriately to get the most out of this kernal...any help would greatly be appreciated. ..Thank you
*what profiles get better battery life **
The dev is Russian I believe. The kernel was on here but the thread was closed, something to due with source code compliance. Excellent kernel.
You can get sTweaks from the play store, and I'm pretty sure it's the same for synapse - try installing them over the bundled versions.
No recommendations - your use is unique for you, what may be good for you may not be good for another user, and vice versa.
You have a zillion options with sTweaks and synapse, just keep testing.
I don't use the kernel anymore because I didn't want 2 apps to control it and preferred a kernel where I could follow development. But from memory, I used 12 mV undervolt, no OC, on demand governer and got good battery life.
That makes sense...Greatly appreciate it thank you very much

Nexus 4: Best ROM To Use As A Media Player?

Hi guys,
I own an Nexus 4 with parts of the screen not responding. I got a new phone now (Ecoo E04 Plus), now I want to build a iPod-alternative. Now to my question, whats the best ROM for that purpose? It needs a long battery life in airplane mode. Second question anyone nows an that changes ur homescreen to a nice media player? (I thought of Themer) And my third question is what kernel would you prefer? Thanks for your help.
Lukas
PS: Sry for my bad english, I'm only english basic course.
Schockriegel said:
Hi guys,
I own an Nexus 4 with parts of the screen not responding. I got a new phone now (Ecoo E04 Plus), now I want to build a iPod-alternative. Now to my question, whats the best ROM for that purpose? It needs a long battery life in airplane mode. Second question anyone nows an that changes ur homescreen to a nice media player? (I thought of Themer) And my third question is what kernel would you prefer? Thanks for your help.
Lukas
PS: Sry for my bad english, I'm only english basic course.
Click to expand...
Click to collapse
i would suggest stock rom with a few mods or a custom rom. the important thing is custom kernel.
the way i would do it is:
1. stock with xposed framework+gravity box. that way you can enable volume keys to change track
2. chroma rom. ia currently use chroma rom an it is rock stable and it has tweaks built in one of them is volume keys to change track.
in both cases i would install a custom kernel f.e. franco kernel for better battery life. if you want to maximize the battery life you can undervolt/underclock/disable cores. my phone is always undervolted 150mV.
my advice is undervolt (undervolting to much will reboot your phone. my cpu undervolt limit is 150mV so keep that in mind)and disable two cores. two cores are already capable to handle everything. the cpu frequency should be 384mhz - 1.3ghz or 1.5 ghz. see what is good for you. know that the higher the mhz the more power you need
also remember to disable sync and, if you don't need, don't install google services for battery again.
for maximizing battery i don't know which android version is best. i would go to android 4.4.4 or 5.1.1
for home screen i would suggest a widget. also you can also make your player start automatically when android start. there a lot of app in playstore for that.
P.S. if you encourter any stuttering during music playback one reason could be the low frequency of the cpu. i had a problem like this some time ago that is no more on android5.1.1. the solution for me was to change the lower cpu frequency to 512mhz or 700mhz. this solved my problem.
P.S.2 for changing the kernel setting i use franco kernel app. it is a paid app and simple to use. the free franco kernel will flash the appropriate kernel for you. you can find a lot of apps in the store that are free one populare is synapse if i remember correctly.
if you need anything else feel free to ask. hope i helped

Boeffla Configuration: Make Oxygen Fly

I figured I'd share my post with you guys here on XDA. My original post can be found on the OnePlus Forums.
Thanks to @Lord Boeffla OnePlus X users finally have the Boeffla kernel. This kernel brings several features which can aid in improving the fluidity and battery life of Oxygen. Hopefully someday we'll see his work with CM 13. That aside, let's get to my configurations
1. Governor/IO
I decided to use zzmoove alongside it's optimal profile. It provides smooth scaling between frequencies while maintaining great battery life. It also seems to fix performance in games. It should be noted though that Lord Boeffla did warn me against stability issues. I don't have any but it's something to keep in mind.
In place of ROW I switched over to FIOPS for the general performance benefits.
Everything else was left alone.
2. CPU
I increased the frequency to 2572mhz and applied an undervolt. I will not post undervolt settings. Every device is different and that's something you need to take into your own hands. Just because it works for me doesn't mean it'll work for you.
I did change the hotplug to zzmoove native default.
Everything else was untouched.
3. GPU
I just lowered the minimum frequency to 27mhz.
4. Boeffla Sound
I just enabled it. That's it. If anyone wants to share their configuration I'll upload it to this post.
5. Display + LED
Am I the only person that finds the display a little warm? I set red to 248 and green to 250.
Nothing else was changed
6. Miscellaneous 1
I enabled Boeffla system tweaks
Notice: if it wasn't mentioned I never changed it. This was done with the Boeffla app. Here's a link to the original thread:
http://forum.xda-developers.com/one...ernel-boeffla-kernel-4-0-beta1-18-02-t3317638
Flash Procedure:
Find your device and download the kernel here:
http://www.boeffla-kernel.de/
Alternative (Uber/Linaro):
http://boeffla.df-kunde.de/zanezam/linaro/oneplusx/oos2xx/test/
How does Uber compare to other tool chains?:
https://plus.google.com/ ChetKener/posts/YzMJEkzPQgp
Download the stock ROM here:
http://downloads.oneplus.net/
Download any third party tweaks such as Xposed that you use
Launch TWRP
Tap wipe, advanced wipe, and select everything except for internal storage.
Flash the ROM and then the kernel.
Reboot.
TWRP can be found here:
https://twrp.me/devices/oneplusx.html
Instructions to unlock the bootloader can be found here:
http://devs-lab.com/2015/11/how-to-root-oneplus-x.html
Disclaimer:
I'm not responsible if you void you're warranty, kittens fly out your ***, or phone explodes in your pocket in an attempt to boil water
02/28/16: Antutu results are no longer applicable. They are scattered all over the place. Some tests, I get 71k, others 44k. The kernel isn't at fault as all other benchmarks report consistent results. Geekbench seems to provide the most accurate representation at the moment so I'll keep it updated. As for Antutu, I will no longer update the scores until they change their entire algorithm.
General Recommendations
1. Don't enable multicore power saving as it's unpredictable in terms of stability and doesn't really aid battery life. I'd get locked cores and random reboots with it on.
2. Be cautious when undervolting and over clocking. Settings that may work for others, may not work for you. Every processor is binned differently.
3. Do not flash this over Blu Spark or any other kernel. Flash the ROM and then the kernel. Dependencies for each kernel differ.
4. Do not seek me expecting a fix or patch for any issues that you may have. This doesn't mean spam the author with requests either. I will try to help to the best of my abilities, but there may be an issue I can't remedy.
Profile Downloads
Attached you'll find my custom profile. Simply take it and copy it to the folder boeffla-kernel-data and then open the Boeffla Oxonfiguration app. Tap on Default and then load. My profile should show up as Swell.bcprofile.
https://drive.google.com/file/d/0B7CLqaEGT92AWWl3NFFybUt6X00/view?usp=docslist_
Refer to my disclaimer above please. My settings may not work for you.

Help regarding Franco Kernel Manager?

Just downloaded the latest version of franco kernel manager 6.1. Im a total noob in terms of using this tool, so I've been looking for a guide or a tutorial that can assist in using it. Also what is the method of flashing the franco kernel from this tool? Where can I download the franco kernel.zip? I have been looking all over, cant seem to find it. Plz help
Im currently on RR Rom latest version 8.6.3. Im looking for a setting to enhance battery life and overall performance of the Phone.
rigerp said:
Just downloaded the latest version of franco kernel manager 6.1. Im a total noob in terms of using this tool, so I've been looking for a guide or a tutorial that can assist in using it. Also what is the method of flashing the franco kernel from this tool? Where can I download the franco kernel.zip? I have been looking all over, cant seem to find it. Plz help
Im currently on RR Rom latest version 8.6.3. Im looking for a setting to enhance battery life and overall performance of the Phone.
Click to expand...
Click to collapse
Hey there
What I did to get Franco kernel was flash it during my first time rooting (so it was a clean flash, as the phone had be factory reset). Once you're in TWRP, you flash Franco kernel and then magisk. This is one way to do it. I can't advise you to flash a new kernel without clean flash because I personally didn't do it and I don't know if issues will come from that. If you can do it, my personal advice is to just do a clean flash. You know the drill, wipe system data and that stuff > flash ROM > Kernel > Magisk, and done
As for where you can get the zip, there is a thread here in the OP5 XDA forum on ROMs and Kernels I think and that's where franco posted the kernels. He's got a website too linked in the same post
HOWEVER, he hasn't updated them since last year, and I don't think they have support for Android 10, only 9
As for settings, well, in my own experience, you won't get any noticeable boost in battery life or performance without doing some drastic change.
If you want better battery life, you can decrease the maximum CPU frequency, change the governor to Conservative or Powersave, disable some cores, or all of those at once, but they WILL degrade performance, sometimes you won't notice but then you'll try to load a heavy webpage on Chrome and then you'll REALLY notice it.
The inverse is also true. To increase performance you change the governor to performance; usually the CPU frequency is set to its maximum by default, and the cores are all enabled anyway so you don't have to change anything. BUT, keeping the governor in Performance will also keep the CPU clocks at its maximum, and that's going to drain your battery like CRAZY, plus it'll overheat it. Usually there is no practical need for this setting, but I use it to play games on Dolphin emulator since thats when I can actually make use of that performance.
A better alternative is to keep the governor on Interactive, which will scale up CPU clocks depending on the load (if doing light stuff, low clocks. Heavy stuff > high clocks). Otherwise, Conservative does the same thing but takes longer to use higher clocks, so battery is saved.
Always use 1 governor for all cores. Do NOT use multiple governors (example: powersave for big cores, performance for little cores) because that will cause instability issues
Also, if you make any changes, you gotta tap the toggle on it, which will say something like "stay on boot: true". Otherwise, if you for instance change your governor to Performance, and then reboot, all your changes will reset to Default
Personally I just keep my governor in Conservative and roll with the defaults.
Hope that helps ya
sorry for digging but I was loooking for solution..
just make a backup of present kernel (tuned with FKM) and then flash it from backup menu
I was trying flash with twrp, magisk, 'set on boot' at first and many other things but it was so simple, it's there all the time

Categories

Resources