yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] shri_chanakya:
Nice kernel. Wanted a kernel to uc to 9600 MHz (very few are around) with i2c uc tweak. This has both.

Thanks for the good work.

---------- Post added at 11:59 AM ---------- Previous post was at 11:57 AM ----------

You removed UC to 96 MHz in the latest version?
[Nexus 5 Android Development] rachanta:
I thought with 96 it was a case of 'fools rush where angels fear to tread'. None of the biggies have it, probably with good reason. I will keep it this way for some time.
[Nexus 5 Android Development] shri_chanakya:
Thanks... I would still remain a fool and move to Uber for the 96 ... Thanks for your effort. It was fun using it though for couple of days
[Nexus 5 Android Development] rachanta:
Sure go ahead. The 'fool' was meant for myself. I thought I was doing something wrong. Moreover I could never really establish what the advantage was with 96 except that i could talk about it. In any case the voltage values I had did not seem right.
[Nexus 5 Android Development] shri_chanakya:
No worries no offense taken..:)... For me it seems using 96 gives the best battery life for me
[Nexus 5 Android Development] rachanta:
Oh no
[Nexus 5 Android Development] ohad129:
Not working to upload it stack on boot
[Nexus 5 Android Development] telekenetix:
Can you tell me how to disable CPUQUIET? I can't figure out how to do it in kernel tweaker or auiditor.
[Nexus 5 Android Development] rachanta:
Updates at OP

[MENTION=2838467]telekenetix[/MENTION] [MENTION=4979677]acat550[/MENTION]

No hotplug is enabled by default. The kernel updater force-disables all hotplugs during flash. The settings script if flashed can survive rom flash and of course kernel flash. You may have an old settings script if you find any hotplug enabled by default. Download the latest setkernel-stock script and flash. Right now the scripts that dont have "stock" in the name are my personal settings where cpuquiet is enabled, other hotplugs are disabled.

I have updated all kernels. Revisited Hotplug code for better coexistence of hotplugs. You still must enable any one only if you want a hotplug. defconfig re-calibrated to cm.
[Nexus 5 Android Development] acat550:
[MENTION=1863016]rachanta[/MENTION] ,

I just flashed the script for stock settings, looked at the kernel auditor immediately after reboot, and that same hotplug was enabled and I didn't have any settings set to start on boot in kernal auditor
[Nexus 5 Android Development] rachanta:
Mistake on my part. cpuquiet was on by default in the stock scripts. Its corrected now. Use this
[Nexus 5 Android Development] acat550:
[MENTION=1863016]rachanta[/MENTION],

Just flashed the updated one you posted. Again, same result, msm mpdecison hotplug is active from default.

Edit: just tried racer_m with both stock and the other flash scripts and the results are the same for both. Both have Msm mpdecsion hotplug enabled as well as other settings have remained the same. Not quite sure why, but wanted to let you know. I really want to use cpuquiet! This is frustrating though, not knowing if it is enabled and working correctly with that hotplug on using kernal auditor
[Nexus 5 Android Development] rachanta:
[MENTION=4979677]acat550[/MENTION] something is wrong here. To check again I booted into my Chroma ROM that has the latest RACER_M after flashing setkernel-aosp-stock. I checked with adiutor and find all hot plugs (msm_mpdecision, intelliplug, msm_hotplug, alucard, autoSMP) are disabled.

There is still CPUQUIET on by default, which as per the script should be disabled. But this is any case what you want. I may have to change the script to set some permissions.

Try manually disabling the hotplugs in adiutor. Check in sys/devices/system/cpu/cpu1/cpuquiet/active. If it is 1 it is active. Likewise check for cpu2,3,4. You can also manually disable cpuquiet this way and check the response.

I am on to this issue, and will let you know if I discover something and correct.
[Nexus 5 Android Development] rachanta:
Something is wrong here. To check again I booted into my Chroma ROM that has the latest RACER_M after flashing setkernel-aosp-stock. I checked with adiutor and find all hot plugs (msm_mpdecision, intelliplug, msm_hotplug, alucard, autoSMP) are disabled.

There is still CPUQUIET on by default, which as per the script should be disabled. But this is any case what you want. I may have to change the script to set some permissions.

Try manually disabling the hotplugs in adiutor. Check in sys/devices/system/cpu/cpu0/cpuquiet/active. If it is 1 it is active. Likewise check for cpu1,2,3. You can also manually disable cpuquiet this way and check the response.

I am on to this issue, and will let you know if I discover something and correct.

Edit:[MENTION=4979677]acat550[/MENTION]

I found the problem and have now added a feature to enable or disable cpuquiet. I am testing further, for interplay with other hotplugs. I will post updates as and when I am satisfied.
[Nexus 5 Android Development] rachanta:
Added CPUQUIET enable / disable toggle

Thanks to persistent complaints, I was forced to look for code to enable and disable cpuquiet, which I though didn't exist. I found it maxwens work in oppo and added a feature to enable or disable cpuquiet. It can be done best in Kernel Adiutor. To change CPUQUIET parameters you will still need setkernel script of kernel tweaker. As such it is better to stay with stock settings for CPUQUIET.

Links at OP
[Nexus 5 Android Development] acat550:
[MENTION=1863016]rachanta[/MENTION]

ThankS for the quick response to the problem. I know notice on kernel auditor the ability to turn off cpuquiet with a toggle. The only issue with the latest kernel is the fact cpuquiet is on by default but that hotplug I mentioned before msm mpdecision is on still by default. Will that affect cpuquiet or battery life?
[Nexus 5 Android Development] rachanta:
I'll post kernel zips again in few hours, but [MENTION=4979677]acat550[/MENTION] I am unable to understand where msm_mpdecision is getting enabled from. If you have kernel apps, please clear app data, install ROM+Kernel only again, clear dalvik , cache reboot. You can use last posted kernel. That has code that force-disables hotplugs, which might make it difficult to enable later through app or script.

Edit: Never enable more than one hotplug. Msm_mpdecision or cpuquiet, not both.
[Nexus 5 Android Development] willybarca:
I'm on caf builds, in non of the builds msm was enabled by default, you probably have to clear system partition next time u flashing roms and kernels, it always helps when I have issues like these
[Nexus 5 Android Development] KingVlad:
[MENTION=1863016]rachanta[/MENTION] Please, if you have a chance, make Sweep2Sleep from right to left.)
[Nexus 5 Android Development] rachanta:
[MENTION=5604376]KingVlad[/MENTION] - Here's what you can do:

Download setkernel zip - aosp or caf as per ROM

Extract zip to folder

Open /set

Edit init.settings.rc

Look for: "write /sys/android_touch/sweep2sleep 0" without quotes - Change settings there - try 1,2

Save and Close

Re-zip all folders in zip

Flash and see

Before anything you can also use file manager to open /sys/android_touch/sweep2sleep and change the values - 0 - disable, 1 - r to l, 2 - l to r, 3 - both ways. It works.

Let me know if you have trouble, I can make a settings zip for you
[Nexus 5 Android Development] rachanta:
Have you updated?

For all RACERs

Added toggle to enable / disable CPUQUIET

Removed default governor and hotplug disabling from rc script

Removed DT2W full screen on by default

Removed Kernel Tweaker bundling with kernel

Its likely that the build you have is not the latest even if the zip is named the same. There was a lot deleting and re-uploading in the last few hours.﻿ Go to OP.
[Nexus 5 Android Development] gemj95:
Just reporting that in the 28/02 MF Build, BFQ I/O Scheduler is missing.

It's litteraly mandatory for an heavy multi-tasker like me :(
[Nexus 5 Android Development] acat550:
[MENTION=2482202]willybarca[/MENTION]

Thanks for the tip. I was thinking that may have something to do with it since no one else had that issue. I will check next time I flash! Also Thanks rachanta for looking into it and updating the kernel
[Nexus 5 Android Development] amir7777:
Is interactive governor more battery friendly than smartmax_eps? [MENTION=1863016]rachanta[/MENTION]
[Nexus 5 Android Development] rachanta:
Confirmed that bfq has gone missing in both caf builds. Expect an update soon.

[MENTION=1818599]gemj95[/MENTION] - go to OP for fresh builds with schedulers fixed
[Nexus 5 Android Development] rachanta:
Its similar, but performs well with no audio buffering, while listening to music.
[Nexus 5 Android Development] willybarca:
interactive and bfq gets optimized more often, the best balance between battery life and performance I think,
[Nexus 5 Android Development] KingVlad:
Thank you a lot! I turned it on but I had to use Ex Kernel Manager to make it survive through reboots.
[Nexus 5 Android Development] rachanta:
Updates at OP - M / CAF / CAF-MF

BFQ scheduler issue fixed
[Nexus 5 Android Development] alexdpaul:
I'm running the the latest Racer Caf, would someone point me to the correct set kernel file to opitmise battery usage.

I used the link from the OP, but found 8 x set kernel files, two of which seemed to be for my kernel - but, which one to use?

Thnx, Alex
[Nexus 5 Android Development] rachanta:
RACER_CAF_MF Overnight battery drain 0.5%/h, using setkernel-caf.zip.

[MENTION=1064083]alexdpaul[/MENTION] - I cleared junk from setkernel folder. Both the caf setkernel zips are good for battery. setkernel-caf has cpuquiet enabled that IMHO is best for battery life.
[Nexus 5 Android Development] alexdpaul:
Thanks, Rachanta, I'll give that a shot later today, and hopefully see the same battery gains as you.
[Nexus 5 Android Development] superleeds27:
Gunna give this a go with AICP.

On purenexus at the moment, but your overnight drain tempts me :)
[Nexus 5 Android Development] rachanta:
[MENTION=2677847]superleeds27[/MENTION]

Try RACER_M for AOSP. Battery life is as good, if not better.
[Nexus 5 Android Development] superleeds27:
What's the deal with CAF/AOSP anyway? Why is there 3 different variants?

Edit: NVM, figured it out. CAF is surely better i would have thought?

Flashed your settings zip, do i need to touch anything else, or should i just leave it?
[Nexus 5 Android Development] rachanta:
Actually nothing. Check the settings in Kernel Adiutor and change anything you dont like. You can choose different hotplugs. Stock settings have no hotplugs enabled. You need to disable CPUQUIET if you choose any other plug. Both setkernel-aosp and setkernel-aosp-stock have battery friendly settings.
[Nexus 5 Android Development] Dodgexander:
Any reason to be concerned by this rr?

http://m.uploadedit.com/ba3u/1456886762596.txt
[Nexus 5 Android Development] rachanta:
What is this? Doesn't look like any last_ksmg I have seen? There is no info here that suggests it has anything to do with the phone. I haven't had a RR in a long time.
[Nexus 5 Android Development] Dodgexander:
Sorry there was something wrong with tiny upload. I've updated to this link http://m.uploadedit.com/ba3u/1456886762596.txt
[Nexus 5 Android Development] alexdpaul:
Thnx, you just doubled the battery life on my device!

Alex
[Nexus 5 Android Development] alexdpaul:
Rachanta, noticed that you're using BBS, what version and have you any issues?
[Nexus 5 Android Development] rachanta:
BBS 2.1.0.0. No issues. Are there supposed to be any?
[Nexus 5 Android Development] rachanta:
Couldn't figure it out. Did you face more RRs. Were you overclocking?
[Nexus 5 Android Development] gatoraid84:
[MENTION=1863016]rachanta[/MENTION] newest build and newest set kernel zip. IMHO have made battery even better than it was. Awesome job
[Nexus 5 Android Development] acat550:
[MENTION=1863016]rachanta[/MENTION],

Finally got around to flashing new ROM and the kernel from clean wipe. No more hotplugs enabled by default! Kernel works awesome! Only question is , I like to under clock the CPU but sometimes the settings don't stick. I seen someone else mentioned that as well. Does the script override the kernel auditor app?
[Nexus 5 Android Development] MichelBorgess:
how i disable cpuquiet ?
[Nexus 5 Android Development] Dodgexander:
No I haven't had any others thankfully. No overclock either.

Btw do you have it in kennel adiutor where fast charge doesn't display as on when it is? I edited the set kernel script to have fast charge on and at 1500 but ka shows it as off by default.

Similar kind of thing with power key suspend, it works but always shows in ka as disabled, even when you enable it!
[Nexus 5 Android Development] rachanta:
Its an old problem
[Nexus 5 Android Development] jugoslavpetrovic:
Screenshots attached, adreno idler is staying off even after flashed setkernel caf. Any clue?
[Nexus 5 Android Development] jugoslavpetrovic:
Aduitor
[Nexus 5 Android Development] rachanta:
Check /sys/module/adreno... Its 1 there. It could be a KA bug. I noticed this from the time I activated it in the code.
[Nexus 5 Android Development] jugoslavpetrovic:
This is what I get when open it as text
[Nexus 5 Android Development] Dodgexander:
I had to revert back to the stock kernel because I found there was audio skipping using racer caf mf when using voice call apps like icq and Skype [emoji20]

I tried to stop it at the time by changing performance profile/cpu governor and disabling cpu quiet hotplug, I even disabled multi core power savings but I couldn't stop the audio skipping.

After dirty flashing my rom; temaseks cm13 the problem went away.

The only other thing I can think would cause it was the viper4android driver, although I didn't have it enabled at the time.
[Nexus 5 Android Development] MichelBorgess:
I can disable CPUQUIET via sys ?
[Nexus 5 Android Development] rachanta:
Kernel does not enable cpuquiet by default. I install set kernel stock zip to disable cpuquiet. Don't install set kernel without 'stock' in the name.
[Nexus 5 Android Development] rachanta:
I get audio buffering with stock interactive governor. I tried to tune it, but no effect. When I change to conservative or smartmax the problem goes away. This a sudden blare, while playing the song. As you say it may be a viper effect.
[Nexus 5 Android Development] nikowfreak:
Anyone know why i can't change the value of the sound parameters via synapse? for example, I apply any value, close synapse, open again, and the changes doesn't persist.
[Nexus 5 Android Development] Eltorito94:
Idem with kernel auditor.. perhaps because i have flashed setkernel-caf.zip? [MENTION=1863016]rachanta[/MENTION]
[Nexus 5 Android Development] Dodgexander:
I was using the interactive governor since I set it from the set kernel script but when it happened I tried changing to performance governer or ondemand and it didn't fix the problem. Either the governor wasn't changing or the problem was with something else. I'm afraid to test again because I need those apps to work properly.

The effect can best be described as cut outs and distortion every couple of seconds. Makes hearing the other person almost impossible.
[Nexus 5 Android Development] rachanta:
[MENTION=5199968]Dodgexander[/MENTION]

The build that I am testing has no audio issues with interactive. I'll post after I implement the upgrade across all versions.
[Nexus 5 Android Development] acat550:
Would like to know if this is the issue as I have similar problem!
[Nexus 5 Android Development] rachanta:
Updates: all racer updated

setkernel script gives me most stable sound setting, that always survives reboot. With most kernel apps, sound setting gets disturbed even after other settings get properly applied. Read the values set with kernel app in sys/kernel/sound_control_3. Put these values at the right place in init.settings.rc in the setkernel/set folder. You will have your sound settings sticking after reboot.

Update changelog:

CPUQUIET - upgrade - using omni-oppo version now meant for marshmallow 6

Kernel Scheduler - Hotplug hooks improved

RQ Stats - Hotplug hooks improved

Build warnings properly dealt with

UBERTC GCC 6.0.0 updated to latest

adaptive cpufreq gov removed from racer-m
[Nexus 5 Android Development] amir7777:
Hey guys, I want to know if it's just me or when I disable CPUQUIET and enable any hotplug with interactive governor it starts lagging quite a bit
[Nexus 5 Android Development] jugoslavpetrovic:
Trying it now but so far no lags, all seems to runs well. If I notice someghing will report back again.
[Nexus 5 Android Development] rachanta:
[MENTION=4860276]amir7777[/MENTION]

After disabling cpuquiet, check two things:

sys/devices/system/CPU/cpuquiet/cpuquiet_driver/enabled is 0.

All cores are switching on.

If you like you could flash setkernel stock to be sure before using kernel setting apps to set anything, so you start clean with all cores on.
[Nexus 5 Android Development] Dodgexander:
Thanks, I'm not sure I had the same problem as you did though with music. When I changed governor when it happened it didn't help.
[Nexus 5 Android Development] amir7777:
[MENTION=1863016]rachanta[/MENTION] thanks I'll try flashing the setkernel stock and try again customizing.

[MENTION=6478047]jugoslavpetrovic[/MENTION] I was having lag on the recent apps multitasking cards when scrolling through them, you don't see any lag there?
[Nexus 5 Android Development] jugoslavpetrovic:
Yup, msm hotplug on cpuquiet off interactive on, no lags
[Nexus 5 Android Development] rachanta:
Update: RACER_CAF_MF_20160306

RACER_CAF_MF_20160306 is up. Get link from op.

Kernel base updated to myfluxi's cm-13.0-caf-20160305 branch.﻿
[Nexus 5 Android Development] jugoslavpetrovic:
One question, setkernel stays on after flashing new kernel? If yes, how to undo setkernel?
[Nexus 5 Android Development] rachanta:
Install setkernel stock
[Nexus 5 Android Development] gatoraid84:
Why would you want to undo the st kernel settings?
[Nexus 5 Android Development] jugoslavpetrovic:
Just in case.
[Nexus 5 Android Development] rachanta:
Updates

All racers updated
[Nexus 5 Android Development] rachanta:
RACER_M update for MMB29V

RACER_M_20160308 is up - works fine with MMB29V (with security patch March 1, 2016)

base updated to googlesource marshmallow-mr1 tag android-6.0.1_r0.24
[Nexus 5 Android Development] jugoslavpetrovic:
Mirrors for walkman missing on afh
[Nexus 5 Android Development] rachanta:
RACER_M_20160308 Tweaked

[MENTION=6478047]jugoslavpetrovic[/MENTION], go here: https://www.androidfilehost.com/?w=files&flid=47501

To all who downloaded RACER_M_20160308:

I found some trouble with layers after installing mmb29v System + Boot images + Super Su 2.68 _ RACER_M_20160308.

The busybox installed by kernel was interfering with the busybox installed by Super su 2.68. I installed mmb29v System + Boot images + Super Su 2.68 again and checked that layers was working fine without racer-m. I have now cleaned out busybox completely from racer-m and uploaded the new build. Now layers works fine. Install RACER_M_20160308 ( Edit: no longer_New):

https://www.androidfilehost.com/?fid=24438995911973671
[Nexus 5 Android Development] jugoslavpetrovic:
Versions 9xxxxxx still without mirrors, I don't know why, but version 8.5xxxx downloaded successfully.

I have never used sony walkman app before. Why is it so special? Just curious. Will try it anyway.
[Nexus 5 Android Development] rachanta:
Update: RACER_CAF_MF_20160309

RACER_CAF_MF_20160309

Kernel base updated (Mar 9) - includes latest update from tag android-6.0.1_r0.24 of marshmallow-mr1 branch at googlesource

Kernel will not install busybox in system/xbin - the feature removed from updater script. Also removed supporting folders and files
[Nexus 5 Android Development] Eltorito94:
New commits caf https://github.com/myfluxi/android_kernel_lge_hammerhead/commits/cm-13.0-caf-160310 [MENTION=1863016]rachanta[/MENTION]
[Nexus 5 Android Development] rachanta:
RACER_M / CAF / CAF-MF Updated

Please go to OP

Changelogs

Unfortunately there seems to be an issue with hammerheadcaf ROMs / source from CM after March 1st security patch. There is com.process.android.phone fc after 1st reboot. I think the kernels are fine, but I havent been able to test so far. Anyone wants to try and report?

Edit:

Success. Installed an older aicp-hammerheadcaf build clean and then installed the latest over it. So far things seem good.
[Nexus 5 Android Development] rachanta:
Fresh builds of all racers with cleaned up repo and upgraded toolchain UBERTC GCC 6.00, March 4, 2016:

https://www.androidfilehost.com/?w=files&flid=33231

Edit:

March ,14

Tweaked racer-caf and racer-caf-mf.
[Nexus 5 Android Development] rachanta:
All RACERS updated

RACER_ M / CAF / CAF-MF updated

f2fs: update to latest from 3.4.y f2fs-stable branch

https://www.androidfilehost.com/?w=files&flid=33231

Edit:

If you run data and cache as f2fs, you may land into many problem. There seems to be a problem with the build, though everything looks good initially.
[Nexus 5 Android Development] eternal70:
What kind if problem exactly ?
[Nexus 5 Android Development] rachanta:
data file system is unstable and files suddenly go missing
[Nexus 5 Android Development] eternal70:
Damn, quite serious. Currently i didn't have that problem, but i fear it will come. Do you have a solution or i just revert to the previous build for a while ?
[Nexus 5 Android Development] rachanta:
[MENTION=5127221]eternal70[/MENTION]

Are you running multirom. I installed both ROMS before I did first boot. I lost the secondary ROM even with the previous build. Maybe thats a mistake and you need to fully install and boot 1st ROM before installing the second ROM.

You are at some risk if you have formatted cache and data to f2fs. Otherwise you should be unaffected.
[Nexus 5 Android Development] rachanta:
[MENTION=5127221]eternal70[/MENTION]

Now both my ROMs are running nicely with data and cache f2fs.

A folder "0" appears in the sdcard. Somehow all the folders I initially transferred to sdcard root are moved to folder "0", which if deleted erases the second ROM. I reinstalled the second ROM after moving all the folders back to sdcard root. I am using the new kernel release earlier in the day, but later withdrawn. Now I'll test properly before I release.
[Nexus 5 Android Development] rachanta:
Got myself bullhead. Bye bye hammerhead. Waiting for USB to usb-c adapter to play with N Preview.

﻿
[Nexus 5 Android Development] Mrcactuseater:
What a coincidence, so did I! See you in the 5X forums?
[Nexus 5 Android Development] Zonkoprince:
So this thread will close? Is this the end of this project?
[Nexus 5 Android Development] rachanta:
There's not much happening. Right now I'll keep it open. Any volunteers for maintenance? We just need to keep adding updates from Google or CM to the base. The kernel is more or less at its best now. I don't know if anything can be improved.
[Nexus 5 Android Development] Eltorito94:
sad news for caf's users :(
[Nexus 5 Android Development] rachanta:
I'll be happy to allow collaborators to continue caf updation and keep the thread alive. We are totally dependent on myfluxi. Adding his commits to base doesn't take much. Any takers?
[Nexus 5 Android Development] gemj95:
Ouch, sad news for us Hammerhead fellas :(

But it's completely understandable: Nexus 5 is going in "End of Support/End of Life" soon from Google...

I'm myself thinking of switching phone soon, but as much as i love phone/rom/kernel customization i don't think i'll buy neither the 5X, nor the 6P, the differences are pretty minimal and with this hardware they were born already old... probably i'll grab an Mi5 Pro when it will come out[emoji14]

Aaaaaanyway, thanks a lot for the huuuuge contribution that you gave to this community, and best of luck for your future projects :)
[Nexus 5 Android Development] jugoslavpetrovic:
[MENTION=1863016]rachanta[/MENTION] Can you add funkyrasta thermal limits to setkernel?