yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] jlmcr87:
Dear [MENTION=3292224]franciscofranco[/MENTION] with android 5.1 stock kernel i have noticed that the system ram start growing to 500..600 mb, etc. and then some apps start restarting.

Since I installed your kernel r72 all problems are solved, now the system ram is about 350 mb all time and it doesn´t grow by magic.

Do you have any explanation of what happen with the stock kernel? It seems the memory leak is still present and it´s caused by the stock kernel.

I opened this thread in the android bug tracker: https://code.google.com/p/android/issues/detail?id=159738
[Nexus 5 Original Android Development] granets:
I disagree with you. I think the stock kernel/rom combo in 5.1 is working very well! I even find it better, smoother and more battery friendly than franco's kernel, or code_blue's kernel (the other two I have tried). But the colours of the display annoy me, and with some tweeking of the default cpu scheduler, I get close to what I like in stock with franco's kernel. But I would say the memory leak is gone. Also, the case you pointed out could be, that franco's kernel has a different way of managing apps. Stock likes to keep more in RAM, while this kernel prefers to keep things clean. But I am no dev, just thinking out loud.
[Nexus 5 Original Android Development] jlmcr87:
Take a look on the bugtracker.
[Nexus 5 Original Android Development] Sir_Bruce_Lee:
New to Franco kernel, does the Franco kernel for the Nexus 5 have Thread Migration Boost disabled?
[Nexus 5 Original Android Development] franciscofranco:
I don't have any magic code. I have a lot of patches that deal with page migration and memory compaction, but I'm not so sure it can affect it that much. I can activate KSM next release if I see enough users complaining about memory usage.

Yes, but the only thing that makes use of that on the Nexus 5 is Ondemand, which I don't use.
[Nexus 5 Original Android Development] mhdsanto85:
Is it a good way to revert to stock kernel just flash recovery in fastboot?
[Nexus 5 Original Android Development] franciscofranco:
What? Just flash stock boot.img on fastboot...
[Nexus 5 Original Android Development] mhdsanto85:
Yeah exactly..! Boot, not recovery..... Haha my mistake.... Thanks

Enviado do meu Nexus 5
[Nexus 5 Original Android Development] L.F.B.:
With great proud Ive finnaly noved from KK to 5.1

We can always count with Franco with new buids :D

Just waiting now for rovo make some beta for 5.1:)
[Nexus 5 Original Android Development] riki075:
Hi all, I want to undervolt my Nexus 5 CPU and I want to know if this way is good. I have a PVS 1 CPU, franco Kernel and FKUpdater.

I want to test different mA for every MHz value;

so I set 750mA to 300MHz (800 stock) and set Minimum CPU frequency and Maximum both to 300MHz to be sure the CPU works at this frequency, and run Classic Test on StabilityTest app for about 10 minutes https://play.google.com/store/apps/d...into.stability

but here my doubt. I'm not sure that when I set a different mA to the frequency, the change is applied, because (for test) I set 300MHz to 600mA (the minimum of FKUpdater), I run the test and NO reboot.

Isn't this absurd?
[Nexus 5 Original Android Development] jlmcr87:
Dear [MENTION=3292224]franciscofranco[/MENTION], sorry but I think the problem is not related with your kernel. Because I can reproduce it as in stock kernel.

To recreate the problem, simply start a game like Farm Heroes Saga, then close it by swiping away. For each time I do this the system memory increases 100mb or more until there is no more space and then cell phone stops responding. Additional I noticed than when I start Farm Heroes Saga for example the free memory on ‘Show Cache Processes’ is negative as can be seen on the print I took, and there is no free memory, this problem can be recreated even in the first minute after boot simply by starting the game.
[Nexus 5 Original Android Development] Revolver95:
As always, impressive battery life with solid performance :)

-50mV
[Nexus 5 Original Android Development] Zyphur:
edit: nvm, fixed i think.
[Nexus 5 Original Android Development] sroy001:
Power button not working on 72.. Anyone else with same issue?
[Nexus 5 Original Android Development] DJBhardwaj:
Known memory leak issue with Lollipop. Internally fixed by Google and will be release along the next update. But we surely hope franco could come up with a workaround till then.
[Nexus 5 Original Android Development] PetritH:
isn't it already fixed on 5.1? to me it is.. im having 1gb free after 3 days w/o rebooting, didn't happen on 5.0.x
[Nexus 5 Original Android Development] DJBhardwaj:
For me it didn't happen on 5.0 too. But there is a service somewhere that activates the wakelocks and leaks. Me and you both didn't trigger that somehow. And on 5.1 I managed to reproduce it. Its great that its working fine for you. Which rom and kernel combination are you using?
[Nexus 5 Original Android Development] SoftWord:
For memory leak I'v fixed (I think), changing to Exterminate in Synapse the minfree.

After 1 day with 5.1, I have lot of lags with 250mb about of free memory, but changing minfree, I'v 28mb free but no lags!!! Seams impossible but now my N5 will fly.

(stock rom + code_blue kernel)
[Nexus 5 Original Android Development] tanjiajun_34:
Nope this is a new memory leak on 5.1.

https://code.google.com/p/android/issues/detail?id=159738

"This has been fixed internally. We do not currently have a timeline for public release."
[Nexus 5 Original Android Development] kevtrysmoddin:
Android 5.1.1 confirmed lol that's probably when we're gonna see the fix and that's only if we get any official support from Google
[Nexus 5 Original Android Development] yanleites:
Hi.

My n5 is always 4 cores on. What do I have to change in FKU so cores I don't need will go offline.

Thanks.
[Nexus 5 Original Android Development] amir7777:
Use franko kernel app and go to profile all things and change to power saving. Or change the load_threshold to 100
[Nexus 5 Original Android Development] yanleites:
Thanks!
[Nexus 5 Original Android Development] rene_r:
Is init.d scripts still supported? If so which path ? /sytem/etc/init.d and which permissions do the directory need and which permissions do the files need? Sorry for the dumb question. THX in advance
[Nexus 5 Original Android Development] olivercervera:
I have a quick question for Franco.

I'm sorry if this has been asked already.

Why do you stick with 3.4.0 and you don't sync with 3.4.100 and above? (I think currently is 106)
[Nexus 5 Original Android Development] gamerZ1:
http://xdaforums.com/showpost.php?p=59461270&postcount=17150

High CPU usage!
[Nexus 5 Original Android Development] fatspirit:
Not kernel's fault.
[Nexus 5 Original Android Development] Zyphur:
I'm gaining battery once my phone goes into deepsleep/or turned off while in Battery Saver...

I turned phone off at 15%, started up at 21%. Phone went into deepsleep at 3%, came back to it at 7%. Wth lmao?

Anyways, Cata 5.1 (March12) + Franco R72 full stats until ~ 3% = 1d8h total, 5h 30m SOT, 30min awake, rest is deep sleep.

Thank you [MENTION=3292224]franciscofranco[/MENTION] and [MENTION=3913401]atl4ntis[/MENTION] :)
[Nexus 5 Original Android Development] Paragon_X:
random reboots

Hi Franco, I saw over in the Google+ community another user mentioned he was having random reboots. I also am having a similar issue, I'm on cata 5.1 (mar 12th) your latest kernel r72 and I've done a clean install. Other roms this was much more frequent but cata is working well but I will get it from here n there no matter the task big or small. I installed catlog and for the life of me I can't identify what the culprit is, I'm not tech savy like that so if you or anyone else can take a look that would be much appreciated. I'm not even sure I saved the proper logs but anytime it did reboot I opened the log and saved the text. Here are a few I've saved over the past few days for comparison sake if it helps. Cheers in advance.

edit: turns out my txts are a tad bit oversized to upload, literally 5kb a piece, I was only able to upload 1. And to be clear I'm not sure the issue is kernel or rom related so I'm trying bother threads.
[Nexus 5 Original Android Development] Balino:
Maybe you could try calibrating your battery
[Nexus 5 Original Android Development] occtec:
Is anyone else experiencing system ui crash immediately upon boot on latest r72 running euphoria 5.1 latest beta?
[Nexus 5 Original Android Development] Tzfardaya:
Using a gapps that's been updated for 5.1?
[Nexus 5 Original Android Development] occtec:
Yeah, I am..
[Nexus 5 Original Android Development] marf28101995:
Kernel need to be patched with te kernel related patches :)
[Nexus 5 Original Android Development] Tzfardaya:
Ah, I was working under the fallacious assumption that Franco had already rebased the kernel for 5.1.. My mistake.
[Nexus 5 Original Android Development] AtField:
he did, post 37905. http://xdaforums.com/showpost.php?p=59360442&postcount=37905

probably something related to the rom, as franco said he only supports stock 5.1 atm.
[Nexus 5 Original Android Development] TJKV:
How old is your phone? This happens when the battery starts to age and lose it's capacity. Swapping it out for a new battery is probably the solution. At least that's what I did, and the new one was fairly inexpensive, worked out to (at current exchange rates) $14 to get it swapped out at the local LG service center. Took all of 10 minutes for them to do it.
[Nexus 5 Original Android Development] Elluel:
[MENTION=3292224]franciscofranco[/MENTION] on your Github, which branch/commit/defconfig do we build from for the 5.0 version?
[Nexus 5 Original Android Development] choosetobelieve:
Hi All, is there any chance that you can post a link for the stock kernel for the version 5.0.1? Thanks
[Nexus 5 Original Android Development] + = Bunty = +:
[MENTION=3292224]franciscofranco[/MENTION] it worked. I am using xtrasmooth 5.1 as my secondary ROM with your r72 kernel and no issues in MultiROM.

Thank you.
[Nexus 5 Original Android Development] fatspirit:
Use Flashify.
[Nexus 5 Original Android Development] asturel:
I experience 'freeze' in every 2-3 minutes in chrome for like 10secs with stock 5.1 + franco r72. Anyone else have this issue?
[Nexus 5 Original Android Development] gamerZ1:
Yes me.
[Nexus 5 Original Android Development] franciscofranco:
I currently do not support custom roms that need selinux changes, thus those SystemUI crashes and that sort of thing on those roms. My priority is always stock first. I'll eventually add necessary changes for those roms, but it's not currently my priority.

5.0 is lollipop

5.1 is lollipop-mr1

No, I do not. But kindly let me know how to reproduce that, those reports were pretty random.
[Nexus 5 Original Android Development] gamerZ1:
Try to load webpages with video content or webpages like theverge,endgadget.com ....
[Nexus 5 Original Android Development] franciscofranco:
Does it happen with stock Kernel? Because those "freezes" have always been present on Chrome. I just tested all my devices, they all struggle and freeze on theverge.com regardless of being stock or with FK.
[Nexus 5 Original Android Development] asturel:
It just happens while u scroll in chrome (contionusly), you just notice that it wont respond to the touch anymore then few secs later it start to work again. I would grab logcat but it overflowed with the touch_boost and debug thing

(btw. why is ro.debuggable=1? it generates much more log entry)
[Nexus 5 Original Android Development] Flrc:
me too, but it also happened in stock 5.0 with r71
[Nexus 5 Original Android Development] gamerZ1:
Yes the same thing.Its freezez like 2 seconds.
[Nexus 5 Original Android Development] franciscofranco:
I'm using stock ramdisk, if that's what it is from stock, then I left it like that.
[Nexus 5 Original Android Development] gamerZ1:
No.I will leave a logcat tomorrow ok?
[Nexus 5 Original Android Development] franciscofranco:
Quoting myself before this gets out of hand.
[Nexus 5 Original Android Development] franciscofranco:
I don't want a logcat. I just fired stock Kernel and it happens exactly the same way, it freezes when chrome is loading the built-in video player when it's loading the page.

Just tried with my One Plus One, stock Kernel, Lollipop, put it on Performance governor - same thing, freezing for like 1-2 seconds with Chrome. It doesn't happen with their AOSP stock browser.

Nexus 9 - same thing.

Nexus 6 - a bit less freezing, but still derps.

Nexus 4 - goodbye interaction, it's jankville.

Heck, it even freezes when using Genymotion running 5.0 for x86 on Chrome. Emulator as well running it with HAXM extension and x86 images, it freezes for like 5 seconds.

This is not an issue with FK, it's Chrome ****ing you.
[Nexus 5 Original Android Development] asturel:
Sorry, just checked it and its 0 now, but in r71 it was 1 (which enabled srs-ramdump too)

---------- Post added at 08:57 PM ---------- Previous post was at 08:51 PM ----------

I think i found it what cause it: dmesg

:/
[Nexus 5 Original Android Development] Xami:
[MENTION=3292224]franciscofranco[/MENTION] Hi mate, are you able to do the "all core onlie thing like on nexus 6 in 5.1" happen on nexus 5 by any chance ?

If yes. Will you do it ?

Thank you for your time.
[Nexus 5 Original Android Development] asturel:
I think i found it what cause it: dmesg

dmesg2

:/

when i open this: http://velvet.hu/gumicukor/2015/03/16/ebbol_a_szemszogbol_meg_tuti_nem_latta_nicki_minaj_mellet/ it start to freeze when the instagram picture is about to load :/
[Nexus 5 Original Android Development] franciscofranco:
You can do it yourself since r1. Set hotplug control -> load_threshold to 0...

That's just the system killing apps due to low memory.
[Nexus 5 Original Android Development] asturel:
Yeah, but i checked twice: it happens when the LMK kicks in (also it kills the chrome too)
[Nexus 5 Original Android Development] franciscofranco:
There's nothing I can do about it. LMK kicks in because system is low on memory, so it starts to kill apps to make room for bigger heaps.
[Nexus 5 Original Android Development] asturel:
Yeah, I realised it after I saw the dmesg, odd that it never happened on 5.0, sadly i didnt rly used 5.1 with stock kernel. Anyway i'll check dmesg when it happens on 'normal' browsing but pretty sure its the same LWK thing.
[Nexus 5 Original Android Development] franciscofranco:
Stock and FK have the same LMK code and the same minfree parameters. With r73 I'll enable KSM and that should ease off on memory pressure a little bit.
[Nexus 5 Original Android Development] asturel:
Also I noticed that some app's 'name' is trimmed (the first 1/2 character) in the dmesg log.. like

Killing 'ainfire.supersu' (chainfire)

Killing 'iaomi.hm.health' (xiaomi)

Killing 'oadcastreceiver' (broadcastreceiver)

..etc
[Nexus 5 Original Android Development] Tzfardaya:
Lovely all these people blaming the kernel for every little thing...
[Nexus 5 Original Android Development] franciscofranco:
Feel free to fix it: https://github.com/franciscofranco/hammerhead/commit/13396fb7291a2b116d65ee13f2fa5bd45c6bd638
[Nexus 5 Original Android Development] franciscofranco:
If anyone wants to test r73 to see if memory pressure is diminished with KSM active, fastboot the attached boot.img
[Nexus 5 Original Android Development] Flrc:
input_boost_freq is set to 2.2ghz, don't know if its intentional
[Nexus 5 Original Android Development] franciscofranco:
It's intentional.
[Nexus 5 Original Android Development] choosetobelieve:
The function of downloading stock kernel is only for the paid version. As I only need to use once, I thought I may not purchase this app for only using once.
[Nexus 5 Original Android Development] occtec:
I don't suppose this would include any changes to include compatibility with custom ROMs?
[Nexus 5 Original Android Development] franciscofranco:
It does, systemUi shouldn't crash anymore.
[Nexus 5 Original Android Development] Nbsss:
franco dude, how can i buy your app again, i owe you one for cancelling my RMA, you fixed my vibration motor...
[Nexus 5 Original Android Development] thegtfusion:
just go to the play store.

here is the link: https://play.google.com/store/apps/details?id=com.franco.kernel&hl=en

have fun:good:
[Nexus 5 Original Android Development] Nbsss:
i'll use my sisters gmail, as i've already purchased on my account :good:
[Nexus 5 Original Android Development] Nickamina:
https://github.com/franciscofranco/hammerhead/commits/android-msm-hammerhead-3.4-kk-r1
[Nexus 5 Original Android Development] Shardzmi:
Sooo I wondered why does franco feel a bit slower @ opening apps and stuff... So i tested it with logcatting to my PC.

Those were the results :

Franco

settings 659 653 654

textra 420 465 350 313 460

sliding 1s25 854 920 866 784

Stock

settings 694 571 571 568

textra 423 349 353 340 334

sliding 866 692 644

Is it because franco also tries to conserve battery or is there something wrong? I also noticed a delay in opening recent apps ( you know, when you click on the button :D )
[Nexus 5 Original Android Development] The Gingerbread Man:
Perhaps because r5 has switched to interactive which is less aggressive at keeping at fast CPU speeds. Interactive lowers speeds much faster and will save battery life.
[Nexus 5 Original Android Development] Audioboxer:
For anyone interested the best undervolt I can do is -75mv. -100mv causes reboots.
[Nexus 5 Original Android Development] Shardzmi:
I do understand this - but what I did screen on - swipe left, swipe right, enter settings. What fast speeds does it have to keep? :/
[Nexus 5 Original Android Development] javacody:
For me, it's only -50mv. You can't possibly believe that everyone's cpu will handle the same exact undervolt?
[Nexus 5 Original Android Development] KingBeike:
Same here
[Nexus 5 Original Android Development] ChazzMatt:
Where's that keyboard setting?

---------- Post added at 09:27 AM ---------- Previous post was at 09:24 AM ----------

Project Pringles is basically the beta FKU app for the Nexus 5. Regular FKU app does not support Nexus 5.

---------- Post added at 09:31 AM ---------- Previous post was at 09:27 AM ----------

___________________

EASY WAY TO FLASH KERNEL IMG IN ANDROID

Great app to flash Franco kernel img until the Pringles (FKU beta app) supports it.

Flashify (for root users)

https://play.google.com/store/apps/details?id=com.cgollner.flashify

also lets you back up kernel images to SD card or Dropbox.
[Nexus 5 Original Android Development] thegtfusion:
settings > language and input > google keyboard > advanced blablabla. there it is :)
[Nexus 5 Original Android Development] ChazzMatt:
Thanks, found it. It's a stock keyboard setting, while I was using Swype keyboard. I thought maybe it was universal Android setting somewhere.
[Nexus 5 Original Android Development] dandwhelan:
I have moved over from my good old Galaxy Nexus to the Nexus 5. As always pledge elegance to Franco. I must admit i'm not very familiar about mp-decision and it seems to keep adjusting my min and max set freq (I know read how mp decision works and it just takes over and does its own thing). A couple of points on your work in progress.

Why set the vibrate to default 100? 64 was good enough.

I have set min 300000 max 2265600 and locked frequency yet after half a day it seems to have unlocked itself and gone back to default 1000000 to 2265600.

Battery life is better than stock so far for me. I was having endless problems with Media Server / Android OS running all the time.
[Nexus 5 Original Android Development] caribouxda:
UV does not save you as much battery as you might think. Just an advise to those that keep repeating uv uv.
[Nexus 5 Original Android Development] DangerMUK:
Is everyone else's vibrate sticking ?
[Nexus 5 Original Android Development] JNewms:
Oops, meant to quote you, but thank you. But anyhow, the vibration settings on test 5 are coded into the source instead of the ramdisk, so unless you manually change them, they are sticking.
[Nexus 5 Original Android Development] 75markus:
feels good running franco again :)
[Nexus 5 Original Android Development] timvdlinde:
I installed franco but saw that the the cpu won't stick. But does it just take the stock kernel cpu speed?
[Nexus 5 Original Android Development] Batfink33:
Well, I've tried the various kernels for the N5 and I'm back at Francos, the smoothest and most stable. He doesn't even have the device yet! I don't even know why I try other kernels!

---------- Post added at 05:33 PM ---------- Previous post was at 05:30 PM ----------

I don't think Franco has installed his governor yet as he doesn't have the phone and would need it, to test it.
[Nexus 5 Original Android Development] omvir:
Welcome back, man. Okay Franco, something weird. My girlfriend and I are both on r14, but her mobile signal randomly goes out and she has to turn on and off airplane mode to get it back (or reboot). But I don't have that problem. Only difference I can say there is that my carrier doesn't support 2g, and hers does...
[Nexus 5 Original Android Development] franciscofranco:
There are no changes in the Kernel driver that makes the bridge between the modem hardware and the userspace firmware/baseband, its 100% stock, sorry.
[Nexus 5 Original Android Development] omvir:
Okay thanks, it's weird it only started happening on r14 she said. I'll try changing her rom or Sim card.
[Nexus 5 Original Android Development] ChriKn:
Hey Franco ! Nice to see you back. We had a big sunny day just after you went home, bad luck probably...

I did send you a PM about the exact same problem ZephiK had with some (bad) logs. Just to let you know he isn't alone (also getting some stutter sometimes as vomer said...)

Really excitted for r15 !
[Nexus 5 Original Android Development] Bobtehblob:
Nice to see you back Franco :) Not sure if you've read through your other threads yet but those of us on the n7 (2013) are suffering from random reboots. Hope you can check it out when you get a chance :D
[Nexus 5 Original Android Development] zephiK:
Hm interesting, thats why I didn't see anyone else having the same problem. For me I thought it was just me alone so I spent the first 1-2 days figuring it out on my own to see if it was a user error or not. I also UV by -75 but it occurred on stock voltages as well. Hopefully that change fixes it :)

Just a word of advice, ChriKn.. just post it in the thread next time. A lot of devs and users don't check their PMs because it just gets flooded. The best thing to do is just to post in the thread; at least, thats the case for Franco as he is very responsive to the users/community.
[Nexus 5 Original Android Development] ChriKn:
I did never UV, so that's not a problem.

As Franco was abroad, I thought a PM was a smarter idea than just getting flooded in the rest... Otherwise I would've posted it here.

But thanks for the kind words !
[Nexus 5 Original Android Development] vomer:
That actually sounds very logical and efficient for some smooth lag free performance.

Probably will reduce any issues on lower clock speeds too I think.

Sent from my Nexus 5

---------- Post added at 11:29 AM ---------- Previous post was at 11:27 AM ----------

Yup and it does help performance too.

Sent from my Nexus 5
[Nexus 5 Original Android Development] Krunk83:
What ROM are you guys on?
[Nexus 5 Original Android Development] zephiK:
Same one as you. I like PSX, but the only feature that is missing from PSX is the right side status bar to pull down to quick tiles.

Cataclysm is nice and all but it comes with a lot of bloatware. Definitely the most feature-packed ROM as of right now.
[Nexus 5 Original Android Development] franciscofranco:
I will. My N7 didn't reboot once during my Paris trip though.
[Nexus 5 Original Android Development] Krunk83:
Cataclysm has bloat? It is one of the cleanest roms IMO. It barely has anything.

Anyways, if she is on Cataclysm then have her check the Smart Radio settings. Some of the settings there might be messing with he signal.

BTW Are you also [MENTION=4021619]omvir[/MENTION]?