yashsingh1/xdaforums huggingface dataset:
[Nexus 6  Original Android Development] franciscofranco:
Happy new ****ing year everyone! First day of the year, first day of Kernel work, couldn't be happier!

Couple things though.

1 - You can download FKUpdater Free and keep up with the Kernel releases risk-free and pain-free: https://play.google.com/store/apps/details?id=com.franco.kernel.free - I've updated the app before new years with Material Design and with support for the N6. It's Free so why not use it?

2 - There's in fact some Wi-Fi bug caused by two patches that I pushed on r2, I think they need a newer firmware so I've reverted them on my local build

3 - The issue where min_freq goes crazy is caused by load_based_syncs that I enabled on cpu-boost. It seems the Kernel isn't ready for this feature. It's ok though, normal thread migration solution works fine. I've made some changes to cpu-boost to prevent spurious boosts when the task_load is below migration_something_something_threshold (15% by default). This way we'll save some battery down the road since threads are migrating ALL the time.

4 - CPU-boost blank when opening on FKU. It's a race condition on my app since I can't read the directory with normal Java I have to use a Root command and get the stdout and the list everything. I need to rework that part of my code because as of now I'm using a dirty hack with threads + wait + notify + syncronization. It's very fugly.

I think that's it for now!
[Nexus 6  Original Android Development] suku_patel_22:
[MENTION=3292224]franciscofranco[/MENTION] Any clue what could be causing sensor_ind wakelock and any fix for it?
[Nexus 6  Original Android Development] blakmazk:
I use SlimLP's inbuilt AppOps.
[Nexus 6  Original Android Development] franciscofranco:
Maybe one of your sensors is keeping your device awake? I'll see if that wakelock is kept on a Kernel level of it's on a upper layer (where I have no control over).

EDIT: it's not held from the Kernel, it's probably SensorHal or some app. Dunno, you're on your own.
[Nexus 6  Original Android Development] CRXed:
Happy New Year to you too!

New Franco.kernel user here, want to try it out on my brand new N6, just bought your FKUpdater app to support.

I have a bug report for the File Manager part: when auto-flashing your downloaded kernel through the file manager, I ended up with no kernel at all (see attachement, I first downloaded the r2 kernel with your app and then went into file manager and selected the kernel and picked auto-flash)

Normal Auto-flash from homepage of your app works fine!! :good:
[Nexus 6  Original Android Development] franciscofranco:
Welcome.

Hmmm... both features share the same piece of code. Maybe the first boot.img you downloaded was corrupted somehow. Did you download it in the last 30m-1h? I was updating the Kernel on my server and made a series of reboots, maybe that boot.img was incomplete or something. Just a guess.
[Nexus 6  Original Android Development] stas333:
I remember reading that it has something to do with hangouts while adaptive or ambient display is turned on.
[Nexus 6  Original Android Development] CRXed:
Deleted the zip I had, downloaded a new one through your app, exactly the same result and same error message. It's 6.75 MB, is that correct?

Where does it download the kernel zip when you use the auto-flash from homepage? Also /sdcard? Because that download works fine.

Going to fastboot flash kernel again now.....:p
[Nexus 6  Original Android Development] wrongway213:
I've auto=flashed r1 like 4 times and r2 like six times and flashed r2 in TWRP, all through FKU and never had a problem... individual issues on the same phone are so weird sometimes
[Nexus 6  Original Android Development] stas333:
Just did a test. downloaded the zip and flashed it both with via auto and manually in TWRP. no issues in either case
[Nexus 6  Original Android Development] CRXed:
I am not talking about manually through a custom recovery, I am still on stock recovery.

I am talking about manually through the build-in file manager in TKUpdater.
[Nexus 6  Original Android Development] franciscofranco:
Google put all cores online for 5.1, so I followed the band!
[Nexus 6  Original Android Development] jtwlbz:
Chroma
[Nexus 6  Original Android Development] mgear356:
Oh yes you are right.. Thanks for sharing!
[Nexus 6  Original Android Development] Skripka:
Hey Franco, could you back port some of these features to 5.0.x? Who knows when 6.1 will really penetrate AOSP ROMs.
[Nexus 6  Original Android Development] :
[MENTION=3292224]franciscofranco[/MENTION] I compiled FK but I noticed it was missing a few things, e.g. color control. Any chance you can help me out?
[Nexus 6  Original Android Development] Tzfardaya:
What do you mean followed the band.. I seem to recall you suggesting we try that back on the n5 a whole ago... Sounds more like Google followed you... :P
[Nexus 6  Original Android Development] franciscofranco:
5.0 is dead. If you want quad-core mode you can set hotplug_control -> load_threshold to 0, it's been there since ever.

You need to enable the config option for that. Do a grep -r "KCAL" * and you'll find the option, I don't recall it from the top of my head.

Yeah, we've been using quad-core mode for a long time, since the N4. These newer chips have better power management Kernel drivers, doesn't surprise me to see this happening to be honest.
[Nexus 6  Original Android Development] rui.ddevil:
I would say the thermal engine because with faux123 kernel and it's custom thermal mechanism this does not happen.

However what puzzles me is that with stock kernel does not throttle the CPU neither at 40% to 2.2GHz nor at 20% to 1.7GHz.

franciscofranco, why did you "Improved behavior of my Hotplug driver by increasing the time between work runs to decrease load average" when all cores are now always on? And does the "Balanced" profile still make sense?
[Nexus 6  Original Android Development] :
When do I do that command? And you use shamu_defconfig correct?
[Nexus 6  Original Android Development] franciscofranco:
faux's "thermal driver" is mostly a copy pasta from codeaurora.

I'm using stock kernel thermal driver and I don't touch thermal-engine. This 2.2GHz happened to me on stock, so it's definitely there. There were no Kernel commits to change this behavior, which leads me to believe they messed with some userspace routine/daemon.

I increased the timer when the device is on quad-core always mode because it doesn't make much sense to poll every 100ms if the user has chosen to run with all the cores online. So if this criteria is met, I'm only polling once every 2s.

Balanced profile = my defaults.

If you're compiling things you need to know where to type these commands.

Do this on the root directory: cat .config | grep KCAL

You'll see that the color control option is toggled off. Just open the file and make it on.
[Nexus 6  Original Android Development] :
Sorry, still reading guides and learning how to compile kernels. Thanks for your help though! :)
[Nexus 6  Original Android Development] franciscofranco:
No need to be sorry, nobody comes to this world knowing everything ;) my "you need to know these things" is more of a warning/suggestion than anything else.
[Nexus 6  Original Android Development] :
I misinterpreted what you meant. Thanks though, it's fun learning more about compiling. Hey isn't it like 4 or 5 am for you?
[Nexus 6  Original Android Development] franciscofranco:
Yes :eek:
[Nexus 6  Original Android Development] :
Lay off that portuguese coffee
[Nexus 6  Original Android Development] Tzfardaya:
But if he does that, then blood would start to pollute his circulatory system...
[Nexus 6  Original Android Development] stas333:
Franco, could you explain what the volume moods do and what? Also, what are default Google seeing for them, just asking because I remember you saying that default vibrating is like 127 but the app was showing 100 out of the box. Thanks
[Nexus 6  Original Android Development] Tzfardaya:
The moods are there to help you play music at the right levels for dates.. Help you set the moods so to speak. ;)

(set a negative value to increase the output volume, a positive to lower, don't adjust too much or you may/will distort the audio)
[Nexus 6  Original Android Development] :
That's true. But you don't understand... He gave me some coffee once and it was like
[Nexus 6  Original Android Development] :
This made my night :highfive:
[Nexus 6  Original Android Development] Tzfardaya:
It would probably be worse for me then... I don't drink coffee...
[Nexus 6  Original Android Development] :
Probably! It's intense. It's a tiny cup, about the size of a shot glass. Crazy stuff .... :p
[Nexus 6  Original Android Development] franciscofranco:
Oh, hello Alan :)

Nope, positive to increase, negative to decrease.

Idiot.
[Nexus 6  Original Android Development] Tzfardaya:
I must be thinking the old boosts then... I'm sure one was reversed...
[Nexus 6  Original Android Development] franciscofranco:
One was, no idea why, but it's not present on this device.
[Nexus 6  Original Android Development] :
Hey man :)

I can't get cat .config | grep KCAL to work for the life of me
[Nexus 6  Original Android Development] Tzfardaya:
You're running it from the root folder of the source tree, correct? Does the .config file exist? (check for it first)
[Nexus 6  Original Android Development] :
Yeah, I searched for the .config file after the command didn't work and I can't find it anywhere.
[Nexus 6  Original Android Development] Tzfardaya:
That would be why it didn't work... I'm not familiar enough with building kernels for android to offer advice on how to generate it though... I know on my gentoo boxes I use "make menuconfig" to generate it.. Not sure the. Android cross platform build commands...
[Nexus 6  Original Android Development] :
Thank you! That helped me remember, ahhhh I feel so stupid. I started from scratch and as soon as I typed in "make shamu_defconfig", it generated the file.
[Nexus 6  Original Android Development] kifac:
Been awhile since i posted. Just wanted to thank you for this amazing Kernel. Running stock 5.1, Unlocked and rooted. Even went as far as purchasing your app. Love it, love the way it looks.

Thank you again sir!
[Nexus 6  Original Android Development] :
Thank you [MENTION=3292224]franciscofranco[/MENTION] and [MENTION=4860519]Tzfardaya[/MENTION] for your help! I got it to work :D
[Nexus 6  Original Android Development] Tzfardaya:
What special pixie dust did you bake in yours?
[Nexus 6  Original Android Development] :
For right now the only difference is the tool chain. I compiled it with UBERTC, I'm still learning but I want to add flar2's wake gestures eventually.
[Nexus 6  Original Android Development] GregNexus:
[MENTION=3292224]franciscofranco[/MENTION], i think i have an improvement for the Franco Kernel Updater:

I noticed this while using a file manager (cabinet - very nice material designed filemanager).

For example if you have created a file in the file manager (in cabinet), it will show up in the FKU,

BUT, if you delete this in the filemanager (in cabinet) it will still show up in the FKU Filemanager. So the FKU will show up files, that you dont even have on you device anymore.
[Nexus 6  Original Android Development] italia0101:
those wake gestures would be pretty awesome. could you PM me if you manage to do that?
[Nexus 6  Original Android Development] jcpq:
R21 works on euphoria rom 5.1?
[Nexus 6  Original Android Development] jr313:
Yea it does. Just flashed and all is great with no crashes.
[Nexus 6  Original Android Development] franciscofranco:
Sure I can refresh the list during onResume.
[Nexus 6  Original Android Development] paychex:
Flashed the new r21 and now my dog is bootlooping can you make it work with custom dog roms?
[Nexus 6  Original Android Development] franciscofranco:
I'll try :')
[Nexus 6  Original Android Development] GregNexus:
What?:silly:

---------- Post added at 02:13 PM ---------- Previous post was at 01:53 PM ----------

And Franco, what have you done to my cat? Since i flashed r21, my cat was in her deepest sleep,i had to flash back to r20, and she woke up. i was taking advantage of this moment to quickly flash back to r21 and my cat is now speedy as hell. Her speed and stamina is now much better.

r21 ist awesome :) phone sleeps like a baby
[Nexus 6  Original Android Development] rauschkugl:
Because the ones that don't search will never learn it like this and additionally, why should I search the post for someone if He could do it by himself? That's definitiv not true all the time but it was this time.

Gesendet von meinem Nexus 6 mit Tapatalk
[Nexus 6  Original Android Development] Simer03:
Well I'm gonna continue to help people. Not gonna complain over such a small thing. Is that Ok with you guys? Jeez. You both are just proving my point with every response.
[Nexus 6  Original Android Development] xXghostXx313:
I'm guessing there is no difference in CPU performance in the balanced and performance profiles in fku at the moment right? Android 5.1 fk 21
[Nexus 6  Original Android Development] old_fart:
I would say the "snappiness" is noticeable, the horse is hot to trot . . .
[Nexus 6  Original Android Development] nEUTRon666:
I must say, i changed from ElementalX to Franco Kernel and it's a hell of a lot more professional, also buyed your FKUpdater App, this is awesome. Only one small thing, if this is allowed to say, an option to set kernel to permissive (for a upcoming xposed release) in your app would be very very cool. I know i can set the kernel to permissive manually, but i don't want to fiddle around or use an extra app for that. That's one thing the ElementalX App has..
[Nexus 6  Original Android Development] EnterLordVader:
Huge improvement with r21.
[Nexus 6  Original Android Development] Skripka:
Yea...that probably isn't going to happen. As has been pointed out before.

Adding security holes (Permissive SELinux) to make a massive security hole (xposed) work is simply not good practice.
[Nexus 6  Original Android Development] franciscofranco:
Currently not, but I have a couple ideas for performance profile. Soon :)

Thanks for the nice words. I'm not going to add such option to FKUpdater, it goes against the focus of the app. But there are tons of free apps that do that. For example: https://play.google.com/store/apps/details?id=com.mrbimc.selinux
[Nexus 6  Original Android Development] gambit07:
Haha thanks for the backup! I've been on XDA for a LONG time, before Android was an operating system and winmo was the tweakers platform of choice :D Even I make a mistake every once in a blue moon. Like I said, I was a little hungover and not really thinking straight, my apologies to all for stirring this up, and thanks to the people who responded positively :highfive:
[Nexus 6  Original Android Development] oscillik:
I've been waiting for the volume mods to come through. I am so pleased with this, thanks Franco!
[Nexus 6  Original Android Development] nEUTRon666:
Xposed is a massive security hole? Uhm.. Lol. Nice to hear.. Sorry, I know what you mean but this is a bit over estimated. Don't try to make a elephant out of a fly. Selinux didn't even exist on android some months ago, now everyone tries to be a security expert. Selinux is still active, but not enforcing, just permissive. You even have to set permissive on Linux servers sometimes, because the needed software isn't running on enforcing.. I just don't want to run an extra app each boot. Will implement it trough init.d myself then...*sigh*
[Nexus 6  Original Android Development] rauschkugl:
Sure, you can help when you want. I just wanted to say with it that it's normal that some people get pissed off at a certain point and just tell to use search. It's still ok on the n6 forums but coming from the s4 I can tell you that you also Wouldn't get pissed off after a week when you follow a thread.

Gesendet von meinem Nexus 6 mit Tapatalk
[Nexus 6  Original Android Development] paychex:
Just get the app and set it on boot
[Nexus 6  Original Android Development] madAdam6LOVE:
I for one appreciate your graciousness. After spending more than 5 minutes searching in vain to find the R21 beta link, I noticed your post. Thank you for making my day just a little bit nicer. :thumbup:
[Nexus 6  Original Android Development] enzoevo:
Pretty sure init.d isn't supported with this kernel. So, looks like an app is your only option, one way or another.
[Nexus 6  Original Android Development] elreydenj:
I tried searching before posing this question.... I remember seeing one post about phone shutting down when it hits 5% battery life. is this happening to everyone? Is it a stock issue or something that happens on Franco? Is it something that needs to be fixed by calibrating battery or something along those lines? Not complaining whatsoever, just like to have knowledge as to why.
[Nexus 6  Original Android Development] Tzfardaya:
Not everyone, there was some code causing a glitch in the kernel, but Franco thinks he got that nailed. . Try a couple calibration charge cycles, and see if it helps. (Google battery calibration, there's a couple ways to do it... But realize that deleting the battery stats file on the phone isn't calibrating it)
[Nexus 6  Original Android Development] franciscofranco:
Me? Nobody knows why that happens. There was some work on the battery/charger driver from Motorola on 5.1 Kernel - at least it doesn't randomly shuts down between 10-20% anymore like it did on 5.0.
[Nexus 6  Original Android Development] Tzfardaya:
Thought you had found a bit of code that was contributing to it when it was first brought up...
[Nexus 6  Original Android Development] elreydenj:
Do you experience the shutdown at 5% or you have not let it dip down that low?
[Nexus 6  Original Android Development] yoyoz808:
[MENTION=3292224]franciscofranco[/MENTION]

I gotta say it has been great to see how much you progressed. I remember seeing kernel releases up to almost r400 for a nexus device(I started on gnex) and that's not including countless flashing if test kernels :p. All I'm saying is now it only took you 21 releases to make our nexus devices perform so well. I enjoyed your skill progress and can't wait to see what you're going to do on future devices :D.
[Nexus 6  Original Android Development] old_fart:
I'm sorry. . . I see fun comedy in your praises. . . . The progression would be : "Yeah, next year he'll get it done in four !" . . .

Yes, franciscofranco, great job !
[Nexus 6  Original Android Development] Simer03:
Something other than a nexus? Yeah never gonna happen for me hahaha! Made that mistake once, never again! Especially Samsung! :p

---------- Post added at 09:42 PM ---------- Previous post was at 09:41 PM ----------

Here to help! No problem bro! Seems a lot of people appreciated that link, including the man himself! That's why I do it!
[Nexus 6  Original Android Development] mn147:
for some reason I can't get 2649600 cpu to stick in either fku or trikster, resets to 2265600. any ideas?

nexus 6_root
[Nexus 6  Original Android Development] Simer03:
What does it switch to?
[Nexus 6  Original Android Development] Tzfardaya:
What's your current battery level? I'm assuming your talking about Max cpu freq not sticking at 2.6

Edit: you're probably in low battery power saving... Kicks in automatically, drops the max cpu to 2.2, not sure what battery percentage it starts at exactly... Recharge your phone, should go back to 2.6
[Nexus 6  Original Android Development] mn147:
nice one! thanks for quick reply. thought that might be it but was unsure because I had battery saving mode of in fku. right now at 42 and charging.

nexus 6_root

---------- Post added at 04:56 ---------- Previous post was at 04:55 ----------

switches to 2.2

nexus 6_root
[Nexus 6  Original Android Development] franciscofranco:
Some odd new feature from 5.1, it underclocks to 2.2ghz on 40% or lower battery. Has nothing to do with FK or FKUpdater.
[Nexus 6  Original Android Development] mn147:
not a big deal. cheers!

nexus 6_root
[Nexus 6  Original Android Development] lainemac:
Sorry for the OT but does anyone know what the difference is between the builds that have been coming out? First we had the LMY47D build, now LMY47E, and now Tmo is pushing an ota that's LMY47M. Anyone know what gives?
[Nexus 6  Original Android Development] mhseraph:
Answer here

http://xdaforums.com/showthread.php?t=3059114

Nexus 6 Android 5.1 different versions discussion
[Nexus 6  Original Android Development] crossen0:
I used this kernel and the paid Franco updater app on my Sprint Gnex. Now I'm on Verizon and just got the N6. Damn it's good to be back.
[Nexus 6  Original Android Development] elreydenj:
Anyone suggest a way to calibrate the battery being that phone is shutting down at 5% ??? I have researched different methods online and half of the responses to the methods are positive but the other half are very negative.... is anyone else experiencing the issue? i want to figure out if it is a 5.1 kernel issue or a "my phone issue". Thanks for your time in advance.
[Nexus 6  Original Android Development] goinflyn:
Headphone volume, mic volume and dt2w don't stick when phone reboots. They default back to original settings. Thats with them checked off on reboot. Just FYI.
[Nexus 6  Original Android Development] Tzfardaya:
Run the phone until it dies, charge it (while off) to 100%, turn phone on.. Disconnect from charger, count to 10, reconnect to charger, wait until phone stops charging, (repeat disconnect, reconnect a couple times to ensure its actually fully charged) run the phone until it dies again. Should be recalibrated.. Most lithium battery devices with integrated charging circuits (like our phones) recalibrate every full charge, but if they only always get partial charges, they can get "confused"
[Nexus 6  Original Android Development] elreydenj:
Thank you!
[Nexus 6  Original Android Development] cameljockey1:
May I ask the features of this kernel? Or where I can find it please.
[Nexus 6  Original Android Development] rauschkugl:
Wasn't that bad with the Google edition roms ;) and I have to say that I really miss the replacable battery but also won't go back again.

Gesendet von meinem Nexus 6 mit Tapatalk
[Nexus 6  Original Android Development] damosthated162:
stock kernel

Does anyone have the stock kernel for lmy47e ??? Encrypted
[Nexus 6  Original Android Development] Janzen254:
Google gave us these factory images.

https://developers.google.com/android/nexus/images
[Nexus 6  Original Android Development] grayskul:
Sorry bro but I think Franco hates xposed!
[Nexus 6  Original Android Development] nEUTRon666:
Which is ok for me, but xposed has so many great modules and it's a damn good way to have stuff for which you normally need to flash a custom rom, i like it very much.
[Nexus 6  Original Android Development] schizophrenia:
about Headphone gain and Mic gain, may I get some guideline again?

Loudest headphone and Mic = +20? Or?

I tried changing the value during a call and I can't really tell the differences of the changes.

Thanks
[Nexus 6  Original Android Development] GregNexus:
Damn, with r21 and mobile data my SOT is pretty close to my SOT i had before when i was only using WIfi in combination with the airplane mode:) Pretty awesome:)

24h of Battery with 4:30 SOT :)

and the phone sleeps unbelievable with 5.1 :)

And is it normal, that the phone is loosing more juice (in deep sleep) when it is connected with wifi? Because with the mobile data im loosing just 4 % in ~ 8 hours. With wifi it´s way more i think
[Nexus 6  Original Android Development] crossen0:
I'm getting SOD on this kernel. I ran both stock 5.1 and now Rastapop. I'll turn the screen off and it won't wake after it sits for a period of time.
[Nexus 6  Original Android Development] shawnten:
which color combination to you guys prefer to get the brightest screen possible
[Nexus 6  Original Android Development] Hemorrdroid:
Quick question, read back 10 or so pages, I'm on 5.1 unlocked, rooted, unencrypted. Can I flash r21 and stay unencrypted? Thanks!
[Nexus 6  Original Android Development] nexusmaniac:
Yep you can :)