yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] rachanta:
[MENTION=4485711]xeraphael[/MENTION] DIY is my mantra. I know about script manager. It's not as much fun as doing it yourself. My new setmykernel.zip is a flashable script with no overhead. I now flash it along with the kernel, and it is set right from first boot. Users can customize it and create their own. I am working on making it independent of kernel in the sense it should be usable with any kernel.

BTW, this is your idea, that I liked. ;)
[Nexus 5 Android Development] rachanta:
Myfuxi - doesnt stop, i follow - CAFE updated

RACER_CAFE_20151211

Upstream update from myfluxi with many thanks: https://github.com/myfluxi/android_kernel_lge_hammerhead/commits/cm-13.0-caf-151210

Link at OP
[Nexus 5 Android Development] xeraphael:
I'm pretty sure I never suggested anything along the lines of flashing the kernel settings right into the ramdisk, lol.

Your settings from the zip file seem to enable msm_sleeper AND msm_mpdecision together, pretty sure that's not intentional?
[Nexus 5 Android Development] rachanta:
AFAIk msm_sleeper only governs screen off and sleep. It's not a full blown hotplug that controls cores during operations, so IMHO msm_sleeper can coexist with intelliplug, msm_hotplug or msm_mpdecision. The kernel configurations that I have referred to for my work all have different sections for sleeper, limiter and hotplug.

Many kernel makers pass their own stock settings through scripts which directly or indirectly reach init.d. I am yet to study kernel setting apps, which must be making changes to sys parameters through a different process.
[Nexus 5 Android Development] xeraphael:
I'm pretty sure that's not true. msm_sleeper is what flar2 came up with as a replacement for stock mpdecision, I've definitely seen it regulate cores during screen on.
[Nexus 5 Android Development] rachanta:
[MENTION=4485711]xeraphael[/MENTION] flar2's kernel elementalx has mpdecision enabled at all times. flar may have pre-tuned msm_sleeper to complement mpdecision. I just verified this by installing elementalx to keep this debate on. Something better always comes out of these forum discussions.
[Nexus 5 Android Development] xeraphael:
mpdecision is the default hotplug for N5, but you can enable msm_sleeper via the aroma installer or by editing the elementalx.conf file. EX installs a script that checks for the msm_sleeper toggle in its config file:

#Set hotplugging
if [ "`grep HOTPLUG=1 $ELEX_CONF`" ]; then
stop mpdecision
echo 1 > /sys/devices/platform/msm_sleeper/enabled
echo Custom hotplugging >> $ELEX_LOGFILE;
else
echo 0 > /sys/devices/platform/msm_sleeper/enabled
fi

Basically, mpdecision is default, but if msm_sleeper is selected then mpdecision is disabled entirely. I don't think flar2 intended for both of them to be active at the same time.
[Nexus 5 Android Development] rachanta:
I used elementalx express which probably does not enable msm_sleeper as default. The default is mpdecision. It might mean that I need to either disable msm_sleeper by default or remove it altogether so that it does not interfere with any of the hotplugs.
[Nexus 5 Android Development] xeraphael:
It's actually my favourite hotplug. :( Hope you can just disable it instead of removing it.
[Nexus 5 Android Development] reas0n:
[MENTION=1863016]rachanta[/MENTION] Nice kernel. I have two questions about CAF one:

1. Is F2FS working here?

2. What are the differences between this and default CM kernel? (thinking about performance-related commits, not features like fast charging)
[Nexus 5 Android Development] rachanta:
I meant not from kernel, but from the script zip. There is also a chance that I may have enabled it on default init.hammerhead.rc of kernel. It will definitely remain in the main kernel code.
[Nexus 5 Android Development] rachanta:
Yes, I am told f2fs works. The caf kernel has all of myfluxi's latest commits. In fact, the base is myfluxi. That is ahead of official cm.
[Nexus 5 Android Development] minidou-77:
I confirm F2FS but remember to flash this kernel after each CM update otherwise it will not boot

Envoyé de mon Nexus 5 CAF en utilisant Tapatalk
[Nexus 5 Android Development] EnginEAR:
CAFE

Latest SuperSU Beta 2.62-3 works for me with your latest CAFE kernel and latest official CM13 nightly.

FYI.
[Nexus 5 Android Development] rachanta:
On enforcing one at OP or on the permissive one i made for you?
[Nexus 5 Android Development] EnginEAR:
On the enforcing one... I wrote CAFE... not CAFP ;)

CAFP was working even with SuperSU Beta 2.52...
[Nexus 5 Android Development] rachanta:
I have Chroma as primary and CM-13.0-CAF as secondary. Didnt work for me in both cases. I havent wiped data, only dalvik and cache. Is CM-13.0-CAF your primary ROM?
[Nexus 5 Android Development] EnginEAR:
CM-13.0-CAF is my primary and only ROM.

I wiped system...

Also works on my Nexus 9...

Only problem now is getting Synapse to work...
[Nexus 5 Android Development] rachanta:
[MENTION=892369]EnginEAR[/MENTION] - Please check for synapse working

https://www.androidfilehost.com/?fid=24269982087018243

I managed to install cm-13.0-caf as primary along with super su 2.62-3 .

I had to change my recovery to hammerheadcaf recovery to make it work. Somewhere along the way some crucial code to make synapse work (suggested by neobuddy89) went missing in the kernel zip init file. I discovered it when I found synapse borked. Now my synapse works properly. So should yours.
[Nexus 5 Android Development] EnginEAR:
Doesn't work for me :(

I tried re-flashing all:

1) Latest CM 13.0 CAF

2) Latest OpenGapps

3) Boot Animation

4) SuperSU Beta 2.62-3

5) UKM 3.8.1

6) RACER CAFE TEST

Synapse reports "device not supported" :(

Maybe I'm doing something wrong...
[Nexus 5 Android Development] rachanta:
[MENTION=892369]EnginEAR[/MENTION]

Super Su 2.62 is breaking synapse. Without it everything is fine. I dont know if I can fix this, I am trying, but its unlikely I 'll be able to solve this.
[Nexus 5 Android Development] brifal13:
cm 13 caf, don't install super su, goto settings\developer options\root access = apps and adb, good to go
[Nexus 5 Android Development] rachanta:
Some apps like Viper4Android (at least the version i use) need Super Su. If you don't use them there is no need.
[Nexus 5 Android Development] rachanta:
CAF kernel update

RACER_CAFE_20151215 - changelog

Upstream update from myfluxi with many thanks: https://github.com/myfluxi/android_kernel_lge_hammerhead/commits/cm-13.0-caf-151214

SEPolicy support for viper4android - many thanks to [MENTION=6929031]ShadySquirrel[/MENTION]

Visit OP for link

Edit:

With Viper4Android blasting away, there is absolutely no need for me to use Su 2.62-3 and mess up synapse.
[Nexus 5 Android Development] bgboii:
Is it possible to add AC fast charge?
[Nexus 5 Android Development] rachanta:
Follow the leader

CM-13.0-CAF

RACER_CAFE_20151216

https://www.androidfilehost.com/?fid=24269982087019489

Changelog (https://goo.gl/NGY0GP ):

Following myfluxi who has reverted the last update and replaced all the commits with these: https://goo.gl/WqH4jH
[Nexus 5 Android Development] rachanta:
[MENTION=5053589]bgboii[/MENTION] is it different from this?
[Nexus 5 Android Development] bgboii:
It might be the same not sure. I know blu spark has it.
[Nexus 5 Android Development] rachanta:
Something to play with

While its all quiet here's my latest settings flasher zip.

You can open the zip /set folder and play with init.settings.rc. Stock setting scripts are also there to refer to or create a zip for stock aosp and cm settings. Dont change the name of init.settings.rc, as that is the one that gets called by init.rc in the ramdisk.

https://www.androidfilehost.com/?fid=24269982087020250

dt2w / s2w / s2s enable settings cannot be done through the script. Though the code is there, that part is not working with enforcing kernel. In my current test kernel, that I havent posted, I have enabled dt2w by default.

Edit: You can set any hammerhead kernel with it

Edit2:

I've updated both aosp and caf marshmallow kernels. They are now built with UBERTC gcc 6.0.0 Dec 1st (updated Dec 15th by Cl3Kener) toolchain. Earlier one was Sep 1.

Edit3:

The caf kernel also got updated with latest from official cyanogenmod cm13.0-caf branch.
[Nexus 5 Android Development] rachanta:
Any freezes, reboots with latest caf? myfluxi's kernel as base was probably too experimental for those wanting stability, and that includes me. I am building a fresh caf kernel with pure cyanogenmod-caf kernel as base.
[Nexus 5 Android Development] rachanta:
Back with CM-13.0-CAF as base for RACER_CAFE

RACER_CAFE_20151218 is up - link at OP

Reverted to cyanogenmod cm-13.0-caf branch as base. No myfluxi specials.

UKM busybox fix included to resolve “Synapse boot complete” / settings not holding after reboot issue. If UKM is installed, BusyBox X+ version of busybox will get used. The fix will work if RACER_CAFE is installed after UKM. UKM is not part of the kernel and will need to be installed separately

Edit: Somehow the kernel has turned permissive. Dont install this if you want to stick to enforcing

Edit2

Here is the enforcing one:

RACER_CAFE_20151218E: https://www.androidfilehost.com/?fid=24269982087021282
[Nexus 5 Android Development] PugRallye:
I've lost track of this thread.

What's the latest non-CAF kernel?

And can someone point me at/post a link to it please?

Thanks...
[Nexus 5 Android Development] rachanta:
Go to op
[Nexus 5 Android Development] PugRallye:
<blushes>

Silly me.

Thanks...
[Nexus 5 Android Development] PugRallye:
Hmmm.

Battery killed with 85% Miscellaneous drain last night (latest kernel).

Never had that before....

---------- Post added at 01:16 PM ---------- Previous post was at 01:08 PM ----------

Hmmm.

Battery killed with 85% Miscellaneous drain last night (latest kernel).

Never had that before....
[Nexus 5 Android Development] rachanta:
[MENTION=4526898]PugRallye[/MENTION] try installing fresh along with ROM. Do a dalvik and cache wipe. Also try my settings flasher. Link at OP. This aosp kernel racer-6e has been around a few days now and is the first and last after an update from google. I will need to wait for upstream updates for any substantial change. Here's the changelog:https://docs.google.com/document/d/1-51VkcIWM2ygSPNI8gh2uh6Ol0QEMxdRP4CIB1Pu4Go/edit?usp=sharing.

Edit:

Having said that I will try to leave the phone to drain after a full charge on my chroma primary at night to check for battery drain next morning.

FOR RACER_CAFE users only

Here is an update for racer-cafe-mf:

Going forward I may maintain two hammerheadcaf kernels - one following cm-13.0-caf cyanogenmod official which is linked from OP, and this one that I am currently running: https://www.androidfilehost.com/?fid=24336189125296681.

This is a new branch I have opened that follows cm-13.0-caf-myfluxi
[Nexus 5 Android Development] willybarca:
I love how there are so many varieties,
[Nexus 5 Android Development] scowley7:
Hey, I noticed after I installed latest AOSP version that doubletap2wake had been enabled and set to full screen. I'm assuming this is what was killing my battery. Might be the same for you.
[Nexus 5 Android Development] gemj95:
I'm getting Random Reboots just right after i set the governor to Optimax, on the latest "Racer CAFE" :(
[Nexus 5 Android Development] rachanta:
Yes there is a problem. I think a few other governors too are misbehaving in the CAF kernel. I'll run all of them and remove whichever governor doesnt work

I request all to check governors in RACER_CAFE / RACER_CAFE_MF. :fingers-crossed:

Edit:

My own quick check shows - hyper, optimax, pegasusq and yankactive - cause freezes

May be uberdemand as well
[Nexus 5 Android Development] Mrcactuseater:
[MENTION=1863016]rachanta[/MENTION], hey man I have recently switched to your kernel and i was wondering if you could maybe consider adding Electroactive governor, CFS scheduler policy and the option to schedule workqueues on awake CPUs? Love the kernel so far and these options would make it even better!

Tapatalk'd from my Twisted, Electrified Nexus 5
[Nexus 5 Android Development] rachanta:
[MENTION=6262409]Mrcactuseater[/MENTION]

which kernel have you switched to racer-6e, racer-cafe or racer-caf-mf? I have added electroactive and WQ_POWER_EFFICIENT. This is probably what you mean by option to schedule workqueues on awake CPUs. All racer's have fair (CFS). In racer-cafe & racer-cafe-mf gentle fair sleeper control is not exposed. I am trying to do that. I'll be posting todays build soon, but in the meanwhile it would help if you could point to some sources that have the features you mentioned.

Edit:

All kernels updated:

MARSHMALLOW / CM-13.0

RACER_6E_20151221

https://www.androidfilehost.com/?fid=24337548750881319

CM-13.0-CAF

RACER_CAFE_20151221

https://www.androidfilehost.com/?fid=24337548750881282

CM-13.0-CAF-MF (built with [MENTION=4152171]myfluxi[/MENTION]'s cm-13.0-caf repo as source)

RACER_CAFE_MF_20151221

https://www.androidfilehost.com/?fid=24337548750881283

Changelogs: https://goo.gl/NGY0GP
[Nexus 5 Android Development] Mrcactuseater:
I have switched to racer-6e from Electroactive. I will link the Electroactive GitHub as quite frankly, I don't know much about kernels and stuff

Tapatalk'd from my Twisted, Electrified Nexus 5
[Nexus 5 Android Development] rachanta:
duplicate
[Nexus 5 Android Development] eternal70:
Thanks, very quick response to user request :D
[Nexus 5 Android Development] Mrcactuseater:
Thanks man!

Edit 1:

So I dirty flashed and then clean flashed and I don't see either of the governor's, nor will WG_POWER_EFFICIENT setting stick. I'm using kernel auditor if that makes a difference? Thanks anyway tho!

Tapatalk'd from my Twisted, Electrified Nexus 5
[Nexus 5 Android Development] eternal70:
It's fine here on CAFE_MF. I'm using kernel adiutor too.

---------- Post added at 07:33 PM ---------- Previous post was at 07:31 PM ----------

Hey [MENTION=1863016]rachanta[/MENTION] , maybe you can add this to the CAF kernel ? I see it's not on your source yet.

http://xdaforums.com/android/software-hacking/adreno-idler-idling-algorithm-devfreq-t3134872
[Nexus 5 Android Development] eternal70:
Double post
[Nexus 5 Android Development] EnginEAR:
MF

Which would you recommend for use with the official CM13 CAF nighlty? CAFE or CAFE_MF?

I'm not sure what the difference is anyway (I checked the change log in the OP, but...) and if it would somehow manifest...
[Nexus 5 Android Development] rachanta:
[MENTION=6262409]Mrcactuseater[/MENTION]

I am reporting this for racer-6e aosp kernel. I find that Synapse is unable to toggle this setting due to some permission error but there is absolutely no problem with "Schedule workqueues on awake CPUs to save power" settings sticking with kernel auditor. If you still have a problem with the setting not sticking, try flashing my settings script where it is enabled by default:

https://www.androidfilehost.com/?fid=24338798368260140

Edit: I find that after installing the above script there is no problem with Synapse power efficient workqueue setting toggling

There was a problem with the initial racer-6e zip I posted. Try the link at OP now, you will find both electrodemand and electroactive cpufreq governors, which I corrected 10 minutes after posting the first time.
[Nexus 5 Android Development] rachanta:
I couldn't find this commit in any hammerhead kernel source, so decided to copy the work and create my own commit which i included in this kernel built on official cyanogenmod cm-13.0-caf source:

https://www.androidfilehost.com/?fid=24338798368260158

I have checked in /sys/module/adreno_idler/parameters/adreno_idler_active is set to 1. So the idler should now be enabled by default. I see that there is now an Adreno Idler entry in KernelAdiutor/GPU. I dont know what is supposed to happen if this there in the kernel, so please see if it does its job.

Edit2: [MENTION=5127221]eternal70[/MENTION]

Default settings in code:

idleworkload = 5000;

idlewaitms = 500;

downdifferenctial = 20;

adreno_idler_active = 1;

kernel audiutor is not showing these settings correctly

Latest racer-cafe kernel with the full adreno_idler implementation except powersuspend hooks

https://www.androidfilehost.com/?fid=24338798368260249

Settings script for flashing with adreno_idler default settings:

https://www.androidfilehost.com/?fid=24338798368260235

It works:

See before and after using

adb shell

su

cd /sys/class/kgsl/kgsl-3d0/devfreq

while true; do cat trans_stat; busybox sleep 0.1; done

as suggested by the creator [MENTION=4898097]arter97[/MENTION]
[Nexus 5 Android Development] eternal70:
Hmm, thanks ! I will try it soon. Can you add this to cafe_mf too ?
[Nexus 5 Android Development] saxmydix:
Hi, your setting script for aosp workingnfine on Resseruction Remix, but on ScrewdD Rom it dont call. Thanks for your great work
[Nexus 5 Android Development] sach87:
setkernel flash fail

I tried to flash both setkernel and setkernel-caf zips in twrp but they fail. I'm on cm13-caf and latest cafe with adrenoidler. what am i doing wrong?
[Nexus 5 Android Development] gemj95:
Anyone know if the new version of SuperSU still breaks UKM/Synapse? I know i can use Superuser but that breaks Viper4Android... It's hard to choose between the two :(
[Nexus 5 Android Development] eternal70:
[MENTION=1863016]rachanta[/MENTION] adrenoidler build works great ! Gpu is down to 27 mhz now rather than just stay at 320mhz on idle like the older build. Will continue testing.
[Nexus 5 Android Development] rachanta:
I am using Viper on Caf ROM, without SuperSu. Racer-cafe has a viper fix.
[Nexus 5 Android Development] eternal70:
Hey [MENTION=1863016]rachanta[/MENTION] i wonder if you can add lower frequencies like 192 or even 92 mhz in caf kernel. Battery is draining quite fast in idle
[Nexus 5 Android Development] rachanta:
Can't be done as of now
[Nexus 5 Android Development] eternal70:
Thanks for your effort man ! I'll wait then [emoji1]
[Nexus 5 Android Development] PugRallye:
I keep getting 404s for the settings ZIP download link.

Anyone got a working link?

Thanks...
[Nexus 5 Android Development] rachanta:
Sorry op link and all others as well got outdated:

https://www.androidfilehost.com/?w=files&flid=44487
[Nexus 5 Android Development] capt_f0r3st:
Hi, the settings file does represent your prefered and recommended settings?
[Nexus 5 Android Development] rachanta:
The file setkernel.zip has stock settings the other two have my preferred settings. Within each zip there

are stock settings files as well for reference. I am really not recommending anything here but I can say that I am happy with my settings. There's a lot to play with in the flasher zips to keep you busy experimenting. The zips may or may not work with all ROMs.

Edit:

RACER_CAFE and CAFE_MF kernels cleaned up, redundant commits made for adreno removed. They were already there. We only needed the main one. Links at OP
[Nexus 5 Android Development] rachanta:
Update

racer-cafe updated - upstream from cm-13.0-caf official cyanogenmod

no update for racer-cafe-mf based on myfluxi hammerheadcaf

none for racer-6e either

From Josef Dittrych:

https://plus.google.com/110607086032286173368/posts/1HBqDMHwHfF
[Nexus 5 Android Development] PugRallye:
Trying to install RACER_6E_20151221 on vanilla (rooted) M and it just gets stuck at boot (those little animated circles).

Tried clearing caches before and after installing, but no joy.
[Nexus 5 Android Development] rachanta:
Just did a fresh install pure nexus 5 + banks gapps + racer-6e - no problem. Which ROM have you tried?

Edit: [MENTION=4526898]PugRallye[/MENTION] There is no problem with RACER_6E_20151221 as my trials show

2nd Trial - restored my marshmallow mmb29k stock rom which had Su 2.62-3 and an older racer-6e (Dec 9) as secondary. Installed latest RACER_6E_20151221 - Stuck at boot - boot animation continues endlessly - just like your case

3rd Trial - Installed proper stock rom as primary. Installed RACER_6E_20151221. No problem

4th Trial - Again started with proper stock as primary (reflashed system and boot). Installed latest Su 2.64 booted fine. Installed RACER_6E_20151221 booted fine.

5th Trial - Again started with proper stock as primary (reflashed system and boot). Installed latest Su 2.62-3 + RACER_6E_20151221 - booted fine

6th Trial - Again started with proper stock as primary (reflashed system and boot). Installed latest Su 2.52 + RACER_6E_20151221 - Stuck at boot - boot animation continues endlessly - just like your case

7th Trial - Again started with proper stock as primary (reflashed system and boot). Installed latest Su 2.52 Booted fine. Installed RACER_6E_20151221 - Stuck at boot - boot animation continues endlessly - just like your case

8th Trial - Again started with proper stock as primary (reflashed system and boot). Installed boot.img from hammerhead-mra58k-boot.zip to prepare for Su 2.52. Booted fine. Installed Su 2.52 - booted fine. Installed RACER_6E_20151221 - booted fine

Conclusion - There is no problem with RACER_6E_20151221. So I cant do anything for you. I am getting back to my chroma as primary and aicp-caf as secondary.

Edit2: Chroma developer has exams and I dont know when the next update is coming, meanwhile Pure Nexus 5 looks promising.

9th Trial - Pure nexus 5 (with built in Su 2.52) + Su 2.64 + RACER_6E_20151221 - boot hang

10th Trial - Pure nexus 5 (with built in Su 2.52) + fastboot stock boot.img - boot hang

11th Trial - Pure nexus 5 (with built in Su 2.52) + fastboot stock boot.img (With this Su 2.52 is neutralised) + Su 2.64 - boots OK

12th Trial - Add RACER_6E_20151221 over last trial - boots fine. Success. Now I have Pure Nexus 5 + latest Su 2.64 + RACER_6E_20151221 - boots fine, runs really snappy and smooth

Finally after a long time I have something other than the 13 day old Chroma as my primary AOSP ROM.

End of all trials - Since I really need Viper4Android, and i cant get it to work with Pure Nexus 5 or even official hammerheadcaf from CM, I am back with chroma as primary and aicp-caf as secondary. another factor is I need to stay enforcing and also be current with chainfire's super su (for aosp). Temasek-caf was great but it is permissive. So many ROMs, but I am limited for choice when it comes to get all my stuff working on my terms.

I think this is so important in terms of insights into interplay of AOSP ROM, Super Su and RACER_6E that I have linked this post from OP for the benefit of all who care to read OP
[Nexus 5 Android Development] rachanta:
SELinux Enforcer

Temasek is the best equipped hammerheadcaf ROM as at the time of posting. I enjoyed it for a day, but when I found the SE Linux Status showing Permissive, I was first alarmed that racer-cafe kernel had turned permissive, I did not know why. Finally I discovered that Temasek refuses to become enforcing even with an enforcing kernel.

I am working on flasher script to turn any ROM to enforcing

No. Its too unstable, though I did succeed in making the ROM Enforcing, surviving reboots. Back with AICP-CAF.
[Nexus 5 Android Development] rachanta:
Merry Christmas!
[Nexus 5 Android Development] killer618:
Merry Christmas [MENTION=1863016]rachanta[/MENTION] !

For a CM 13.0 based custom rom which version of your kernel is best? I am a bit confused with all these CAF versions (I don't know what CAF means btw :P )
[Nexus 5 Android Development] rachanta:
RACER_6E_20151221

This works with AOSP and CM 13.0.

The RACER_CAFE and RACER_CAFE_MF versions will work only with CM-13.0-CAF ROM, or those based on it.

Cyanogenmod are doing a lot for the development of CAF, which is better in all respects, but not a stable as non CAF.

In my opinion, if you are going to use cyanogenmod, you might as well use the CAF version, because that is special. CM-13.0 is not being updated as frequently as CM-13.0-CAF
[Nexus 5 Android Development] killer618:
Now I am using the latest RR marshmallow ROM. I don't know if it's CAF based or not.

How can check it?
[Nexus 5 Android Development] rachanta:
RR is non CAF. There are very few CAF Roms and kernels. If its CAF, it would be mentioned in the xda thread title.