yashsingh1/xdaforums huggingface dataset:
[Nexus 6  Original Android Development] Kusanagi Fire:
Maybe I'm doing this wrong, but I started as stock, unlocked bootloader, rooted. Tried wiping data and then flashing kernel and (when that didn't work), wiping data with kernel installed. My phone is still encrypted. Do I need to get the unencrypted bootloader, as well, in order to be unencrypted at the start?

It's good to see familiar devs like Imoseyon again after moving to the G2 after the GNex. Good to be back on Nexus.
[Nexus 6  Original Android Development] :
From the Beginning

[MENTION=2896305]Kusanagi Fire[/MENTION] It's been hit or miss with TWRP Factory Reset option.

Best to just

fastboot format userdata

if you want to decrypt.

I'm always a sucker for a new toy to play with.

Beta 0, hitting the ground running from the start :D
[Nexus 6  Original Android Development] simms22:
a 5 here
[Nexus 6  Original Android Development] PhoenixPath:
Pvs13. Good thing, right?
[Nexus 6  Original Android Development] simms22:
[MENTION=3357040]Imoseyon[/MENTION]

maybe you know whats going on.. its the same with your kernel as the stock kernel, whenever i disable mpdecision, and change the governor/scheduler to ondemand/deadline, i will eventually get either a reboot or a sod(sleep of death).
[Nexus 6  Original Android Development] Smallsmx3:
When are we getting a build of that? I know one was posted a couple of days ago. I was waiting for the next build and thread
[Nexus 6  Original Android Development] taxi333:
Thank you for your amazing work, is there any app in particular that you recommend/use to control frequencies and voltages?
[Nexus 6  Original Android Development] simms22:
we were planning on opening the thread monday, but [MENTION=3124065]rascarlo[/MENTION] decided its not ready yet. i suspect very soon though. btw, build 2 http://goo.gl/4kmNcR

pm me next time :p
[Nexus 6  Original Android Development] Smallsmx3:
Ignore this... I should read through a six page thread before I post
[Nexus 6  Original Android Development] :
Hey do you mind explaining what the Patched MPDecision does? Do you recommend it? All I've done is flash the kernel, I haven't messed with any settings.
[Nexus 6  Original Android Development] zephiK:
http://xdaforums.com/showpost.php?p=57157547&postcount=376 explains it very well so there's no need to explain it again, next time please search.

Do I recommend it? If you want to set up custom frequencies then you'd have to use this zip. For me, I do it to underclock and to stop mpdecision from changing my minimum frequency to 1.5 ghz causing my phone to heat up or use more battery than needed to perform a task.

If you're using the phone as it is, then keep doing so. If you want to change your minimum and maximum frequency without mpdecision changing them on the fly then use patched.
[Nexus 6  Original Android Development] Imoseyon:
Yeah hw crypto experiment was bit a bust (although I still want to try a few more things). The kernel support is there, but CAF/Google opted to configure stock kernel to use the sw algorithms instead. In my testing, I forced the kernel to use the hw crypto device instead and it was horribly slow.

If you look at /sys/kernel/debug/qcrypto/stats-1, you will see that the hw crypto device *never* gets used! What a waste - I might just disable it all together, but maybe it gets used by VPN.

One other thing that we could try is using a faster cipher than AES, perhaps Blowfish. But that would mean decrypting and re-encrypting storage and I'm not going there quite yet. ;) Also ciphers wouldn't make that much of a difference.

Interactive can be tuned folks! Use something like Kernel Tweaker or Trickster to experiment with the parameters. "hispeed_freq" should be an interesting one for you guys.

I've not tuned the parameters for leanKernel *yet* (left them all stock default). I tend not to optimize too much for performance in fear of losing battery life. But all these parameters are tunable by users.

Interactive has a bit of advantage because it's created for our mobile devices and still actively being developed by CAF, Google, etc. Ondemand is heavily used by Linux servers, desktops, etc. and its development (by mainline Linux folks) has stalled completely. My personal preference is interactive but I left ondemand in there because there are folks out there who still like it over interactive.
[Nexus 6  Original Android Development] drivel2787:
Any recommendations of tweaking for optimal battery life other than just flashing the kernel itself
[Nexus 6  Original Android Development] Tommy-Geenexus:
On our Xperia Z the hw crypto was disabled, and the crypto aes were backported from google 3.14 branch.

This really improved I/O throughput.
[Nexus 6  Original Android Development] zephiK:
Flash patched mpdecision

Underclock the CPU and GPU (personally mines is 300000 min, 1497600 max, interactiveX, hispeed_freq 1036800, screen off maxfreq 96000)

GPU: 389 MHz

My settings are still a WIP, just recently changed hispeed_freq and screen off maxfreq. If theres any lag, bump up the freqs one level at a time until it doesn't lag. For me, it seems fine.
[Nexus 6  Original Android Development] drivel2787:
What app you using to manage the kernel
[Nexus 6  Original Android Development] Skripka:
I'm wondering too...besides just searching for every kernel config app out there...would be nice to have a shortlist of known config apps that work fine.
[Nexus 6  Original Android Development] Imoseyon:
Do you know which exact branch? I want to give this a shot.
[Nexus 6  Original Android Development] cheami:
Your animations stutter a lot at first action when its at 300MHz. So i dont recommend anyone to use these settings. ~1200MHz+ is that point for me when animations are always fluid.
[Nexus 6  Original Android Development] cdub50:
one core stuck at 1.7 ghz

Not sure if its an error in trickstermod or the kernel, but after flashing V8 and no min freq mpdecision. In trickster when looking at the active cpu speeds I noticed one cpu core is stuck at 1.7 ghz it will ramp up, but it will not ramp down to any freq lower than 1.7 ghz. Flashing back to V7 fixes the issue, as both cores will ramp down to to 223 mhz. as it keeps two cores 0 and 1 active at all times and will start cores 3 and 4 when load increases. Just curious if anyone else has seen this. I am going to try and flash V8 again to try and repro as I only flashed it once. Really like all of the features of the kernel.

For those asking about programs for monitoring kernel I can recommend Trickster MOD. you can set TCP, I/O scheduler, min/max freq, voltage, gpu freq, advanced control for gov so you can set screen_off_maxfreq and hispeed_freq it also has ability to set the color calibration and led control as well. I have no affiliation with Trickster Mod, but I have been happy with their tool and have been using it for over 2 years now.
[Nexus 6  Original Android Development] zephiK:
I use trickster.

Hmm I don't have any problems for me, my animations are pretty fluid and doesn't stutter.

I guess it's subjective and settings don't work for everybody. But that is just outright rude to say highly suggest not to use those settings.

Just adjust accordingly :) it's more or less a starting point. One configuration set up doesn't rule them all for me this works and is a balance between performance and battery.
[Nexus 6  Original Android Development] Tommy-Geenexus:
I don't remember for sure, but i had a quick look and it seems like it was ported from here.

Btw. here is the original commit:

https://github.com/adrian-bl-yuga/k...mmit/452949d1f0e282ce8784442b3deebe8f93d8597f
[Nexus 6  Original Android Development] Imoseyon:
Ah yeah I was afraid of that. The ARM crypto enhancements are already in stock kernel (3.10) but not enabled. That's the first thing I tried (enabling AES ARM) but didn't make a difference. I'm going to give it another shot today though - try to tweak it a bit. Thanks.
[Nexus 6  Original Android Development] Imoseyon:
Hmm did you disable cpu-boost in lkconfig?
[Nexus 6  Original Android Development] Johnny424:
I noticed the same things on beta 8 with ocuc stock mp version. except in my situation it causes two of my cores to get stuck at 1.4ghz. it will ramp higher but not lower then 1.4 on both cores. even after setting idle for more then 30 seconds. everything enabled in lkconfig except gamma. interactivex gov

edit. when switching to on demand it allows the first core to drop to 223mhz but second core still stuck at 1.4ghz

edit 2. flashed back to beta 7 and strangely it is the same on the two cores getting stuck

edit 3. not convinced its a kernel issue. uninstalled elementalx app and switched to trickster and both cores locked on 1.7ghZ..uninstalled trickster and reinstalled elemental x app and now both cores are ramping down to 223mhz.. could have always been like that, today was the first time I checked out frequencies live. also elementalx app got an update today don't know of that could have been issue
[Nexus 6  Original Android Development] drivel2787:
Do you have the donate version for the screen off CPU feature?
[Nexus 6  Original Android Development] Tommy-Geenexus:
you're the senior dev, you'll find a way. I'm just a beginner.
[Nexus 6  Original Android Development] WhiTeRhiNo:
No on general page in app its right under where you choose you governor. There is a grey button says governor control click it and bout half way down is max screen off freq.
[Nexus 6  Original Android Development] ryude:
Trickster seems like the source of 90% of the problems I had with this kernel. It just doesn't work right most of the time.
[Nexus 6  Original Android Development] epicnoob66:
Which app do you use?
[Nexus 6  Original Android Development] ryude:
The free version of Trickster. But when I started using kernel tweaker it stopped giving weird behaviors.
[Nexus 6  Original Android Development] Mistertac:
I agree to a certain extent, I'm actually using the app Flar made for his Elimental kernel and things are better using that.

Although I can't seem to turn off mpdecision without all cores going crazy. I've flashed the mpdecision zip as well.

I leave the kernel settings alone as far as Min/Max and don't touch anything else either. If I turn off MPD all cores go wonky, turn it back on and three turn off and one stays at Min, but eventually the second core comes back and stays on for a total of 2 cores always idling at Min.

Maybe it's supposed to be like this... Not sure. I'm getting great battery life either way so I'm not complaining by any means.
[Nexus 6  Original Android Development] Imoseyon:
Make sure you guys read the FAQ especially if you like making custom settings to the kernel. Those of you will *definitely* want to flash custom mpdecision, disable cpu-boost (via lkconfig), etc. If the FAQ isn't clear (which is a distinct possibility) let me know...
[Nexus 6  Original Android Development] Mistertac:
Nope.. My fault. The " don't disable MPDecision if you go this route" part I totally missed and for some reason thought I should.

Either way I enabled it anyways. Thank you sir.
[Nexus 6  Original Android Development] :
[MENTION=3357040]Imoseyon[/MENTION] When I check the screen off freq with lkconfig it says it is 2.26 ghz, but when I go to the options to change it, option 2 says it's the default and it is 1.2ghz. What should it be and what would be the recommended screen off freq? Thank you
[Nexus 6  Original Android Development] cdub50:
Sure did.

Attached is lkconfig output.
[Nexus 6  Original Android Development] Imoseyon:
hehe that's a bug. Thanks for the report - will fix.

If cpu-boost is disabled and you have flashed custom no-minfreq mpdecision then mpdecision should never mess with your minimum frequency (unless I missed something somewhere). Oh, every time you flash ROM, you must re-flash custom mpdecision which is part of ROM.
[Nexus 6  Original Android Development] :
So it should say 1.2 ghz?
[Nexus 6  Original Android Development] Imoseyon:
Yes but the default is 2.2ghz which isn't even presented as an option. :p
[Nexus 6  Original Android Development] :
I get it now! lol. What do you recommend though? Just keeping it at 2.2ghz or lowering it?
[Nexus 6  Original Android Development] Imoseyon:
I think for most people 2.2ghz is a good number. If you tend to install a lot of apps then I'd lower it. The more apps you install the more misbehaving apps you run into that could wreak havoc in the background.
[Nexus 6  Original Android Development] epicnoob66:
Anyone else getting msm_hsic_host wakelocks? I had 4.5 hours this morning. I was in an area with spotty coverage, however I was connected to a tmo cell booster.
[Nexus 6  Original Android Development] seh6183:
Glad to see my favorite kernel is available for my now favorite device. Been running all day with interactivex and love it. To the dev, when you get a chance in the future, can you please investigate this:

http://xdaforums.com/nexus-6/help/adspd-wake-lock-t2953905/page2
[Nexus 6  Original Android Development] cdub50:
I did flash no min mpdecision after flashing V8. Trickster reported core 1 as 1.7 and would not throttle down. I haven't had a chance to repro but will try later tonight.
[Nexus 6  Original Android Development] Imoseyon:
I haven't actually begun to look at wakelocks yet. It's on my TODO list. :) I may get to it after the 1.0 release, don't want to stay in beta forever. Plus I think it's pretty stable as is.

Yeah feel free to PM me or email me at imoseyon@gmail.com to troubleshoot.
[Nexus 6  Original Android Development] cdub50:
OK tested V8 again and can't repro core 1 hanging at 1.7 GHz so looks like it was just a fluke will monitor to see if it occurs again.
[Nexus 6  Original Android Development] lilman355:
How do I get LED working? Sorry I flashed the latest kernel and can't any setting for it.
[Nexus 6  Original Android Development] cheami:
download terminal emulator and execute the command 'lkconfig'

self explanatory from there.

edit: execute 'su' first for root.
[Nexus 6  Original Android Development] wrinklefree:
Color Calibration!

I had a chance to use my X-rite i1 Pro meter ($1000) and Calman software to calibrate the color temperature on my Nexus 6 today. I'm a big home theater display calibrator and spent a part of my life doing it professionally.

A quick overview - When equal parts of Red, Green and Blue are applied you obtain a neutral gray or what's called D6500k. This is the "reference" white point at which content is produced. If you're very much into photography or video creation you're well aware of this concept.

Disclaimer - The following results are taken with my Nexus 6. Production differences and factory calibrations means your results will most definitely vary.

Stock measurements

My Nexus came out of the box with warmer than reference temperatures. This can be perceived as a bit "yellow" to some people. You can see from the graph below that there's not enough Blue which is causing the warmer D6200 color temp.

I started dialing in the display using 50% brightness and 60% IRE gray pattern.

Reference Calibration

I obtained this using the following RGB settings:

Red - 248

Green - 246

Blue - 255

You can see that R/G/B line up perfectly and create a perfect shade of gray and D6500K

Bonus Calibration - D7400K

While the reference calibration looks great in controlled lighting we tend to use our phones in several bright conditions. As a result you may be drawn to a slightly cooler color temperature of D7400. Note - I believe Apple calibrates the iPhone 6 displays to this temperature.

I obtained this with the following settings:

Red - 237

Green - 235

Blue - 255

Results are shown below:

Recommendations

If you have an application that can set RGB profiles the above settings are a good starting point. If you're in controlled lighting and want to do critical movie or picture viewing obviously the D6500k setting is for you. However I generally recommend the D7500k setting for all other use cases.

Thanks and enjoy!
[Nexus 6  Original Android Development] Imoseyon:
Holy crap dude, well done. Let me link this post to the FAQ.
[Nexus 6  Original Android Development] knitler:
You are awesome.
[Nexus 6  Original Android Development] dadsterflip:
This is awesome. Used the second setting and man its great.
[Nexus 6  Original Android Development] slickie88:
Thanks for this. I should have my colorimeter out of storage in a couple of weeks. I'm very partial to D6500 and anything cooler makes me a little nauseous.
[Nexus 6  Original Android Development] Imoseyon:
beta9 is up:

1) Tons of crypto changes. Backported a ton of stuff from android 3.14 branch as well as linux 3.18. Use sw crypto drivers written in assembly (rather than c) enhanced/optimized for arm/NEON

2) Removed the crap out of horrible hw crypto

3) Incorporated [MENTION=2687578]wrinklefree[/MENTION] 's RGB settings in lkconfig

As for storage decryption/encryption performance, the changes I made should help. Definitely not as good as unencrypted but it's closer (i think).
[Nexus 6  Original Android Development] Blaze420916:
Flashed and will get back to you in a cycle or two
[Nexus 6  Original Android Development] clothednblack:
Beta 9 running great, settings stick and love the added features in lkconfig

Posted from a Nexus 6 running Slim Rom
[Nexus 6  Original Android Development] EniGmA1987:
That is awesome, but what do you mean about "horrible hw crypto"? I had thought everyone was saying our encryption was all software based and that was the main speed issue. Is that not the case?
[Nexus 6  Original Android Development] Imoseyon:
Ah you missed one of my earlier posts. I actually figured out a way to force android to use the hw qcrypto driver, but the results were horrible. It was about 1/4 the speed of the sw crypto driver. Apparently this is what the folks on xperia noticed as well.

leanKernel is now using sw crypto drivers written in assembly (rather than c) enhanced/optimized for arm/NEON.

I think the encryption/decryption performance is close enough so you don't have to decrypt anymore (IMO). Androbench scores are pretty decent now.
[Nexus 6  Original Android Development] frenchy714:
Curious to know what max screen off frequency people are using and what your experiences have been. I just set mine to 650.

Sent from my Nexus 6
[Nexus 6  Original Android Development] Skripka:
Lol. Too late for that, amigo ;)
[Nexus 6  Original Android Development] eep2378:
Great stuff bro! I always have my displays at home professionally calibrated to ISF standard. It's nice to have some solid numbers to refer to in order for us to obtain the best settings for our display. Again thanks!
[Nexus 6  Original Android Development] clothednblack:
Same here and no issues

Posted from a Nexus 6 running Slim Rom
[Nexus 6  Original Android Development] saddog5523:
So I'm a noob when it comes to flashing custom kernels since this is my first Nexus, and I've mostly owned Samsung devices. I have the most recent Rastapop ROM and v8 of this kernel with the mp-off. I have been the victim of freezes/reboots every once in a while though. First time was when I had sent a MMS and immediately switched over to another conversation and started typing. Another instance was when I had pulled up Words With Friends, closed the app, and was going to screenshot a conversation between a coworker and I. Both times, my phone froze up and then rebooted. I'm starting with my custom settings for the kernel though to figure out my problem. Attached are screenshots of my settings in Trickster. If someone could clear up what I might have wrong, or what I could possibly try, I would greatly appreciate it! I also have to say, this kernel paired with Rasta has been the best with battery life! Averaging around 5-6 hours of SOT. :D

edit: Since I flashed the mp-off, do I need to turn MP off in Trickster? I'm pretty sure I read that somewhere in this thread, but I want to confirm everything just to make sure.
[Nexus 6  Original Android Development] eep2378:
I had two random reboots on Rastapop and v8 yesterday while playing candy crush soda. I switched back to interactiveX and noop and problem went away. Could it be something with ondemand/deadline combo? I know [MENTION=1811927]simms22[/MENTION] is using it without issue(last I heard). When you say mp-off, you mean simply disabling in trickster or terminal? Or are you using the no-mpdecidion zip(if so, don't disable mpdecision).
[Nexus 6  Original Android Development] saddog5523:
I have flashed the no-mpdecision zip, but it's turned on in Trickster, just wasn't sure whether I needed to turn it off via Trickster or not. I will try your fix and see if that will help any. The last reboot happened within 20 minutes though, could I produce a logcat for that instance?
[Nexus 6  Original Android Development] eep2378:
Nah. If you get another reboot, grab a log after boot.
[Nexus 6  Original Android Development] N1ghtr08d:
Just a quick question.... I have beta 9 installed and I love the charging led. Is there any way to have the led respond when I get texts/emails/missed calls?
[Nexus 6  Original Android Development] magnum870:
I believe there are several people working on a way to make this happen, but Motorola and Google didn't provide a way by default for it to happen. There's some smart people working on it, but there's no guarantee it'll happen either. You can follow some of the progress here: http://xdaforums.com/nexus-6/devs-only/enabling-charging-notification-led-t2960135

But that's obviously dev-only so for us its purely to see any progress they might make.

On the other hand apparently with some of LightFlow's root features it seems to work for some people.
[Nexus 6  Original Android Development] rignfool:
The zip is a modified mpdecision...

The file keeps mpdecision from, to quote Faux, "making poor decisions"... Not disabling it
[Nexus 6  Original Android Development] N1ghtr08d:
Thanks for the quick reply. I've used the Lightflow method but I don't like the CONSTANT toast messages so I got rid of it.

I'm happy with it as is for now.

Thanks
[Nexus 6  Original Android Development] simms22:
im using beta 5, since it has all that i need(i dont need much), but no issues with ondemand/deadline with it.
[Nexus 6  Original Android Development] Shamu_God:
my personal color calibration

This is the color calibration i use on my nexus 6. I spent hours trying to find the right balance where the pink hue isnt seen as much or at all. I dont like the cool colors or the blue hue yellow hue any hue. I belive my calibration has it on perfect. But everyone is different. Please test out my RGB settings and let me know what you guys think :) RED : 235 GREEN : 245 BLUE : 245
[Nexus 6  Original Android Development] Imoseyon:
ondemand isn't perfect yet although it's a lot better than it was before. If you like ondemand, try this build? https://app.box.com/s/zp15qihw18469tzv0ogk

I'll see if I can stay on it all day today to see if the above build helps.
[Nexus 6  Original Android Development] simms22:
i had a reboot 1 minute after disabling mpdecision and setting ondemand/deadline. beta5 hasnt given me any reboots in the same situation.
[Nexus 6  Original Android Development] magnum870:
I assume the constant Toast notifications were from it being granted su access? If so you can go into SuperSU and disable toast notification per app.

Personally Ambient Display is enough for me, but if you do really love the LED light, the option is there for you. It could at least tie you over until they (hopefully) get it working in a more native fashion. :)
[Nexus 6  Original Android Development] Skripka:
...you can turn off toast notifications for apps within SuperSU
[Nexus 6  Original Android Development] N1ghtr08d:
Good to know. Thanks guys