yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] dechronic:
Not as straight forward.

I have a bunch of tools to make it easier.

Check my thread here:

http://xdaforums.com/google-nexus-5/development/nexus-5-f2fs-tools-t2801977

Basically there are three things you need for it work.

1. A custom recovery that supports F2FS formatting.

2. A kernel that supports F2FS. However, although it may support F2FS it will not automatically boot the partitions as F2FS. Changes need to be made to the ramdisk of the kernel first as to which partitions will boot F2FS. There are two configurations that people use generally.

a) /data partition only is formatted to F2FS (easier to do)

b) /system, /data & /cache partitions are formatted to F2FS, also known as F2FS-ALL. It requires point 3. for it to work.

3. For F2FS-ALL only, the ROM's installer's updater script modified to correctly mount and format the /system which is using F2FS.

There are a few modified kernels around. My thread has to tools to automate most stuff.

The hardest part is modifying a kernel's ramdisk (if it has one as some kernel installers using the ramdisk of the previously installed kernel) and testing the kernel to make sure it works. Sometimes the mount command in the kernel's installer script has to be modified with the same code as the one used for the ROM to make sure to mount the /system partition correctly for the kernel to kernel to apply it's settings to that partition.

I am currently using Beanstalk 4.4.4.001 (CM based) with ElementalX (caf version) kernel and formatted as F2FS-ALL. I am however trying to find as many kernels that I can modify to test and see if I can get them to boot correctly.
[Nexus 5 Original Android Development] fluther:
Hey [MENTION=3795148]neobuddy89[/MENTION], just to let you know: last night and today I was out walking, using runkeeper to track gps, listening to GPmusic streaming high quality over data, with intermittent fb messenger, email, and xda app use. Not an audio stutter or glitch the whole time, perfectly smooth ui, and only 17% used after more than an hour of this, including gps on the whole time. Well done!
[Nexus 5 Original Android Development] topgeardave:
Hey guys, thought I'd max out my phone today, put governor on performance and set gpu polling interval to 2ms. From interactive and 10ms. Only a difference of around 500 points. So this kernel is pretty powerful already without setting it on pure performance ?
[Nexus 5 Original Android Development] saramon:
I love how smooth this is, also turned mine up and got pretty close to that, which is the highest score I've ever had. I'd like to know how the hell the top scores for our phone are 39000, I don't see our phone going that high realistically...
[Nexus 5 Original Android Development] topgeardave:
Don't know why but caf is rubbish for benchmarks. AOSP always has higher scores like the highest on AOSP I've had is 39k with trinity kernel on 2.5ghz and Z2 patches on Stock. That kernel was just pure awesome on AOSP. I prefer CAF simply because it's so smooth and stable and I love having the bleeding edge. Don't think caf will ever beat aosp in terms of benchmarks.
[Nexus 5 Original Android Development] bosna110:
Now I am seriously interested in how you are getting scores higher than what the s5 and what the other top phones scoring. I really wanna know what your SOT is and the battery life.. Wish I knew the whole run down

---------- Post added at 08:00 AM ---------- Previous post was at 07:54 AM ----------

Also how do you set the kernel to boot instead of interacting with it once android boots? What am I doing wrong?
[Nexus 5 Original Android Development] neobuddy89:
A new test version is available: http://www.androidfilehost.com/?fid=23501681358559374

Chaos-Kernel_v13.0-[07-08]-[11-16]

* Linux 3.4.97 update

* GPU Drivers update from CAF

* NXTweaks integration in Ramdisk updated to correct sequence in which settings are applied and

close app automatically if settings are being applied on boot. [THIS NEEDS TO BE TESTED AGAINST BREAKING ENCRYPTION]

* Bluetooth tweaks and update [NEEDS TO BE TESTED FOR ANY REGRESSION COMPARED TO LAST NIGHTLY]
[Nexus 5 Original Android Development] fluther:
Works a dream on this end. Nxtweaks settings had to be reapplied from backup on first boot, since then applying themselves no problem.

One thing I've noticed is that my device doesn't go to deep sleep while listening to gp music. I thought the n5 was able to play music (through a coprocessor?) While in deep sleep?
[Nexus 5 Original Android Development] neobuddy89:
No, I don't think it will sleep during music play.

You can test on CM stock if you wish.

Thanks for confirming encryption still working.
[Nexus 5 Original Android Development] saramon:
Generally I get around 30k unless I bump up settings, like raising the temp before throttling, and changing things to performance. Obviously I don't keep them turned up, don't want a processor to burn out, or the phone to get ruined, usually I only turn up stuff for benchmarks
[Nexus 5 Original Android Development] topgeardave:
Battery is around 4-5 hours SOT with mixed wifi and H+ over 12 hours. Basically OC to 2.6ghz and set input event boost freq and sync freq to 1.18ghz on interactive. Turn on zram with 80 swappiness and lz4 compression. Boosted cpu's is 1. For some strange reason when oc'd to 2.6ghz frequency scaling isn't that aggressive compared to max freq at 2.3ghz so I'm getting better battery life than on 2.3ghz.
[Nexus 5 Original Android Development] montbazon:
Yes, that's could happened.

2.6ghz processes faster also goes into idle faster than 2.3ghz.

Conclusion?

Not always OC make battery consumed.
[Nexus 5 Original Android Development] timerrington:
Just wondering, any chance of adding the Wheatley governor?
[Nexus 5 Original Android Development] derPianist:
Can anyone suggest good settings for the NXTweaks App? I don't really care about performance. I want as much battery life as possible.
[Nexus 5 Original Android Development] omvir:
Change hotplug to CyanogenMod and decrease max freq to 1.7mhz. Turn limiter driver on, and change max screen off frequency to 960mhz, and max CPUs online on screen off to 1.
[Nexus 5 Original Android Development] paychex:
Don't kill it. Leave max freq alone. Stay with msm. 960 is probably gonna be too low on one core (probably wind up using more power). Try 1190. And try lowering 300mhz (where the phone sleeps) too 700. If your phone sleeps well you will get good battery life without crippling it.
[Nexus 5 Original Android Development] omvir:
That's my conservative profile for days I'm outside without a charger for a while. And for me, it works. He just wanted suggestions and I gave him one :p. You can give him yours and it's up to him to test which ones work for him.
[Nexus 5 Original Android Development] paychex:
And I did. Your's seems unnecessary. Even under the worst circumstances I never come home after 10 hours off the charger under 60%. Most days It doesn't get down to 80
[Nexus 5 Original Android Development] TheKnux:
Just throwing this out there, with the latest nightly, I'll get about 15+ hours and still be around 85-90% but then again that's with airplane mode on while I'm at work from 3 to 11 :P
[Nexus 5 Original Android Development] omvir:
You know... That everyone uses their phone differently, right? I'm constantly referring to my phone as a nursing student and use my phone heavily. I end my day with about 5-15% and with 6-7hrs (5:30 - 6 with default chaos) SOT. With WiFi, always over 7. Cmon, we both suggested our profiles that work for US, and that's where our job finished. Now let him experiment with them and see which one works for him.
[Nexus 5 Original Android Development] paychex:
And I stated that I found your settings extreme and unnecessary. Why are you getting butt hurt over it
[Nexus 5 Original Android Development] topgeardave:
For extreme power saving, I managed to get 6 and half h on screen time over 18 hours. Although you do sacrifice a lot.

1) Keep your brightness on lowest and keep it there at all times. Only raise it if it's very sunny to a level where you can just see it. Screen brightness is the biggest battery killer by far.

2) TOGGLE! Learn to toggle, this is what will add loads of screen on time. If you're not using any data, turn off wifi and mobile data. Don't leave both on all day. If you're in a crap area for network, put your phone on aeroplane mode. Also turn off location, NFC and Bluetooth if not in use.

3) kernel related changes make minimal difference to battery. However these are my battery settings I found which gave me best battery life on lowest brightness:

Max freq 1.19ghz screen on and 1.036ghz for screen off

Input event and sync freqs are 1.19ghz

Interactive governor

Wake boost is off

Touch boosted cpu's: 1

Min cpu's online:1

Max Gpu 320mhz

Gpu polling interval: 15

Gpu governor:simple ondemand

Also if you use caf sound it adds to battery drain so keep that in mind. But yeah seeing as you don't care about performance, give these settings a try :)
[Nexus 5 Original Android Development] omvir:
Did you even read my post, probably not. You found my settings extreme and unnecessary ...okay? You came to that conclusion without even trying them AND the most important point is that those are settings for MY USAGE. I hope this post is clear enough for you. And butt hurt? Pfft. I don't get upset that easily bud. Especially not over the internet lmfao.

Also, my previous posts showed no signs of aggression, yet you act like I attacked you. You obviously found my posts to hurt your butt. Smh. I'm stopping here. Enough off topic.
[Nexus 5 Original Android Development] derPianist:
Thanks to you guys [MENTION=4021619]omvir[/MENTION] [MENTION=5388274]paychex[/MENTION] and [MENTION=4204385]topgeardave[/MENTION] for your time and effort in posting settings that works best for you! I really appreciate it.

I'll try every of your suggestions out and see what works best for me.

I am listening to a lot of music throughout the day so knowing that the CAF sound optimizations drain battery additionally is a new & good information for me.
[Nexus 5 Original Android Development] paychex:
Case in point
[Nexus 5 Original Android Development] neobuddy89:
A new nightly build is available ONLY on AFH: http://www.androidfilehost.com/?fid=23501681358559866

Chaos-Kernel_v13.0-[07-09]-[04-58]

* Linux 3.4.97 update

* GPU Drivers update from CAF

* NXTweaks integration in Ramdisk updated to correct sequence in which settings are applied and

close app automatically if settings are being applied on boot.

* Bluetooth tweaks and update.

* Major update of ARM optimizations for memory management, suspend resume routines, cache flush and more.

On personal note, improvement in battery life. Your experience might not be same.

Will try some performance optimization via build flags for next build.
[Nexus 5 Original Android Development] Unb0rn:
Have you tried making any modifications to ramdisk for f2fs support? Still waiting for this magic!:)
[Nexus 5 Original Android Development] b1ue:
[MENTION=3795148]neobuddy89[/MENTION]

In regards to bash missing in system/xbin causing nxtweaks to not function... Is this a recent requirement? I checked some older aicp roms and apparently, bash has not been included, but nxtweaks used to work correctly.
[Nexus 5 Original Android Development] neobuddy89:
Thanks for reminding this issue.

Unfortunately, Yes.

Previously, it used to copy from ramdisk to system partition.. if bash was missing..

Now system partition is changed to Read-Only to fix encryption, so as there is no mechanism to restore missing bash.

I will try to create a flashable which will give you bash binary in system partition for AICP and post this flashbale with next build. :)

Meanwhile, you can grab one from cm nightly.
[Nexus 5 Original Android Development] neobuddy89:
Ok, I have attached fix for AOKP/AICP ROM support.

Flash it via recovery and NXTweaks will work with this kernel!

Happy Flashing! Will link this post in OP soon. :victory:
[Nexus 5 Original Android Development] b1ue:
Working beautifully.... Thank you so much!!
[Nexus 5 Original Android Development] occtec:
[MENTION=3795148]neobuddy89[/MENTION] first time CM11 & Chaos kernel user, absolutely love your work, kernel and the included kernel tweaker NXT. Thank you!!! Latest kernel update is giving me awesome performance love the options in kernel tweaker. I have just one recommendation, could you please include 'Yorici_Calibrated_Punch' color profile please, this is the only one I've used since he has released it, absolutely perfect calibration.

Cheers
[Nexus 5 Original Android Development] Dudebowski:
Hey team chaos, thanks for the hard work, much appreciated. Finally stumbLed on this project after using calculin's non caf kernel support zip for half a year to prop up Franco's kernel... looks like chaos is all that and more , awesome sauce... except...

I seem to be missing the nxt app after installing today's nightly, it's not even listed in the system settings » apps list. what did I miss?

July 3 CM nightly

Stock Dalvik

Chaos kernel listed in "about phone"

System encryption enabled

Does this fall into the missing bash situation? It seems as if that were limited to aokp, my terminal has access to some form of bash binary, and I don't have any nxt app to be unusable in the first place.
[Nexus 5 Original Android Development] zimlokks:
You're not alone, running latest CM11 nightly, latest Chaos Kernel, NXTweaks did not install.
[Nexus 5 Original Android Development] topgeardave:
I think it's because of encryption. Try that fix above and if that don't work, install the apk from here: http://xdaforums.com/showpost.php?p=53849779&postcount=2808

---------- Post added at 01:29 AM ---------- Previous post was at 01:28 AM ----------

give him the download link or upload the file on to your Dropbox and post it here. It'll save him time from searching for it haha.

Edit: Found it, it's here bottom of post 2 :)

http://xdaforums.com/google-nexus-5/general/nexus-5-color-related-faq-calibration-t2763857
[Nexus 5 Original Android Development] occtec:
RE: 'Yorici Calibrated Punch' Color Profile [emoji6]

[MENTION=3795148]neobuddy89[/MENTION] here is the color profile, just download from here https://copy.com/aeFzpvq6mjWRFGd9

Cheers
[Nexus 5 Original Android Development] topgeardave:
Just tried it, I think this is my new favourite profile after being a pireligiov7 fan for so long! Thanks for sharing it mate. If you've got FKU you can use that to set the color profile:)
[Nexus 5 Original Android Development] occtec:
Yeah it's definitely my favorite. Can you use FKU with chaos and NXT?? I thought the two kernel tweaker apps would conflict one another?
[Nexus 5 Original Android Development] topgeardave:
Don't touch anything on FKU except colour profiles. With the master limiter driver on nxtweaks FKU can't change freqs if it decides to. Make sure colour profiles and colour tweaks are set to disabled on nxtweaks before using colour tweaks in FKU
[Nexus 5 Original Android Development] occtec:
Actually just worked it out. I purchased Franco's Nexus Display Control app a while back, it now supports the nexus 5 so just downloaded that and imported the color profile, then set on boot ;)
[Nexus 5 Original Android Development] fluther:
Nxtweaks installing fine here on latest cm nightly, encrypted.
[Nexus 5 Original Android Development] topgeardave:
Ah wicked, a temp solution till neobuddy incorporates yorici into nxtweaks :)
[Nexus 5 Original Android Development] dia_naji:
Will this kernel work on rastakat latest ?
[Nexus 5 Original Android Development] omvir:
Rastakat is AOSP based, and this is a CAF kernel. So, nope. It will not work.
[Nexus 5 Original Android Development] zimlokks:
[MENTION=3795148]neobuddy89[/MENTION] I get this after I install the kernel and reboot, cm11 latest nightly, newest kernel.
[Nexus 5 Original Android Development] Dudebowski:
I'll second that, looks like it's installed like apps2sd style. The linked apk worked though, at least topically. Can't be sure it's the latest version or actually works
[Nexus 5 Original Android Development] trungquan_it:
Hi bro, after updating AICP to latest nightly, flash your kernel and your zip, system UI FC alot for me and I cannot use the my phone anymore. Had to reverted back to older version of AICP. I dont know if this is rom issue or kernel issue. Anyone has system UI FC like me?
[Nexus 5 Original Android Development] neobuddy89:
[MENTION=535343]all[/MENTION] Please read updated FAQ for NXTweaks in Post #4

New color profile will be added in next build.

Here is next nightly only on AFH: http://www.androidfilehost.com/?fid=23501681358560286

Chaos-Kernel_v13.0-[07-10]-[11-32]

* Build optimization for perfomance.

* Intellidemand cleanup to prevent governor dying after recent ARM update. Still needs to be tested.

** Ondemand is not stable. Do not use.

* Misc updates from Google and CAF.
[Nexus 5 Original Android Development] trungquan_it:
Hi bro, I follow the FAQ but I still get system UI FC alot, happen on AICP latest nightly.
[Nexus 5 Original Android Development] neobuddy89:
Let me check again.

I tried on yesterday's AICP nightly and it worked well.
[Nexus 5 Original Android Development] willybarca:
do you have krait c-states implemented in this kernel
[Nexus 5 Original Android Development] neobuddy89:
What do you mean by "krait c-states"?
[Nexus 5 Original Android Development] willybarca:
like c0 for wifi, c1 for retention c2 and c3 for power collapse , its very good for deep sleep
[Nexus 5 Original Android Development] neobuddy89:
All are available and enabled by default.
[Nexus 5 Original Android Development] vgkeeper:
I have a strange bluetooth behavior with cm11 (m8) and your kernel: auto connection with my bt car kit works only 1 time on 3; when it's connected tasker don't recognise If it's connected or not. And when i shut down my car bt, the phone don't disconnect the bt :when i go in bt options i must click on the car kit bt to disconnect it manually.

I tried severals version of your kernel from v12 to the latest nightly.

No problems on stock cm kernel...
[Nexus 5 Original Android Development] dechronic:
I modified the ramdisk for f2fs-all on build 07-08 and it worked. I will try it on the latest build maybe about 7 hours from now. I will test it and post it if it works. I posted that version I changed in my thread called Nexus 5 F2FS Tools. I think it is in post #7
[Nexus 5 Original Android Development] b1ue:
No systemui FC here on aicp 7/8 nightly (upload date of 7/9) + yesterday's chaos nightly.
[Nexus 5 Original Android Development] trungquan_it:
Hm... It's so strange. I update to latest AICP nightly from 07/01 build, and then flash latest Chaos, flash the AICP fix zip, then boot up and lots of system UI FC :(
[Nexus 5 Original Android Development] neobuddy89:
Please try below nightly version and report back.

New nightly version is available ONLY on AFH: http://www.androidfilehost.com/?fid=23501681358560829

Chaos-Kernel_v13.0-[07-11]-[11-35]

* Linux 3.4.98 update

* Added Yorici Calibrated Punch color profile

* Remove Ondemand governor (it's not at all stable, will check for root cause later)

* Update Intellidemand governor - Add new load calc technique from Faux.

* Fix bluetooth driver to prevent sleep properly if transfer is ongoing. Perhaps, this should fix drowsy BT issue, we talked earlier. [Needs further testing.]
[Nexus 5 Original Android Development] vgkeeper:
Thank you for your reactivity, downloading now. I'll report back tomorrow after testing.
[Nexus 5 Original Android Development] ed2975:
SOD during long call

Hey big fan and longtime user, found a reproducible SOD using v13 nightly [07-10]-[11-32] on CM 07/10 nightly where during long call where screen is auto off from proximity against my face wont wake again after 15 minute call or more. managed to reproduce it 3 times now under same conditions, attached last_kmesg and chaos_info. just wanna help out :)
[Nexus 5 Original Android Development] topgeardave:
Could you try and reproduce it with interactive governor? It's a long shot but could work. Seems like the error is based on mdss issues.
[Nexus 5 Original Android Development] neobuddy89:
Will try to debug this sooner

Something much similar to CM ROM SOD issue:

http://xdaforums.com/google-nexus-5...11-nexus-5-t2584004/post53971007#post53971007

http://xdaforums.com/google-nexus-5...11-nexus-5-t2584004/post53976699#post53976699

[MENTION=4152171]myfluxi[/MENTION] there is a way to reproduce this bug as mentioned by [MENTION=5398700]ed2975[/MENTION] above.
[Nexus 5 Original Android Development] vgkeeper:
Bt autoconnect seems to work much better now. Disconnection too. Need more time to Be sure. If i have problems again i will report. Thank you Very much for your work, Very good kernel with a very good app !
[Nexus 5 Original Android Development] rjmohit:
On the latest nightly combo, GPS loses connection very frequently! Anyone else experience this?
[Nexus 5 Original Android Development] neobuddy89:
And you are sure it is kernel issue?

http://xdaforums.com/google-nexus-5...11-nexus-5-t2584004/post53983418#post53983418
[Nexus 5 Original Android Development] rjmohit:
Seems so, but not completely sure! Didn't experience that on CM stock, will try tonight's build and report back.

EDIT: Seems to be a CM issue! :(
[Nexus 5 Original Android Development] fluther:
Nothing like that on my end, though that's with a CM from a few nights ago. If it is a problem, it's a new one.
[Nexus 5 Original Android Development] Meakii:
Hi all would really love to know which ROMs are currently compatible with this kernel besides CM and Sokp. Still by far the best kernel IMHO. Cheers
[Nexus 5 Original Android Development] parkson:
AOKP, AICP
[Nexus 5 Original Android Development] topgeardave:
And don't forget about PAC ROM! Haha
[Nexus 5 Original Android Development] neobuddy89:
I hope no one has BT issues since there is no such reporting lately.

New nightly will be available in couple of hours.
[Nexus 5 Original Android Development] fluther:
BT all fine on my end [MENTION=3795148]neobuddy89[/MENTION].

I do have one small issue though. I have a Griffin iMic 2 external USB DAC that I like to use for hooking my phone and computer up to my hifi. (I use a USB OTG connector to plug it into the phone.) When I plug it in, DSP manager used to switch automatically to UDB/Dock (unamplified, line-out) output. Now it stays in Speaker output. Any chance you could get Chaos working again with USB DACs? In afraid I can't remember when it stopped working.

---------- Post added at 04:45 PM ---------- Previous post was at 04:44 PM ----------

(I should say: it still works, in that it outputs audio. But it's not clean, unamplified, line-level audio.)
[Nexus 5 Original Android Development] lolobarjo:
BT work fine here but I have encountered another issue. When i put my N5 on wireless charger the CPU is blocked to the max frequency set until wireless charging stop. This issue is not present on stock CM kernel/stock rom or with cable charger.

Sorry i can't provide you log

Sorry for my bad english

Edit: problem apparently solved by changing the back of my Nexus. It's strange ^^
[Nexus 5 Original Android Development] neobuddy89:
Audio is completely reworked for next build. You can check git source.

Doing some code sanity to make sure nothing is missed. :)
[Nexus 5 Original Android Development] neobuddy89:
Ok, here we go....

New nightly available.

Chaos-Kernel_v13.0-[07-16]-[03-09]

* Improved memory management for internal allocation. (Reserved RAM)

* Major update for audio codec driver.

* Enabled Ultra High Quality Audio (UHQA) mode for headsets capable of 192 kHz audio.

* Backport USB audio drivers from 3.10 kernel.

* Updates from CAF for qualcomm voice driver.

Reviews welcome.
[Nexus 5 Original Android Development] fluther:
USB line out working great, thanks!

Also, arch power removed from NXTweaks?