yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] RusherDude:
For me and for a lot of people "I drive" on this stuff, and the N5's run like they were just bought... are you sure that those problems aren't belonging to people flashing custom kernels over custom kernels and such? I never had to do clean flashes on stock roms upgrading via OTA (N5 and N7 2012 from day1 to today) and they just fly (even the damn N7 flies too now lol.. I'd lost a bet after 5.0).

On Custom roms tho you got reason, a clean wipe is necessary everytime or the system will just run slow as a turtle and give a thousand issues.
[Nexus 5 Original Android Development] rhamej:
Hey flar, was this option removed in the latest aroma installer? I don't see it in any if the set up pages. Either that or I'm blind.
[Nexus 5 Original Android Development] infatality:
Yes.. It was removed.. But he also added an optional zip if you need permissive..
[Nexus 5 Original Android Development] rhamej:
Thanks. I missed that in the OP :)
[Nexus 5 Original Android Development] Koopa777:
Color me nuts, but LMY48B is the fastest I have seen the N5 since its launch. The system just absolutely flies on stock kernel, and it never really did before (in my opinion). Animations are absolutely perfect, transitions are smooth, etc. I just don't see how that's possible though if there was only 1 kernel commit. Could the memory leak have been impacting fluidity that much?
[Nexus 5 Original Android Development] KemikalElite:
I'm losing more than 10% battery per hour while the phone is idle. This is on Cataclysm and 2.14 with default kernel settings and no apps installed.

It's even worse after I rebooted.

Is this a bug or did something ruin my battery?
[Nexus 5 Original Android Development] rawdealer:
It's not a bug, I'm on Cataclysm (latest beta) and EX 2.14 with CFQ and Ondemand with great battery life for Lollipop. :)
[Nexus 5 Original Android Development] beekay201:
Flashing stock system.img won't overwrite your recovery. Flashing stock system.img/twrp, and then rebooting to Android, twrp WILL get overwritten IF you don't delete /system/install-recovery.sh and /system/recovery-from-boot.p. (filenames might be diff, files might be at diff locations, but there IS a automated method in stock system.img to check for custom recoveries, and if they're found, flash stock recovery over it.)
[Nexus 5 Original Android Development] walpurgisnacht30:
Or maybe it's time to replace your battery.
[Nexus 5 Original Android Development] xxqxpxx:
LOL :3
[Nexus 5 Original Android Development] treehugger38294:
That battery doesn't look very good
[Nexus 5 Original Android Development] GragonV:
I'm facing an issue with the CPU speed

With 2.12/13/14, when the phone is too hot (CPU speed above 70*C), the game I'm playing (named Marvel contest of champion) slows down (lag like hell) and then the phone got freeze (the sound is still there) so that I must press Power+Volume to reboot the phone :( (cannot even go back to home or force close the app)

I notice that when the issue occurs, the max speed of the CPU is automatically set lower than what I've set (from 2.2ghz to 1.9,1.5 or even 1.1) and I cannot change it back to any level above the level it got stuck in at that time (Using ex kernel manager/kernel adiutor)

Sounds like there's something with the thermal throttling? However I've tried to change the option of Thermal but it's no helped

(I've tried almost all the settings: Gov ElementalX-ondemand-performance, GPU ondemand, I/O sio-row-deadline-fiops..)

In the past the game runs very well with 2.08 (with even max CPU 1.5Ghz), so I went back to 2.08 and it's really better than in 2.12/13/14 :-? However the max CPU problem above still occurs, but al least it doesn't freeze the whole phone, just slow it down so much that I must force close the game or any heavy running app
[Nexus 5 Original Android Development] jaibar:
Don't jump so fast into conclusions, there is no bug and you may have a good battery and not need to replace anything.

First, you need at least a couple of days to get better statistics. The battery percentage is not very accurate to begin with.

Then, I think that if you did a clean install when your battery wasn't fully charged (say, you were at 70%) you'll see after flash that it shows 100% (which you know isn't true), but after some time it will start dropping fast towards the more realistic percentage.

And, you can always try to put in airplane mode, see what happens after a couple of hours (or overnight)

Try disabling settings that may impact battery performance (e.g. if you don't need Google fit, then disable it, at least temporarily)

Disable any screen related sensors (live display, adaptive brightness and the such)

Also perhaps disable smart lock, etc.

etc.

So, there are lots of simple things that can help you nail the culprit, many of them you'll probably leave disabled as you don't really need.

There's no need to start tweaking kernel, changing batteries, installing task killers, memory optimizers etc. etc. You'll end up getting more problems than benefit.

Changing battery, in my opinion, is quite an extreme action- leave it as last resort if you're 100% sure that battery has really deteriorated...
[Nexus 5 Original Android Development] zerosum0:
I'm using ElementalX and I've never had banding. The screen grab is with 5.1 . 1 and the latest EX

SENT BY ENTANGLEMENT
[Nexus 5 Original Android Development] russian392:
Totally agree with this guy.

After every rom flash run your battery dry till phone dies then do a full charge. Then power on. Just to get things sorted out in the stats.

Replacing battery is only good if you damaged the battery with water or something, Li-ion batteries should survive 500-600 discharge cycles before they loose 5% of their capacity.

As Russians say, measure 7 times, cut only once.
[Nexus 5 Original Android Development] zerosum0:
You need to flash the new bootloader first

SENT BY ENTANGLEMENT
[Nexus 5 Original Android Development] zerosum0:
Thought you may want to see this

SENT BY ENTANGLEMENT
[Nexus 5 Original Android Development] BlazeForth:
I have the same problem with 2.14 and its really annoying. Is there anyway to completely disable thermal throttling? Or raise the temperature.?!!
[Nexus 5 Original Android Development] sherlock5545:
I wouldn't risk disabling thermal throttling to play the source intensive games.
[Nexus 5 Original Android Development] akash3656:
[MENTION=4684315]flar2[/MENTION] possibly, that's the only commit in 5.1.1 as I'm running the stock kernel at the moment and as you can see its dated March 10. The same date the commit landed on AOSP.

Edit: I'm no developer, but I'm interested and been wondering what did google do in 5.1.1 to make it this snappy.
[Nexus 5 Original Android Development] flar2:
I thought the stock kernel was always very snappy? It uses a version of ondemand that ramps up to max freq on initial touch, and a three second touchboost on two cores.

They can also do a lot in userspace to speed up animations and manage memory better. Actually, they can make a bigger difference there than with the kernel.

I installed 5.1.1 last night, and got 0.9% idle drain overnight with stock kernel. I can't remember what it was before, but I think that is about normal for stock since lollipop was released. The phone is sitting alone by itself at home and I will check idle drain again when I get home from work tonight.

I will also add that commit tonight and see what happens.
[Nexus 5 Original Android Development] flar2:
I haven't changed anything to do with thermals for a really long time. Probably since the first month or two of development back in 2013.
[Nexus 5 Original Android Development] kojak1989:
can i flash the new version on custom rom stock kernel ?
[Nexus 5 Original Android Development] GragonV:
Just tried 2.11, In the beginning the game is very smooth but...got freeze after 3-4 mins this time (the phone is not too hot from the back).

going back to 2.08 again and the freeze issue has gone (lag is still there with max CPU dropped automatically @_@)

(I'm in latest Cata rom)
[Nexus 5 Original Android Development] BlazeForth:
Or can you add an option to raise temp limit for thermal throttling? Because when phone gets some hot, the freq gets stuck in 1.9 or 1.5 or 1.1...
[Nexus 5 Original Android Development] flar2:
About the data corruption issue:

I doubt it's the kernel, it's probably the installer. I'm guessing it's since I tried to move elementalx.conf. Next release will move elementalx.conf back to /etc and therefore not touch /data or /sdcard.

However, this is just a guess, as I have not experience this corruption issue myself, and nobody has provided any logs. The details I have are confusing, I'm not even sure which ROMs it happens with I don't know much about which ROMs are based on CM and which aren't. There are too many to follow. The only ones I've used are stock and cataclysm.

I'm not currently at home, so I am fixing this through an excruciatingly slow ssh connection to my home computer.
[Nexus 5 Original Android Development] Syk69:
Thanks for looking into it. I also think its something with installer. Sorry i don't have any logs to help. But the best way i have found to replicate the problem is to clean wipe flash any aosp or cm ROM, flash gapps. Boot into system then reboot to recovery to flash elemental all stock settings, boot into system fine but then reboot back to recovery and data wont mount. Using twrp recovery here.

Or if you have elemental already installed, just dirty flashing same ROM, gapps, elemental kernel and booting into system then reboot to recovery.
[Nexus 5 Original Android Development] garu12:
Same exact thing happened to me. I was on purity with the stock kernel. Clean flash. Flashed 19.1 after i was already setup. Had to flash stock image as well after my partitions borked.

To be honest though Purity was also giving me the same reception issues as a cm rom. (Bars go empty and come back a few seconds later). I wonder it's pulling heavily from the cm repo so it might have the same issues. Just a guess because I know the rom is aosp.
[Nexus 5 Original Android Development] Syk69:
Yes seems if you already have a ROM setup with stock kernel and you flash elemental boot into system fine but then reboot to recovery, data wont mount. Something with installer since version 0.18. But hopefully flar will fix it as soon as he can as he just mentioned. :)
[Nexus 5 Original Android Development] garu12:
Yea was writing that at the same time as flar. Will wait or flash together if I can't wait :sly:
[Nexus 5 Original Android Development] flar2:
I've changed the installer to put elementalx.conf back in /etc. Unfortunately it's not very easy to edit in that location, but it seems to cause worse problems elsewhere. Hopefully that fixes this corruption some are having.

I've also reverted async_fsync and restore the option to disable fsync.

Let's see if that resolves the stutter some are experiencing. I'm not having any stutter, so it's hard for me to fix since I can't reproduce it. If the stutter remains, I will know that async_fsync is not the culprit, and I have two other suspects after that.

Download:

ElementalX-N5-0.20

Changes:

-move elementalx.conf back to /etc

-update installer

-remove async_fsync

-restore enable/disable fsync option
[Nexus 5 Original Android Development] reaper000:
OK, permit me to throw in my 2 cents worth on this "data corruption" issue and a possible fix you might want to try before hassling with stock images (and wiping your phone) :

Symptom:

Using TWRP, you flash something (like flar's kernel) and the next time you go to recovery, TWRP asks you for a password that you didn't set.

Worse yet, storage isn't mounted so you can't flash anything new or restore a backup.

This may not work for you, but I talked about it in TWRP's thread:

http://xdaforums.com/showthread.php?p=48851861

Good luck!
[Nexus 5 Original Android Development] Syk69:
Yes if you do what you said eventually it doesn't ask for password and mounts data fine. But trust me if you don't flash stock factory image the password prompt will come back and data won't mount again.

What I would do when faced with the prompt password is hit cancel reboot to system then reboot to recovery then won't mount reboot system again and reboot back to recovery and password prompt gone and data mounts. So you can keep rebooting and sometimes it will mount and sometimes it won't. Only way to get rid of it for sure was to flash stock factory image.
[Nexus 5 Original Android Development] letmedanz:
flar2 something i noticed (About version 0.19 & 0.19.1) is that the cooler colors toggle has somehow been assigned to the power button.

Every time the phone is rebooted, the stock colors (Warmer) present themselves.

If you just press the power button once so it goes to sleep and turn the phone on, the cooler colors are back.
[Nexus 5 Original Android Development] Syk69:
Its not that they been reassigned to power button. Its that for the setting to take effect you have to turn the display off. It always starts with the stock warm colors.
[Nexus 5 Original Android Development] letmedanz:
Right.. thanks!

Earlier versions weren't that way, was it? the cooler colors were maintained on reboot.

i assumed the power button was a toggle only for DT2H and the others
[Nexus 5 Original Android Development] Syk69:
No prob! :) no, its always been that way.
[Nexus 5 Original Android Development] drawde40599:
Hmmmm r u sure ? I thought bionic patch worked with ART/Dalvik and dalvik patch only worked with dalvik not ART ?
[Nexus 5 Original Android Development] thereal_bigjake:
I easily fixed it by flashing another kernel. I wouldn't want to be flashing the factory image if I didn't need to.
[Nexus 5 Original Android Development] flar2:
Does 0.20 fix it or not?
[Nexus 5 Original Android Development] thereal_bigjake:
Yep, rebooted to recovery a few times without a problem
[Nexus 5 Original Android Development] Syk69:
True. It might have been overkill but just wanted to be absolutely sure that the corruption was gone. :)

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

edit: Sorry I thought corruption was fixed but i rebooted a few more times and password prompt in recovery came back and data not mountable
[Nexus 5 Original Android Development] DoesntPostAThing:
I'm beginning to think the stuttering may have been placebo in 019 or 020. But it was definitely there on 018, I think. Either way, 019.1 was amazing with simple GPU governor.

Sent from my Nexus 5
[Nexus 5 Original Android Development] agentg1001:
Corruption is still an issue on latest ,I lost my Wi-Fi passwords, texts and Swype dictionary this time, hmm i guess back to stock or Franco for the time being
[Nexus 5 Original Android Development] Syk69:
Yeah I just rebooted a few more times and got the corruption back. You are right it's still present unfortunately.
[Nexus 5 Original Android Development] magnamentis:
appreciate your sense of humor but what about going back and fix is so that those on tapatalk don't have such a hard time ?
[Nexus 5 Original Android Development] flar2:
type cat /proc/meminfo and you will see there are a hundred ways to slice and dice it

The default option raises the limit from stock
[Nexus 5 Original Android Development] nanoleet:
What is the correct way to flash stock kernel coming from EX kernel?
[Nexus 5 Original Android Development] harish2887:
Hi,

sorry for this stupid question.. please can you tell which version should i use for CM rom... 5.1 or cm/CAF ????

Please can you tell....
[Nexus 5 Original Android Development] magnamentis:
there is no CAF version for lollipop as you can see here: http://xdaforums.com/showpost.php?p=47286518&postcount=1
[Nexus 5 Original Android Development] Gorgtech:
If you disable the thermal throttling completely, you will end up with a exploded battery in your pants :D

Check this out: http://xdaforums.com/google-nexus-5/general/guide-nexus-5s-throttling-solved-adding-t2627714

I did this MOD too and used a 0,5mm thick copper piece between the SOC and the cooling surface ( and attached Arctic Silver 5 on both sides of the copper piece ).

The temperatures have improved a lot when I stressed out the device with Antutu, Vellammo :good:
[Nexus 5 Original Android Development] flar2:
Update!!!

This is the long-awaited clean rebase on latest Google sources for Android 5.1.1.

Compatible with 5.1 and 5.1.1

Testing here first before I push to the app and website. Let me know how it goes

Download:

ElementalX-N5-4.00

Changes:

-rebase on android-5.1.1_r0.6

-update advanced color control (@savoca)
[Nexus 5 Original Android Development] vickyjusme:
Just flashed this version will report back :) Thanks for your great work.
[Nexus 5 Original Android Development] fuarkgl3:
i switched kernel until you updated it making a clean install of my rom. I want to test this update

So the best way to test this out would be making a boot backup, dirty flashing my rom and then flash this, right?

Will i have issues going back to my other kernel in case i dont like this update just with boot partition back up?
[Nexus 5 Original Android Development] bartolinio:
4.00??

What a huge jump :svetius:
[Nexus 5 Original Android Development] :
Dirty flash your rom and switch between kernels.
[Nexus 5 Original Android Development] akidsix:
just dirty flash you rom,and instal the kernel.
[Nexus 5 Original Android Development] bantamdraper:
Hi all,

I've been using Purity (kitkat) with elementalx for ages now and decided I'd finally give lollipop a try. I've read many reports of the newest version of Lollipop not having memory leak issues when using the stock kernel and that custom kernels would need to be updated. Figured I'd wait it out until a new version of Purity and elementalx were released. Now there are updates for both.

The release notes states the newly released version of Purity ROM has updated source code to 5.1.1_r3. I noticed the new version of elementalx is re-based on android-5.1.1_r0.6 .

Sorry for such a noob question, but in this instance does it matter if the source versions don't match for both Purity and elementalx?
[Nexus 5 Original Android Development] dox81:
elementalx 4.0

For those who installed latest version, how is the system memory usage?
[Nexus 5 Original Android Development] :
I get around 1GB free ram constantly.
[Nexus 5 Original Android Development] nicochoco03:
Hi ! for me it normally and stable ! :) ( 407Mo system usage ) and 1.2Go of free ram constantely in stock 5.1.1 with latest elementalx kernel !
[Nexus 5 Original Android Development] chrisgtl:
Running latest Rastapop and Ex 4.0 kernel.
[Nexus 5 Original Android Development] bruc0:
Does anyone have a dummy kernel 5.1.1 for f2fs support?
[Nexus 5 Original Android Development] infatality:
Well.. I felt that this release don't feel as overall smooth as the last 2.14 release.. Apps like Facebook, Tapatalk does have scrolling lag which previous release don't, but chrome seems to be working fine.. Am on latest cm12.1 nightly if it's matters..
[Nexus 5 Original Android Development] walpurgisnacht30:
Running stock here, 4.0 is as smooth as 2.14 when scrolling through Tapatalk and system wide, not sure about FB since I'm no longer using it.

Just wanna give you another "perspective"
[Nexus 5 Original Android Development] fostirop:
0.9 GB stable for me (stock rom)
[Nexus 5 Original Android Development] Mr0czny:
Stock 5.1.1 + root
[Nexus 5 Original Android Development] ciano865:
4.0 ok

dirty falsh of 4.0 on prev. 2.14 (CM 12.1) no problems until now nor lags using FB or Tapatalk

Thanks !!
[Nexus 5 Original Android Development] Psycho Orange:
How about chrome freezing?
[Nexus 5 Original Android Development] JonesL:
Opera hasn't frozen for me at all, it would freeze within minutes on 2.14, I'm sure chrome is the same.
[Nexus 5 Original Android Development] fostirop:
Nope, no issues what so ever :)
[Nexus 5 Original Android Development] ciano865:
no one until now...
[Nexus 5 Original Android Development] flar2:
It's fine.
[Nexus 5 Original Android Development] pierrep56:
No lags here with 4.0 and DU Bokrom last nighty. All good.
[Nexus 5 Original Android Development] GragonV:
Oh, it's already been raised... So do you think the thermal th is the one that cause the dropping max CPU level? :(

Will try the new 4.0 and report soon, hope it's gone

btw, should I increase the read-ahead buffer size to max (1024) for better performance (hoping that it will fix the freezing in game I'm facing of also)? Since most of the posts I've read explaining that this option will affect the performance of the sd-card, I'm not sure whether it will have any effect on the Nexus 5 with internal memory..?
[Nexus 5 Original Android Development] maortrol:
ElementalX v4.00 installed on stock rom 5.1.1 and working OK; I will check chrome behaviour (freezes) and battery consumption for the next few days... :fingers-crossed:

Thank you flar2 :D
[Nexus 5 Original Android Development] Senolis:
Fresh installed on stock

Hello.

It's the first time I will be using ElementalX kernel. I just unlocked, installed custom recovery & unrooted my N5. Just after that, I installed ElementalX Kernel (express edition). Should I reinstall the normal version? Or the express version is good enough for the battery with it's default settings?

Thanks for the reply.
[Nexus 5 Original Android Development] rawdealer:
FAQ in OP ;)
[Nexus 5 Original Android Development] Senolis:
Well I already read it, but yeah, ok. I think I'll have to reinstall the normal kernel :(
[Nexus 5 Original Android Development] flar2:
You don't need to install the normal version unless you want to change settings. The express version installs the exact same kernel but gives you all default settings if you've never installed the normal version.
[Nexus 5 Original Android Development] amaces:
I'm rooting that [MENTION=4684315]flar2[/MENTION] will eventually implement the little bit of scripting missing from full f2fs support ;) I do have a modded image, but I'm not sure whether he'd mind, or it's appropriate to post here. I suggest you mod any EX ZIP yourself with these simple commands:

$ unzip ElementalX-N5-4.00.zip boot/editramdisk.sh
# add the code quoted below just before "find . | cpio -o -H newc | gzip > /tmp/boot.img-ramdisk.gz"
$ zip -u ElementalX-N5-4.00.zip boot/editramdisk.sh

This way, no intermediate ramdisk/fstab editing is necessary.
[Nexus 5 Original Android Development] giamanto:
Hello guys... i'm quite new on this. i just bought my wonderfull N5, i really like it but i only have a problem... at 5 pm my battery is totally down... i would like to change my kernel, will my battery last more with this? thank you, i hope someone will help me.
[Nexus 5 Original Android Development] :
Yes, just flash it. Use Express version if you don't know or rather don't want to give much time to this.
[Nexus 5 Original Android Development] t3al:
[MENTION=4684315]flar2[/MENTION] I still get the "UPDATE AVAILABLE" on 4.00.

Is it because you didn't push the update or just me?
[Nexus 5 Original Android Development] flar2:
I didn't push it to the app yet. Probably tonight.
[Nexus 5 Original Android Development] giamanto:
ok perfect, just another question. once i unlock and flash recovery and flash this kernel, will i still receive android updates? thx
[Nexus 5 Original Android Development] :
No. Flashing Factory Images is better than waiting for OTA.
[Nexus 5 Original Android Development] Creative9170:
Thanks for your great work, But I don't know why it didn't boot on latest bootloader hhz12h, I am on latest Optipop rom and I have this issue with several kernels including ElementalX, can someone help what is the problem? It only shows red-green-blue-yellow dots while boot, but doesn't boot into system :(