yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] grep_i:
Update without wiping using factory images from Google developers site

If you revert your Nexus custom recovery back to the right stock recovery of the installed firmware you can install via OTA or ADB sideload.

With Nexus phones there is no special need to install via OTA as you can grab the developers factory images firmware and flash that directly on your phone, that is one of the advantages of Nexus phones.

So as you can see there are more options to update, my favorite way of updating is via downloading the firmware from Google Nexus developers site soon after it gets available, see following https://developers.google.com/android/nexus/images

Extract it and install it.

Depending on if you use Windows, Linux or Mac the instructions are a little bit different but you can find them also on the developers page.

With one remark, if followed the directions your phone will be completely wiped because we are talking about factory images, normally returning your phone to factory causes the same.

I found myself a way to use the factory images to just update and not wipe my phone by editing one update/install file.

It involves using the commandline and file editing, for Windows users who does not like to use the commandline you can also do the update with an all in one toolkit called

Nexus Root Toolkit from developer WugFresh. See his page for more detailed instructions.

http://www.wugfresh.com/nrt/

If the commandline does not scare you or have no secrets for you, here are my instructions.

Flash-all.bat for windows

Remove "-w" parameter from 4 the line counted from below

It looks like

fastboot -w update image-hammerhead-mmb29s.zip

It must look like

fastboot update image-hammerhead-mmb29s.zip

Flash-all.sh for Linux and Mac

Change the last line from

fastboot -w update image-hammerhead-mmb29s.zip

to:

fastboot update image-hammerhead-mmb29s.zip

This will update your phone to that particular firmware without wiping your apps and data.

If needed I can help you with instructions.
[Nexus 5 Original Android Development] nexttjme:
Can i use EX on DU rom?
[Nexus 5 Original Android Development] nathanchance:
Yes. Just make sure to grab the right version of EX (4.09 if you are on Lollipop still, 6.09 if you are on Marshmallow 6.0.1). Furthermore, I believe DU requires a permissive kernel so make sure to uncheck the SELinux Enforcing option in the installer.
[Nexus 5 Original Android Development] gaaraofthesand:
can we flash the latest version with CAF roms?

a reply is appreciated!
[Nexus 5 Original Android Development] grep_i:
Look post below.
[Nexus 5 Original Android Development] Balino:
No.

This is an aosp based kernel.

It's going to bootloop on CAF based roms
[Nexus 5 Original Android Development] gaaraofthesand:
Thanks?
[Nexus 5 Original Android Development] jineshpatel30:
All kernel settings are default ( Elemental-X recommend ) + latest Cataclysm Mod

Problem:

My Touch Screen (not back cover ) gets Hot (i mean sensibly hot.... not just warm ) with just 10-15 min of not much graphic demanding games. (like COC , Room 3 , WCC2 , Quiz Up etc )

just starting any game, rise CPU temperate to 65+ , with-in 5 min it rises to 70+ & in 10-15 min 75+ (sometimes 80+ :eek: ) & back cover got very hot & starts to smell like burning if we smell it :p

i know N5 is 2.3Ghz & when it process it become hot but this is too much hot & all this games are not that demanding afaik . & there is NO such temperature rise in heavy app like chrome & FB how much time i spend on them !

but this back cover getting hot is not my main concern bcz for most devices it happens..but with in 15 min top half inch portion of touch sceen gets much hot to touch ( may be around 45 deg...bcz in India Normal room temperature remains around 38 so it should be around ~45 to notice such difference in top & bottom of sceen ) & touch sceen getting hot is not very common afaik.

so is this okay ?

also other thing is while charging touch is not as smooth as while using in non-charging condition. ( same problem was there for my older i9070 after 1.5 year of usage + there was some custom kernel issue regarding this touch problem for that phone )

so slight lagginess (not that much noticeable ) while charging is normal for N5 ?

i purchased N5 just 9 month ago & all accessories (changer) i use are official.

(Most Probably this is not kernel related but i don't know where do i get better answer so i posted here )
[Nexus 5 Original Android Development] flar2:
A couple things to try:

Disable gboost

Choose stock cooling
[Nexus 5 Original Android Development] jineshpatel30:
okay.

i'll try & report back

ty for reply :)
[Nexus 5 Original Android Development] Nolfer:
Is this kernel compatible with bliss rom? It's cm based
[Nexus 5 Original Android Development] magnamentis:
i'd be surprised but oder versions are, i have been using EX with blisspop for the entire year 2015 while this variant is marshmallow only as far as i know ready to be corrected but i really think that's how it is :)

if you go to the download site you will find KK and LP variants, at least it has been like that in the past.
[Nexus 5 Original Android Development] india86:
Bliss v6 is cm caf based rom so this kernel won't work as its based on asop.
[Nexus 5 Original Android Development] magnamentis:
correct which is how we can see how important it is to post proper questions LOL. blisspop was non-caf and bliss 6.0 is caf. no idea why but like this they certainly reduced future success due to limited choice of kernels IMO. however, their choice, thanks for the clarifying amendment.
[Nexus 5 Original Android Development] jineshpatel30:
okay tried your suggestions and it definitely helped..now CPU temp remains in 65-70 range instead of ~75+ & touch sceen gets just warm instead of HOT :p and didn't see any notable lag ( sometimes game lags for just few sec but that is it..no UI or any other lag :D )

now, if i want to just change one of them ( gboost & cooling ) , according to you which one will have most effect of on this temp. issue ?

btw is it just my device or all N5 face same temp. rise with those 2 enable ? ( i'm asking to know whether there is some hardware defect in mine ? )

for now i'm testing with "bit cooler" & gboost enable setting...will let you know if there is something important to share :)
[Nexus 5 Original Android Development] HiM@L:
OT:

Hey... just got N5 and using this kernel with Cataclysm...running good so far...can't say anything about battery life yet.... but quick question...which color profile do people use mostly in N5.

Thanks in advance.
[Nexus 5 Original Android Development] Balino:
Usually my device temp is less than 50° even during browsing.

I don't play games at all with my phone.

I live in Italy and I get those temperatures (over 60°) only during summer.

Maybe some app is doing something bad with your device in the background.

Try a clean install of your ROM + Ex kernel.

You can just set the thermal config to be "cooler", it will keep the phone cool throttling the cpu.

Tip : try reducing screen brightness when your device gets hot
[Nexus 5 Original Android Development] jineshpatel30:
Plz read my 1st post on previous page.

With browsing & other tasks even my CPU temp. Remains <50
[Nexus 5 Original Android Development] giorgis91:
Can I flash this kernel with normal supersu (non systemless)?
[Nexus 5 Original Android Development] nathanchance:
Yes, as long as your ROM supports it (which Cataclysm does, if I am not mistaken I saw you were on that in another thread?)
[Nexus 5 Original Android Development] magnamentis:
yes, i have conventional root and v6.09 without issues
[Nexus 5 Original Android Development] occtec:
[MENTION=4684315]flar2[/MENTION] could you shed some light on this? Just had a kernel panic with a full reboot, see attached last_kmsg. The phone was just sitting on my desk and then it just rebooted, maybe you can find something in the log ;) Currently Running Cataclysm latest stable build and SuperSu v2.52, no xposed modules and kernel is running at default settings. After the reboot i had to go through the setup process of some of my apps all over again like Solid Explorer, etc.. Thanks in advance
[Nexus 5 Original Android Development] RusherDude:
What is that UI? I updated to 6.09 and see the normal UI, where the gesture for the camera option doesnt even explain what is the gesture for it..

Or its not the ex kernel app?

[MENTION=4684315]flar2[/MENTION] ,thanks for adding the camera gesture for n5! However why it is by default and as an only option configured with the swipe down gesture?

If we already use swipe down, we cant use this at all... Could you let the user decide if we want to launch tje camera with swiping up/down/left/right like dt2w and s2w? Right now it doesnt even explain the gesture for it to work and overcomes swipe down for s2w or dt2w if we have it configured for that (the ui doesnt warn the user about this either)

Thanks!
[Nexus 5 Original Android Development] flar2:
Probably just a random one time thing.
[Nexus 5 Original Android Development] flar2:
It's only going to be swipe down. If you already have swipe down selected, enabling the camera gesture will override.
[Nexus 5 Original Android Development] paul222008:
Does this work with CM13 CAF? :)
[Nexus 5 Original Android Development] d1n0x:
No
[Nexus 5 Original Android Development] magnamentis:
for next time, took 5 seconds:

http://xdaforums.com/search.php?searchid=401742073

493 posts on the topic !
[Nexus 5 Original Android Development] RusherDude:
..Why?

You let users select the swipe direction for s2w and dt2w but not for camera for any reason?

It is a heavy contrast on your kernel, since most other stuff is configurable. This is not only not configurable but also doesnt explain in the description that you have to swipe down, and as you said it overrides normal swipe down action.

I am not sure why you limit this.. :( Theres any reason? O.o

Thanks for the great work!
[Nexus 5 Original Android Development] magnamentis:
last two posts sound a bit aggressive, just for your information in case it was not on purpose.
[Nexus 5 Original Android Development] RusherDude:
Oh no, i dont want to be aggressive lol, im just very surprised by that answer o_O
[Nexus 5 Original Android Development] magnamentis:
yeah i thought i better had sent you pm, sorry for that, i suspected that it might be a question of semantics since i know your usual way of posting :) sorry again for posting in public, should have asked first "mea culpa" :angel:
[Nexus 5 Original Android Development] Progressive82:
Stock + supersu 2.66 + elementalx 6.0.9. I've not enabled camera gesture in ex kernel manager but when I've phone in charging and battery charge pass >20%, phone vibrate and camera turns on. Resolve please.
[Nexus 5 Original Android Development] till22:
Sir, yes, sir!

What's the deadline? How much time does [MENTION=4684315]flar2[/MENTION] have to fix your userspace issue?
[Nexus 5 Original Android Development] occtec:
I think you really need to resolve your attitude first ?
[Nexus 5 Original Android Development] Progressive82:
Stock + supersu 2.66 + elementalx 6.0.9. I've not enabled camera gesture in ex kernel manager but when I've phone in charging and battery charge pass >20%, phone vibrate and camera turns on. Anyone has the same problem?
[Nexus 5 Original Android Development] alinefds:
Hello everyone! I don't know if my problem is the ROM (cataclysm), kernel (ElementalX) or hardware. The fact is that when I need to restart the phone, the touch does not work anymore at the top. I have to keep restarting several times until he returns to work. Has anyone seen this before? Would someone help me? Thank you in advance and sorry for my bad English. Hugs

EDIT: I realized also that when the touch doesn't work in the top of the screen, I can't lower the bar notifications. I configured in Nova Launcher to show the bar notifications with a double click, but he also doesn't work.
[Nexus 5 Original Android Development] gaosphappy:
Do you have this issue using stock launcher???
[Nexus 5 Original Android Development] magnamentis:
yep that's the way :) you will need patience until someone who has the same setup can reproduce, i cannot since i don't even remember when i've been below 20% on any device :) just sayin' this because it could take some time until someone will come up with a reply. perhaps [MENTION=4684315]flar2[/MENTION] is interested enough to try to trigger that behaviour on purpose :)
[Nexus 5 Original Android Development] alinefds:
Yes, I have.
[Nexus 5 Original Android Development] galakanokis:
That's a strange one, don't think I have ever even heard a problem like this let alone experienced it. Are gestures enabled in the kernel? Swipe down for camera perhaps is acting a little funny while the screen is on?

---------- Post added at 07:57 AM ---------- Previous post was at 07:54 AM ----------

Another weird one, could be your power button. Mine has started to go and it causes weird things around the Camera launching. Does the power button seem a little flaky at all? I have never tested charging from that low but can try later tonight perhaps.
[Nexus 5 Original Android Development] Progressive82:
mmm, power button is ok. I've set double power click on marshmallow settings only. The problem it happened to me twice, I was in power saving mode and charging mode.
[Nexus 5 Original Android Development] magnamentis:
but that means you can reproduce it with a high chance which certainly means that you'd have to provide a log, simply copy the logfile and delete the lines after the event and in addition you could take the kernel log and publish it here for [MENTION=4684315]flar2[/MENTION] to look into it. that would save some people a lot of work to try to reproduce and there must be something in the log that hint to or indicates the problem itself, always provided that it's not a hardware issue which seem unlikely as per your explanations.
[Nexus 5 Original Android Development] flar2:
It could be the disabling of s2w triggering the camera gesture. In my testing, this didn't happen. I will check again.
[Nexus 5 Original Android Development] Progressive82:
it happened again, 30% battery. from CatLog. (what type of log I have to save next time?). In this log seems that I've pushed powerbutton but this happen when I describe before, when battery is in charging mode >20% and now >30%.

17:58:25.732 line starts *mysterious* gesture.

pastebin
[Nexus 5 Original Android Development] magnamentis:
which would mean that the other guy who suspected the power button being faulty would not be that far off :) does not make totally sense if it happens always under similar conditions only but then who knows to what extent the voltage and the power button etc. are related. let's hope that [MENTION=4684315]flar2[/MENTION] looks into that log to do a proper analysis.
[Nexus 5 Original Android Development] Progressive82:
960Mhz max frequency while screen off is only thing that I've changed in exkernel manager.

Summarising:

powersaving mode on (although the last time it happened, powersaving mode was off)

960Mhz max frequency while screen off

charging battery from <15% to >20% (although the last time it happened >30%)
[Nexus 5 Original Android Development] alinefds:
The only active gesture is Sweep2sleep.
[Nexus 5 Original Android Development] dechronic:
[MENTION=4684315]flar2[/MENTION]

I found a little error at the end of the elementalx.sh file in 6.09. I didn't check it in previous versions.

When elementalx.sh is run it gives the following error:

cp: /data/data/elementalx.conf: No such file or directory
cp: bad '/data/data/elementalx.conf': No such file or directory

The bad code is at the very end of the elementalx.sh file just before the exit 0

#update saved config
cp /data/data/elementalx.conf /sdcard/.elementalx.backup

This happens as the config file is located in the /system/etc directory as specified by your variable at the start of the elementalx.sh file.

ELEX_CONF="/system/etc/elementalx.conf

So changing the code to the following solves the problem (I tested it)

#update saved config
cp $ELEX_CONF /sdcard/.elementalx.backup

I hope this saves you time, by finding a problem and providing a working solution.

P.S. For those who may wonder why this is needed, elementalx.sh when it is run applies any changes to the config file immediately without the need to reboot and that command that is broken makes a hidden backup copy of the ElementalX config file to your /sdcard directory.
[Nexus 5 Original Android Development] username8611:
Just flashed cataclysm and elementalx, I don't have an init.d folder.... Shouldn't I?
[Nexus 5 Original Android Development] nathanchance:
Pretty sure init.d is deprecated, use su.d instead.
[Nexus 5 Original Android Development] flar2:
Update!!!

Minor update

-A small fix to the installer, thanks to [MENTION=5594433]dechronic[/MENTION] for pointing it out

-update CFQ i/o scheduler

Download

ElementalX-N5-6.10

Changes:

-fix installer

-update CFQ i/o scheduler
[Nexus 5 Original Android Development] freitaz:
Any plans for updating it to CM13 CAF?
[Nexus 5 Original Android Development] grep_i:
[MENTION=4684315]flar2[/MENTION]

What does "disable max frequency while screen off (1190 mhz)" actually do ?

Does this mean when you enable this you can change the frequency to a lower or higher frequency than 1190 mhz ?
[Nexus 5 Original Android Development] galakanokis:
caf is dead for now on Hammerhead. CM pulled it.
[Nexus 5 Original Android Development] d1n0x:
It means the phone can go up to the maximum frequency with the screen off (normally 2.5 GHz)
[Nexus 5 Original Android Development] parag60288:
[MENTION=4684315]flar2[/MENTION]

Thanks for the awsome kernel.

I have on question though,

I am using stock rom.

I flashed ElementalX rom first and then flashed SuperSU , and everything seems to be working fine.

I tried this on Krexus Rom as well as Lean Rom & it worked.

But i read on website saying we have to flash SuperSU first before flashing ElementalX.

So am i missing something here?:confused:
[Nexus 5 Original Android Development] magnamentis:
that would be a downgrade (just kidding)

it would take a separate kernel and he won't go there as far as i understood, almost 500 posts on the topic, many enough of recent dates.

there is nice feature to use before asking: http://xdaforums.com/search.php?searchid=401962858
[Nexus 5 Original Android Development] kojak1989:
what is better hotplugging or mpdecision ?
[Nexus 5 Original Android Development] nathanchance:
You only need to flash SuperSU if your ROM is not prerooted (like stock). If it already has root, just flash EX and be done with it. You can flash SuperSU after flashing EX but it is recommended to do it before so that the boot.img that gets patched is the stock one instead of EX in case you ever need to revert it.
[Nexus 5 Original Android Development] Joy Bangla:
i prefer hotplugging to be disabled. i get better battery life with it.
[Nexus 5 Original Android Development] Progressive82:
With what settings? 4 cores or two?
[Nexus 5 Original Android Development] Joy Bangla:
all four cores running. cores return to idle a lot faster as tasks takes less time.
[Nexus 5 Original Android Development] occtec:
Can someone specify what is a safe value to use for speaker gain under sound>gain controls in EXKM? I've currently set mine to 8 but the setting allows for up to 20. Want to play it safe, lol..Cheers
[Nexus 5 Original Android Development] magnamentis:
i only can try to give you "common sense" reply, not backed by any tech evidence or studies.

if you set it too high, long before the speaker would be damaged, you'd start to get distortions and as a consequence will happily reduce either volume or gain.

hence don'w worry, just don't raise it while having the device at full volume for testing, so that it wouldn't break on first split second ;)
[Nexus 5 Original Android Development] occtec:
Well said and agreed, hence why I'm asking what people have tried and tested without blowing their speaker, lol.. That's why I thought I'd play it safe first by asking. Maybe I didn't make myself clear ;)
[Nexus 5 Original Android Development] magnamentis:
ohh.... when it comes to dangers of physically damaging a device that's certainly a valid approach, better ask than be sorry :)

since i'm already at it: mine is set to (from top down):

Locked

1

6

2

3

4

all set on boot positive
[Nexus 5 Original Android Development] flar2:
No, s2w/dt2w won't affect that, only idle.

It doesn't drain that quickly for me web broswing. Try rebooting and see what happens.
[Nexus 5 Original Android Development] phantomEVO:
i've cataclysm 4.4.2: should i use the beta version of elementalx?

should i tweak something to see some improvements ?
[Nexus 5 Original Android Development] flar2:
Use the latest, version 0.21.

Just flash it with defaults and you should be fine.

Doubletap2wake and sweep2wake are not enabled by default because they use a lot of battery.
[Nexus 5 Original Android Development] Karmavore:
Flar, I have this same ridiculous idle battery killing on ElementalX governor. It goes as high as 8-10% per hour with minimal use. Apparently deep sleep doesn't occur. And it dwells on 1190MHz (Screen off). I'm going to switch to interactive and see if it helps.
[Nexus 5 Original Android Development] flar2:
The governor doesn't do anything while idle.

Something is keeping your phone awake. Try rebooting.
[Nexus 5 Original Android Development] Meth0d:
I also got the Idle drain in 0.21.

Nothing changed in my settings, still no d2w or anything.

Burned through 50% of bat with almost no use at all, on 0.20 this would have been over 80%.
[Nexus 5 Original Android Development] drawde40599:
Mines idling and sleeping like a baby , 1-3% maybe something got "gummed" up, reflash your ROM and try agn . unexplained stuff happens sometimes when flashing "stuff"
[Nexus 5 Original Android Development] DoesntPostAThing:
Once my phone did not sleep at all in hours, and device was getting hot as soon as the screen was on. Something was hogging up the CPU and it would never go to idle freq. Not sure what it was, but reboot fixes it.
[Nexus 5 Original Android Development] N4STYNATE:
[MENTION=4684315]flar2[/MENTION] Any way you could PLEASE default the vibration intensity to 100/max? Or at least make it an option in aroma?
[Nexus 5 Original Android Development] Johnny424:
you know you can use an app like trickster to change it after flashing
[Nexus 5 Original Android Development] drawde40599:
just go to etc/elementalx.conf file and change it ,it will take u 3 seconds that's what the file is for ....
[Nexus 5 Original Android Development] Blue1k:
Flar, awesome kernel. I followed your development on the HTC One forums. Glad you are here. Made my Nexus perfect. Thanks again
[Nexus 5 Original Android Development] kurnis:
Sorry, but what a lazy request. It would take the same amount of time to change it in aroma that it does in trickster... Which is free so there's no excuse to not have it. Plus it gives you so many control options.

Once again, great kernel flar! Don't get bogged down by the silly posts. We support you!
[Nexus 5 Original Android Development] flar2:
0.21 seems to be working pretty well, so stay with that unless you want to test.

Here's 0.22. Doubletap2wake fullscreen/halfscreen is now an option. I also changed some build options and did a bit of work around i/o.

Try out some different i/o schedulers. I think ROW might be promising. I used to use it on some of my other kernels.

Download:

ElementalX-N5-0.22

Changes:

-update installer

-doubletap2wake default is bottom of screen only

-doubletap2wake fullscreen option

-various tweaks and optimizations (see github)
[Nexus 5 Original Android Development] DoesntPostAThing:
Thanks for the update flar :)

Also just wondering, did you change anything to do with logging? Because logcat is extremely iffy, and DDMS view in Eclipse does not show any processes unless it's started by Eclipse (running the app signed with debug keys).