yashsingh1/xdaforums huggingface dataset:
[Nexus 5X Original Android Development] oo0:
[MENTION=4684315]flar2[/MENTION]

on the first screenshot you can see battery discharge graph with swipe2wake enabled, timeout 5 minutes, ambient display, greenify + aggressive doze. phone laying flat for two days and deep sleep battery discharge graphs look similar.

trying s2wake every couple of hours - disabled, so the timer works.

on the second - only swift2wake was disabled for abt two hours. and see how graph immediately changed its curve to smaller drainage.

5min timeout should disable digitizer and graph without s2wake would look similar to s2wake+5min timeout graph at same conditions. but it's not.

could it be timeout really disables gesture but not digitizer? (explains why sometimes i can wake device laying for 8 hours without notification and screen On. looking at it for 5 minutes after long timeout, before i swipe, to ensure screen doesn't blink, but that rarely happen).

maybe greenify aggressive doze mode affects it, but in 5minutes i see screen flashes - timeout disables gesture, and it really doesn't work after.

probably 5 minutes timeout is too small and digitizer, causing additional 1% drain per hour, will be disabled for sure at 30 minutes, like suggested?

please advice what can cause additional drainage on that battery curve in described situation?
[Nexus 5X Original Android Development] flar2:
In my testing, everything gets disabled properly with the timeout. You would need to run these tests again to rule out other factors that could have affected drain.
[Nexus 5X Original Android Development] flar2:
No, that can cause problems because you lose the ramdisk that comes with Pure Nexus.

The reason it "works" is because Chainfire's boot.img provides the sepolicy needed to run with an enforcing kernel, as EX is by default.But these ROMs work better with a permissive kernel. So I've provided that option.
[Nexus 5X Original Android Development] danthepan124:
So without flashing chainfires boot, I should have enforce ticked on?
[Nexus 5X Original Android Development] flar2:
If you are on stock, enforcing checked.

If you are on Pure Nexus, Chroma, Frank, or any other permissive ROM, then enforcing unchecked.
[Nexus 5X Original Android Development] stu5797:
Cant get Pure Nexus to boot... I have the box UNchecked
[Nexus 5X Original Android Development] flar2:
I can't continue to hold everyone's hand.

If you want to flash non-stock ROMs, then learn how to troubleshoot.

I am providing the necessary options and making things as flexible as possible.
[Nexus 5X Original Android Development] stu5797:
Just want you to know everything you do here is appreciated. Thanks for everything!
[Nexus 5X Original Android Development] dg4prez:
Tried that. Flashed pure nexus, gapps that are known to work, and elementalX .4, with enforcing unchecked and all other options default. Cleared dalvik/cache, rebooted into system. Never gets past the boot animation.

---------- Post added at 03:54 PM ---------- Previous post was at 03:53 PM ----------

Its certainly appreciated, but it may be that there something actually wrong, here.
[Nexus 5X Original Android Development] flar2:
There is exactly one change to the Pure Nexus Kernel: it is set to permissive by default.

If you uncheck the enforcing option in ElementalX, it should make it permissive. Unless the installer is broken.

Please check your /data/data/elementalx.conf and see if it says ENFORCING=0

Also, while the boot animation is running, connect with adb shell and type "getenforce" It should say permissive

If it doesn't, then try "dmesg | grep enforcing" It should say enforcing=0 on the kernel's command line.
[Nexus 5X Original Android Development] dg4prez:
I can try that later tonight, once my son is or of therapy and whatnot. I'll part my results of no one has attempted it prior to that. Thanks flar.

---------- Post added at 04:21 PM ---------- Previous post was at 04:16 PM ----------

I suspect it is the installer. Earlier I used the following: pure nexus > chain fire img > ex set to enforcing unchecked. In the settings about page, selinux showed as enforcing. I'm not 100% about the memory, but close, as I remember thinking, "wtf? That's weird."

---------- Post added at 04:43 PM ---------- Previous post was at 04:21 PM ----------

The elementalx conf file on my phone still shows ENFORCING=0, by the way. Which is odd and indicates the installer's probably OK. Which makes no sense.

I'll take a look later tonight
[Nexus 5X Original Android Development] flar2:
It still might not be setting the command line correctly. It needs to say enforcing=0. You would find this in dmesg
[Nexus 5X Original Android Development] danthepan124:
Just reporting with your instructions if stuck in boot loop, I do the dmesg line and I get enforcing=1. dont really know what it means, but I just wanted to show you what im recieving!
[Nexus 5X Original Android Development] flar2:
I need to fix the installer so that line is enforcing=0
[Nexus 5X Original Android Development] danthepan124:
Gotcha, can't wait for the next update :3
[Nexus 5X Original Android Development] ibilln:
Android Pay. Anyone able to use it with this kernel? Lots of discussion that when rooted AP does not work, but to get it to work, "just" turn off root in SuperSU. Not sure I want to do that. Anyway, the device needs root to run ElementalX (?). Or, just for install?

I'd try this stuff but my device is being RMA'd. Thx.
[Nexus 5X Original Android Development] flar2:
Update!!!

I forgot to patch in my selinux changes, that's why it wasn't working as expected.

Now you can uncheck the enforcing option during install and it will be in permissive mode.

Stock ROM:

-just flash EX, no need to flash Chainfire's boot.img

Custom ROMs requiring permissive mode:

-just flash EX, make sure to uncheck "Enforcing" in the aroma installer. No need to flash Chainfire's boot.img

Download

ElementalX-N5X-0.05

Changes:

-fix enforcing option
[Nexus 5X Original Android Development] danthepan124:
I'll test right away flar!!!
[Nexus 5X Original Android Development] dg4prez:
Thanks for holding our hand. ;)
[Nexus 5X Original Android Development] danthepan124:
It booted! [MENTION=4684315]flar2[/MENTION], is there anything else you want tested?
[Nexus 5X Original Android Development] danthepan124:
It's a shame Trickster doesn't work for this kernel, when I get the money, I'll definitely buy your app :3
[Nexus 5X Original Android Development] HesThatGuy:
[MENTION=4684315]flar2[/MENTION] Hello good sir, first of all I would like to thank you for this kernel and app as it has been very nice. One thing I would like to know is if it possible that you have a zip version of the elementalx app or if you could create one if you don't have one yet. I have already purchased it in the app store to support you but instead of downloading it from the app store I would like to flash it so it will be a system app. Thank you in advance for your response and keep up the good work!
[Nexus 5X Original Android Development] nathanchance:
I'm just kind of curious, why does it matter if it is a system app or not? It is built with being a data app in mind, what would be gained by being a system app?
[Nexus 5X Original Android Development] fourbiscuits:
Can I flash this over Omni kernel?
[Nexus 5X Original Android Development] herBosaurus:
Please read the first post. You should ONLY be flashing this over the kernel that came with your ROM. Do NOT flash it over another custom kernel.
[Nexus 5X Original Android Development] flar2:
I assume this is the kernel that comes with omnirom?

If so, then yes you can flash elementalx over it.
[Nexus 5X Original Android Development] SlimSnoopOS:
72 hours with "sched" governor on both clusters and touchboost disabled. Chroma rom x Feb update. I'm seeing mostly solid performance with slight lag as well. Solid mix of LTE and Wi-Fi each day. My usual DC commute of LTE and Maps every day. I would like to stress that I don't notice any difference from my usual setup of browsing, calls, and texting.

My normal setup seems as responsive, it's Interactive governor with Ghostpepper CPU script. As for battery, I've always gotten between 4-5.5/6 hours screen on (Wi-Fi) and like 3-4 with LTE. Same as always for me!

View attachment 3664026View attachment 3664027View attachment 3664028

Just have to add, I'm really impressed with how stable these kernel updates are. No random reboots or force closes over three months of use flar2.
[Nexus 5X Original Android Development] RusherDude:
[MENTION=4684315]flar2[/MENTION]

Finally flashed ElemX on the N5X, works like a charm.

Just one minor request:

I know material design is cool, but its the 2-lined action bar necessary on the main activity? I mean, on my Nexus 5X with stock DPI, I don't see the complete activity (need to scroll down a bit to see the line with the kernel version) just because the action bar is in the 2-line status.. On the N5 the action bar was in 1-line status unlike all other activities and it looked awesome because everything fitted in the screen :(.

Thanks a lot for the brilliant work!! :D
[Nexus 5X Original Android Development] RusherDude:
I add a screenshot. I cant edit the previous post and add a ss on the xda app -.-
[Nexus 5X Original Android Development] flar2:
Turn off the colorful dashboard option and it will fit exactly.
[Nexus 5X Original Android Development] RusherDude:
It does still slide..the bottom tab has no shadow and looks broken.

However i dont wanna turn off the colorfull dash :s, it looks awesome :(. Couldnt the colorfull option be adapted like the normal one to fit? And the normal one be adapted to fit entirely.

Thanks!
[Nexus 5X Original Android Development] Silvers91:
Mates, does EX kernel work on CM roms without issues?
[Nexus 5X Original Android Development] nathanchance:
It should but make a backup and find out.
[Nexus 5X Original Android Development] yanleites:
I used this kernel on Nexus 5, should I put it on 5X or it won't do any change, I mean battery time and performance....

Thanks !
[Nexus 5X Original Android Development] netinetinet:
[MENTION=4684315]flar2[/MENTION] Why kernel is not able undervolt?
[Nexus 5X Original Android Development] nathanchance:
Because 1. The chip's voltages are already pretty low and 2. The chip dynamically adjusts voltages based on a variety of factors.
[Nexus 5X Original Android Development] roofrider:
flar, I'm using your kernel with MultiROM and experienced a couple crashes while booting into secondary. It's probably related to Multirom, but if you are interested, I've posted it here.
[Nexus 5X Original Android Development] flar2:
Thanks. I still haven't tried multirom, eventually I will get to it. But the kernel log here is just what is needed for troubleshooting, from a quick look I see that kexec failed, couldn't get the device tree info.
[Nexus 5X Original Android Development] RusherDude:
What multirom binaries and app are you using? The jollaman thread is about a kernel which supports MR, like this one ElemX, but where are the app and multirol binarues and recovery youre using?

Ive found this one

http://xdaforums.com/nexus-5x/development/wip-unoffical-multirom-bullhead-anglar-t3315266

But the op said he compilled jollaman sources and that his version crashes when trying to mount system while flashing a rom, but you seem to have passed this point.

Srt if this is a bit offtopic, id try it with elemx too.

Thanks a lot!
[Nexus 5X Original Android Development] roofrider:
jollaman uses Aroma to install his patched kernel as well as multirom and the modified recovery. I used his Aroma installer to install just the recovery (there is an option to do that); extracted the multirom files from his kernel zip and flashed them separately via a flashable zip (i just used 6P's installer zip and swapped the files in them); flashed flar's kernel. I assume you can also simply pull the recovery image from jolla's zip and flash it via fastboot or any other means to get multirom TWRP. Another option would be to install jolla's kernel and the entire package (multirom and TWRP) without skipping anything; dirty flash your rom; and install EX (and Inject curr. boot sector or you wont see the boot manager screen).

But after doing all this, don't be disappointed if you can't boot into the secondary. :p It is not fully functional yet.
[Nexus 5X Original Android Development] RusherDude:
Ah okay, so it's included into jollas kernel. Interesting, will look into this. I wanna this released stable so bad so let's try to test and help :fingers-crossed:

Thanks a lot!! :good:
[Nexus 5X Original Android Development] yanleites:
Hi.

After flashing ElementalX I see Cluster 2 as 633mhz min and max.

Is it OK?
[Nexus 5X Original Android Development] Pivo0815:
633 mhz min is okay, but MAX should be at 1824 mhz. Can you change it to 1824 mhz in EX Kernel Manager?
[Nexus 5X Original Android Development] yanleites:
I set minimum to 384 mhz and max to 1824.

Is it OK?
[Nexus 5X Original Android Development] flar2:
I suggest leaving the CPU frequencies alone. They operate correctly (and exactly the same as stock) right out of the box.
[Nexus 5X Original Android Development] yanleites:
Ok!

---------- Post added at 08:10 PM ---------- Previous post was at 07:46 PM ----------

And what about thermal throtling?

46 is fine or should I make it lower?
[Nexus 5X Original Android Development] flar2:
Leave it
[Nexus 5X Original Android Development] martyfried:
Doesn't Pure Nexus come with a custom kernel? If so, how can one use both?
[Nexus 5X Original Android Development] nathanchance:
No, it comes with the stock kernel. You can't use both.
[Nexus 5X Original Android Development] martyfried:
Oh, thanks. I thought I saw a different kernel when I only had PN. Guess not, but no way to check what I thought I saw now.

By both, I meant how could he have EX and PN, if PN had a custom kernel. My bad.
[Nexus 5X Original Android Development] flar2:
You can flash over whatever kernel comes with the ROM.

The warning is about flashing over other kernels that you've installed separately.
[Nexus 5X Original Android Development] till22:
While I fully understand what you say and believe you; may I ask for a short explanation as to what the technical reason behind this is?

In case my question isn't wholly clear: Say ROM X comes with custom kernel Y. Why can you flash EX over custom kernel Y but you should not flash EX over custom kernel Z, some other kernel you have installed after custom kernel Y?
[Nexus 5X Original Android Development] flar2:
Because I don't know what the other kernels do in their ramdisks.

Most of the time, the custom kernels in ROMs are made for the rom and very similar to stock. This is totally fine and we want their ramdisk changes so things like otg and other features work properly. That's why I use the existing ramdisk. These "custom" kernels are usually exactly like stock in terms of cpu management and stuff like that.

I would not recommend using a ROM that uses a third-party custom kernel, especially the ones with battery tweaks and other things that make ElementalX run poorly.
[Nexus 5X Original Android Development] bbgun7:
Does anyone have a list of cpu governors available in this kernel, and io schedulers?
[Nexus 5X Original Android Development] bbgun7:
Thanks!
[Nexus 5X Original Android Development] shindiggity:
Coming from the G3 we had smartmax, lionheart and others is this not possible with the 5x kernel?
[Nexus 5X Original Android Development] SlimSnoopOS:
Oh, I'm sure it is. It's just not included in this kernel. Interactive is the default and flar2 has found that Qualcomm and LG have tuned the governor fairly well as is.
[Nexus 5X Original Android Development] shindiggity:
Gotcha!
[Nexus 5X Original Android Development] herBosaurus:
Just flash Pure nexus first, then ElementalX
[Nexus 5X Original Android Development] SlimSnoopOS:
Will you be merging the EAS governor into your main kernel, [MENTION=4684315]flar2[/MENTION]? I was curious if our feedback and any experience you have with it, will prompt you to provide updates if any are introduced by the group developing EAS (Linaro, I think)?
[Nexus 5X Original Android Development] flar2:
The main release will not have EAS, because it disables HMP (Qualcomm's big.LITTLE scheduler). Someday I want to look deeper into EAS, as it seems to have some real battery gains, but right now there is too much performance penalty.
[Nexus 5X Original Android Development] ddrum2000:
Sorry, maybe I missed this. I using the Beta 1.07 and I noticed the audio gain options disappeared from EXKM. Was this intentional or will they make a return? Thanks.
[Nexus 5X Original Android Development] joetheshmo:
Still there for me on 1.07
[Nexus 5X Original Android Development] SlimSnoopOS:
It's been there for me, I did a dirty flash upon 1.07 release. My speakerphone gain is set to +2. Have you tried re-download and a reinstall?
[Nexus 5X Original Android Development] ddrum2000:
That seemed to work. Thanks.
[Nexus 5X Original Android Development] Athletefx:
I'm really enjoying Sched governor with the ROW IO scheduler. For me, ROW took out the fingerprint scanner and UI lag. ;)
[Nexus 5X Original Android Development] luckana:
Ever since i started applying governor profiles i am experiencing random reboots. No matter which profile i use, i get RR.

Here is a pic of the last couple lines from last_kmsg where i think is the culprit of the problem but since i don't understand the code i was hoping someone to help me out
[Nexus 5X Original Android Development] gorilla p:
I'm currently using Phasmas EAS release for the N5X and am noticing no performance issues at all, even using conservative governor.

This device has plenty of performance for everyday use, however I can't speak to potential power loss at higher loads.
[Nexus 5X Original Android Development] flar2:
When I see a watchdog bite, I immediately think that the settings are stressing the hardware too much. Could be something like cpu freq dropping too quickly. I would suggest running without the tweaks for a while to see if it continues. If it does, do a full clean install.

Also, don't overclock.
[Nexus 5X Original Android Development] fire7777777:
one questio, if i flash an other custom kernel how can i reflash this? because i read trouble for ramdisk mmh
[Nexus 5X Original Android Development] joetheshmo:
Dirty flash your ROM and then flash this kernel. If you're on stock just flash stock kernel and then flash this kernel
[Nexus 5X Original Android Development] fire7777777:
Ok, when can i find stock kernel? Can you give me a link?

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X Original Android Development] qu4nd:
just fastboot flash the boot.img included in the factory image.
[Nexus 5X Original Android Development] joetheshmo:
https://developers.google.com/android/nexus/images#bullhead
[Nexus 5X Original Android Development] fire7777777:
Yes but is all the factory images, how can i flash only the kernel?

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X Original Android Development] joetheshmo:
Extract boot.IMG and fastboot flash it while booted into the bootloader (hold down power and volume down)
[Nexus 5X Original Android Development] qu4nd:
well...
[Nexus 5X Original Android Development] joetheshmo:
http://xdaforums.com/nexus-5x/general/guides-how-to-guides-beginners-t3206930

Follow step 9 or 10 but only flash boot.img

DO NOT lock your bootloader.
[Nexus 5X Original Android Development] fire7777777:
For the kernel only i flash boot.img? Or also system.img?

Inviato dal mio Nexus 5X utilizzando Tapatalk

---------- Post added at 08:33 PM ---------- Previous post was at 08:32 PM ----------

Explain me, because i doni know the right procedure

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X Original Android Development] joetheshmo:
Only fastboot flash the boot.img, which is the kernel.
[Nexus 5X Original Android Development] fire7777777:
Thanks, much thanks :)

Inviato dal mio Nexus 5X utilizzando Tapatalk

---------- Post added at 08:36 PM ---------- Previous post was at 08:35 PM ----------

If i want flash when the new factory images exit , i flash system.img and boot.rom for the new rom and the kernel right?

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X Original Android Development] joetheshmo:
Yep that's right. Follow step 9 of Heisenberg's guide I linked for updating software every month on stock, although you may not want to flash boot.img if you're on elementalx

Also, here's a guide made by flar2 http://elementalx.org/how-to-install-android-monthly-security-updates/
[Nexus 5X Original Android Development] qwerty123321:
Is there a way to set touchboost off by default ?I'm using GhostPepper settings. I have ex kernel manager however it resets touchboost to ON every time upon rebooting the phone..
[Nexus 5X Original Android Development] joetheshmo:
Are you switching touchboost off and then hitting the power button toggle next to it so it turns blue?
[Nexus 5X Original Android Development] fire7777777:
Very thanks for you helping :)

Inviato dal mio Nexus 5X utilizzando Tapatalk
[Nexus 5X Original Android Development] qwerty123321:
Oh is that what the blue power button is for ? To keep it on start ? Silly me
[Nexus 5X Original Android Development] joetheshmo:
Yep that will apply any setting you switch on to be applied on boot. Otherwise the setting will return to stock :good:
[Nexus 5X Original Android Development] TheLastSidekick:
Because I have tested this personally, if the question is can you use ElementalX latest with latest PureNexus ROM? Yes. AFAIK, the custom kernel is based on stock AOSP with minimal features added in.
[Nexus 5X Original Android Development] Shyciii:
ElementalX kernel works with Chroma rom?
[Nexus 5X Original Android Development] flar2:
Works with every ROM
[Nexus 5X Original Android Development] granets:
Hello [MENTION=4684315]flar2[/MENTION]

Any plans on implementing EAS patches in your kernel for the N5X?

If anyone wants to read aboyt EAS: http://www.linaro.org/blog/core-dump/energy-aware-scheduling-eas-project/

Also, I am using the latest version of the ElementalX kernel and your app, and I have no voltage control settings available. Is that not supported?
[Nexus 5X Original Android Development] granets:
Links? How is your answer helpful?
[Nexus 5X Original Android Development] SlimSnoopOS:
That said, you can use EAS in beta 1.07 ElementalX. Search for it in this thread.
[Nexus 5X Original Android Development] nathanchance:
Huh? He told you where to find your answer, it is a few pages back.
[Nexus 5X Original Android Development] granets:
Thanks for that. I'll check it out
[Nexus 5X Original Android Development] Komodoketavaran:
Just want to share my experience with this kernel and I can say I am very impressed. I know Fallout is not very heavy for the CPU as you doesn't touch the screen very often.

View attachment 3673768

View attachment 3673769

View attachment 3673770

Gesendet von meinem Nexus 5X mit Tapatalk
[Nexus 5X Original Android Development] mohammed510:
I really want to use this kernel but unfortunately, it doesn't support f2fs ?
[Nexus 5X Original Android Development] flar2:
Why do people convert to f2fs? I find it very difficult to support, as it complicates the installer and the kernel itself needs hundreds of patches and f2fs seems to be updated constantly. I can't see any benefit in converting to f2fs.
[Nexus 5X Original Android Development] RusherDude:
Hey [MENTION=4684315]flar2[/MENTION],

Im finding out that s2w seems to drain more than on n5 :(. I have moved to cycles of 3h30m+ sot on 4g all day to less than 2h00m or 2h30m and this seems the only change in usage.

Also there seems to be a bug where the screen keeps being on even after disabling s2w until you reboot, because the drain keeps going on until reboot, but s2w doesnt work..
[Nexus 5X Original Android Development] mohammed510:
View attachment 3673805

Could you please run the same test?
[Nexus 5X Original Android Development] Berlino:
+1 for f2fs
[Nexus 5X Original Android Development] joetheshmo:
When would any of that benefit real world use? Do you really need that much speed? Why not just disable fsync?