yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Original Android Development] flar2:
With stock kernel? Latest TWRP recovery?

The script could not find files that are supposed to be there, not sure what happened.
[Nexus 9 Original Android Development] Nikki1993:
Stock kernel, TWRP 2.8.4.0 straight from the website.
[Nexus 9 Original Android Development] Nikki1993:
I do not know anything about ramdisk nor how does the script or underlying system works but files in the script are not under /tmp but under / directory. Again, I dunno if this relevant or not but felt like worth mentioning.

see the screenshot
[Nexus 9 Original Android Development] flar2:
The installer extracts them in /tmp to modify them, then packs them up.
[Nexus 9 Original Android Development] Nikki1993:
So anything I can do or try?
[Nexus 9 Original Android Development] flar2:
Reinstall? I'll wait for feedback from others. I'm on my way to work, so can't do anything until tonight. But I installed it on stock several times and it always worked.
[Nexus 9 Original Android Development] Nikki1993:
I dunno what's happening. I did try reinstalling before reporting the issue in the first place, both (express and custom) are failing. BUT BUT if I install previous version everything works just fine and device boots normally.
[Nexus 9 Original Android Development] GhostWr-High-ter:
I updated from 0.09 to 0.10 via ElementalX Kernel App and got a "Please wait!" message several times during the customized install process (CPU clock, governer, sweep2sleep and after the flashing succeeds). That message would just be shown forever unless I tap the screen, it then vanishes (until the next option screen). There seem to be no consequences, though, rebooting the device shows an updated, working kernel.
[Nexus 9 Original Android Development] Nikki1993:
What the... ok [MENTION=4684315]flar2[/MENTION] apparently, upgrading from 0.9 to 0.10 works flawlessly, no issues BUT if I try to install the kernel while having stock kernel installed, it will fail.
[Nexus 9 Original Android Development] Philaphlous:
I believe that's an issue with the latest version of twrp. Prior to me updating it, I never had that issue... Now I do. Just tap or scroll on the screen where they're an option in the installer and it'll stop.

No issues updating to 0.10.
[Nexus 9 Original Android Development] flar2:
I guess I will have to do more testing
[Nexus 9 Original Android Development] smallvan:
Flashed N9-0.10 n decrypted. But didn't boot up. It kept looping at the first google page. It seems the bootloader has difficulty to load the new kernel.

One finding is that during the aroma installation, waiting screens showed up at working frequencies for more than 30 second each before moving to the next screen. Until, usb charging screen, it became normal.

Has flashed back to stock. Nevertheless, many thanks for the information n custom kernel.

Cheers
[Nexus 9 Original Android Development] akaempf:
Installed on Dirty Unicorns and have experienced no issues during install or while using ROM... Thanked for the latest update... I will report if anything comes up...
[Nexus 9 Original Android Development] seanashmore:
Upgraded via the app with 0 issues. Thanks very much for your efforts! Now have elementalX running on both my N5 and N9 and haven't looked back! Cheers.

Just an FYI, I'm running stock 5.0.1.
[Nexus 9 Original Android Development] dragonballz2k:
Upgrading the kernel through the app worked really well. Thanks for the great kernel.
[Nexus 9 Original Android Development] paychex:
installed just fine on custom install for me. maybe it's just placebo but it feels a bit better
[Nexus 9 Original Android Development] flar2:
There was a problem unpacking the stock boot.img. I tested with the stock image, but it was a repacked version, not the untouched original.

The installer is now fixed and I uploaded a new version 0.10 that will install over the stock img.

(give it a few more minutes before trying from the app...still uploading...excruciatingly slow uploads)
[Nexus 9 Original Android Development] SwoRNLeaDejZ:
I would say the USB fast charge is working fine ;)

Getting over 1000 mAh (max was actually 1100 mAh) while charging with stock charger. Love it. Tablet is charging crazy fast.
[Nexus 9 Original Android Development] D-m-x:
Which app is that? Have been looking for a good one.
[Nexus 9 Original Android Development] guyd:
Here's the link.

https://play.google.com/store/apps/details?id=com.gombosdev.ampere
[Nexus 9 Original Android Development] SwoRNLeaDejZ:
Thanks, yeah it's Ampere.. I think it's only compatible with lollipop.. Or lollipop and KitKat.. Can't remember..
[Nexus 9 Original Android Development] guyd:
It says "The app works only on Lollipop (Android 5.0+) devices." in the app description. Which is fine for the Nexus 9 :good:

And thanks for posting the screenshot!
[Nexus 9 Original Android Development] georgios73:
Just used the app and my max peaked at 1550 mAh ! Loving this kernel.
[Nexus 9 Original Android Development] SwoRNLeaDejZ:
My max of 1100 was plugged into a sub par power strip. When I plugged directly into the wall, I topped out at 1440 mAh.. Fantastic ;)
[Nexus 9 Original Android Development] zanoli99:
running great resurrection remix and loving the faster charge. just bought the app which is well done. THanks for the kernel
[Nexus 9 Original Android Development] R3Lax1:
Is constant 1.5A charging with a 2A charger is normal?
[Nexus 9 Original Android Development] SwoRNLeaDejZ:
It can handle 2A, but usually outputs only 500 mAh.
[Nexus 9 Original Android Development] USBhost:
So the device uses about 300ma on idle on 0 brightness

so ~2a - 300 = ~1.7

so not all 2a chargers are the same

in my case I can go up to 1.7a

my idle was 240ma so 1.7 + 240 = 1.94

proximity
[Nexus 9 Original Android Development] ChristianJay:
Hey quick question I went to install the kernel and it just looped at the "Google" screen a few times. Went back into recovery and re-installed the Fire/Ice one and it's back. Is it becasue I'm coming from that kernel that caused it, do I have to flash back to stock then install the Elemental one?
[Nexus 9 Original Android Development] USBhost:
Format cache to ext4
[Nexus 9 Original Android Development] ChristianJay:
I did.

Sorry I'm a bit of a noob. In TWRP I went through the steps to format the cache to ext4, then installed or attempted to install the new kernel. Should I have rebooted after formatting?
[Nexus 9 Original Android Development] USBhost:
OK try this

Install elementalx with the option with selinux set to permissive
[Nexus 9 Original Android Development] Philaphlous:
I know it's not necessarily kernel related but with zram disabled I'm getting around 20% memory free... Anyone else experiencing high mem usage?
[Nexus 9 Original Android Development] L30nh4rt:
unused RAM is bad RAM :) no i didn´t noticed a higher than normal usage of Memory so far.
[Nexus 9 Original Android Development] techiedj:
Any way to disable the new hotplug function? Want to test if its causing video stutter in the TimeWarnerCable live TV app. I suppose I could flash back to an older version, just curious for future purposes.

Edit: Never mind, must have been a random issue, stuttering is gone now. Although I will also mention I have had a couple lockups since this update (first ever), one during a game and the screen went all funky with white lines and horrible audio screech.
[Nexus 9 Original Android Development] rootcid:
I have Lollapalllolulu or whatnot installed, with the fire&ice kernel.

Can i just flash this kernel over it or is there some issue with formatting?
[Nexus 9 Original Android Development] TriadX1:
Did you happen to overclock the GPU?

Sent from my Nexus 9 using magic...
[Nexus 9 Original Android Development] hopbot:
OTG + Charging planned?

hi there, i am looking for a nexus 9 kernel that supports OTG + charging. any plan to add it to this kernel? if not, any idea if its supported by others? thanks!
[Nexus 9 Original Android Development] AllanJacques:
Hello!

After coming from fire-ice k6 I got stuck on a hellish bootloop...

Any ideas why and how to solve this so I can enjoy elementalx?
[Nexus 9 Original Android Development] USBhost:
Did you format cache to ext4
[Nexus 9 Original Android Development] AllanJacques:
Yep, I did and boot animation just goes on and on...
[Nexus 9 Original Android Development] paychex:
The memory leak isn't
[Nexus 9 Original Android Development] Lokke9191:
I dont know why it happens but formatting to ext4 didnt fix the problem for me. I had to fastboot flash the boot and system images. When doing this I lost twrp for some reason. I had to re root and install twrp, flash elementalx, and resetup everything. Blaaa. Im an idiot, and didnt have a backup :)
[Nexus 9 Original Android Development] ChristianJay:
Was it worth it?
[Nexus 9 Original Android Development] Lokke9191:
They are both good kernels, i run elementalx on my n5 and dont plan on changing that. I also like on elementalx how it notifies of updates. But as for battery life and customizations, I cant really tell a difference. Once both are more polished we'll be able to differentiate more.
[Nexus 9 Original Android Development] jerrylzy:
I noticed significant improvement in smoothness after I set the min cpu freq from 204mhz to 510mhz and tegra cpu quiet governor from balanced to userspace. I also found the combination of balanced governor + 204 min freq causes weird sound during music play and sometimes causes uncommon battery drain.
[Nexus 9 Original Android Development] Migamix:
any future for adding a min brightness level like the N5 EX kernel version.. the main gripe I have about the n9 and lollipop is the toylike material design and the uber bright white UI, along with the n9's min brightness setting being 50% or some equivalent setting it feels like... I'd use lux, but it seems to have issues with the n9.

I'm not begging (well yeah, kinda am) but this would be a major bonus for the n9, and could get some people to stop complaining about their light bleed issues.

yes, I have had sunglasses on in bed while using my tablet. its just too damn bright on stock.
[Nexus 9 Original Android Development] fancysocks:
Having issues similar to a previous post. Stock Android with latest TWRP and I get stuck in a bootloop after installing the latest elementalx kernel. Tried it with the app and manually through TWRP.
[Nexus 9 Original Android Development] beats4x:
Is this with or without adaptive brightness enabled? With it enabled I find that the min brightness turns down quite a bit
[Nexus 9 Original Android Development] bfaber:
Exact same situation here..
[Nexus 9 Original Android Development] USBhost:
O OK so its not all to do with my kernel

That's good to know
[Nexus 9 Original Android Development] beats4x:
[MENTION=4684315]flar2[/MENTION], those changes you made to your nexus 6 kernel, removing spin_lock and other things (don't remember it all, I'm no dev), would they apply here? Could they help optimize this kernel as well?
[Nexus 9 Original Android Development] flar2:
I plan to bring that stuff here, just haven't had time. I've been too busy at my day job lately.
[Nexus 9 Original Android Development] beats4x:
No worries dude, job definitely comes first. I was simply curious. Thanks for the info though!
[Nexus 9 Original Android Development] Sayan1987:
If i flash a no encryption boot.img what happens with your kernel? Need to re flash it and so i'll lose the no encryption or what?
[Nexus 9 Original Android Development] Alexandroid99:
Little request here for the next release: Could you please merge the commit that fixed SELinux theme engine compatibility.
[Nexus 9 Original Android Development] sbollero:
I had the same thing happen 3 or 4 times. I've flashed factory image manually each time, root, install TWRP, then attempt to flash Kernal through app or manually and always get a boot loop.
[Nexus 9 Original Android Development] flar2:
Can I get some logs? For me, everything's working fine. And it should be using your existing ramdisk, so theme engine and anything should be working.

Tip: before you install, dirty flash your ROM.
[Nexus 9 Original Android Development] CerB:
I am running this with rastapop, no problems at all, running nice
[Nexus 9 Original Android Development] sbollero:
5.0.1 stock rooted - kernel leads to bootloops at Google logo

I just tried flashing the kernel again as reading multiple posts of this identical problem throughout the thread led me to believe it had to be something on my end. I was stock rooted 5.0.1, current TWRP, cache formatted as ext4. Everything works great at this point. Through either the ElementalX app, or manually via Aroma install or express, the zip takes and the I get a reboot. Google logo loads and sticks for 10 seconds and then the tablet shuts down and reboots to Google logo again initiating a bootloop. Can't reboot into recovery via fastboot. Last night I manually flashed the factory image every time I got the failure in order to reroot and flash TWRP.

I'm not sure how to pull logs with this failure. I just got done dirty flashing factory system, recovery and boot imgs. I know it makes sense for me to give up or go somewhere else but I just bought the app which I installed on N7 and love it. I'd like to figure it out. I'm obviously unrooted now with an encrypted tablet. I seem to remember late last night that after rooting, I attempted to flash the noforceencrypt_boot.img via WugFresh and was also getting a bootloop at TWRP splash screen after the flash.

Anyways, I'm not in a huge hurry so if anyone has any pointers as to where to start first I'd appreciate the help.
[Nexus 9 Original Android Development] flar2:
We need to figure this out, I can't have the install fail on stock setups.

I will test again this week with the stock boot.img.

In the meantime, if you want to try again, do a backup of boot in recovery so you don't have to keep reflashing the factory image. You'll be completely fine by simply restoring the backup of your boot partition. You don't need to reflash system and recovery.

Make sure you have the latest download of version 0.10, there was an earlier one released for a few hours that didn't work.

To get logs:

For aroma installer, just click the save logs option at the end of installation. The log will be found at /sdcard/ElementalX-N9-0.10.zip.log

For express installer, while still in recovery, do this:

adb pull /tmp/recovery.log .

It will copy the recovery log from the tablet to the current directory on your computer.
[Nexus 9 Original Android Development] sbollero:
I think I figured it out but my skill level is - can follow directions and that's about it. Fortunately, when I attempted to turn of encryption via a modified boot.img I also tried a fastboot format userdata (aka factory reset, i think). When doing so I noticed an error regarding f2fs. Does this need to be ext4? I was using USBHost's material-ish TWRP as I found it a few days ago when flashing LiquidSmooth and Fire and Ice kernel. I'm not sure how to get back to ext4 as I tried through stock/current TWRP but when trying fastboot format userdata for a second time the error persisted.

I will keep working but I wanted to put it out there in case others may have used a kernel or ROM that changed data to f2fs. I guess I'm going to wipe completely and flash the factory image one more time to make this idiotproof.

Thanks!
[Nexus 9 Original Android Development] ChristianJay:
The issue seems to be when your coming from a kernel that changes the data to f2fs. It happened to me, and nothing but flashing the factory everything fixed it. I've had no issues installing your kernel.
[Nexus 9 Original Android Development] flar2:
Update!!!

This includes the initial version of the elementalx governor. I will probably be tweaking it some more, so feedback is appreciated. You can mess with the tunables in the ElementalX app.

I've added support for the Wake Gestures app (http://xdaforums.com/android/apps-games/app-wake-gestures-t3030399). This allows you to set custom actions/shortcuts/apps for sweep2wake and doubletap2wake. It's a standalone app, not an xposed module.

Regarding xposed, I've relented and added a permissive option. You need SuperSU to use it. Don't set permissive unless you need to.

I turned off hotplugging, as it didn't seem to help battery and may have affected performance slightly.

I've also removed fastcharge and 2A charging, as there were reports of slow charging.

Download:

ElementalX-N9-0.11

Changes:

-revert fastcharge and 2A charging

-update installer

-selinux permissive option

-add wake gestures support

-disable hotplugging by default

-elementalx governor
[Nexus 9 Original Android Development] USBhost:
So the elementalx governor

Is it like a performance governor?

Because when I tryed it, cpu went full speed
[Nexus 9 Original Android Development] ChristianJay:
Just got this running Dirty Unicorn with the latest version of your kernel, my previous high was 59k, looks like the governor is doing something right.
[Nexus 9 Original Android Development] Gormsen:
Bummed out by the removal of 2A charging, never experienced any issues, neither on OnePlus One or LG charger :)

If it's not too much of a hazzle, could you provide a kernel with 2A charging enabled? :)
[Nexus 9 Original Android Development] D-m-x:
I've experienced this once or twice but had it also on my N7 with Stock Android. I don't think this was the Kernels fault, rather Android 5.0
[Nexus 9 Original Android Development] Dark_Eyes:
how to enabled this feature? that was useful imho :)
[Nexus 9 Original Android Development] D-m-x:
Thanks for the update man, I wonder how this excellent Gov will perform on my N9. Appreciate it!
[Nexus 9 Original Android Development] Nikki1993:
I did notice slow charge from time to time but simple unplug and plug in back helped. This has happened only like 2-3 times within month. Too bad you reverted it, but thanks for other updates :)
[Nexus 9 Original Android Development] Nikki1993:
Dunno if this is intended but I am not touching the screen and both cores top out either at max or at 1836 MHz.
[Nexus 9 Original Android Development] znarf2369:
[MENTION=4684315]flar2[/MENTION]: Installed latest kernel and since it got NTFS read/write support, shouldnt it be possible to use a NTFS hard drive trough USB OTG? Using latest DU (9.1) and your latest kernel, but when I plug in the HD, nothing happens and I cant reach it through Root Explorer for example. Hard drive works with same USB OTG cable on my Find 7 with Omni, so from the hardwareside everything is fine. And usb stick which is formatted in fat32 works on the ROM with your kernel, so there isnt anything wrong with the Nexus 9. What to do in order to get the HD working as I thought the kernel supports it (NTFS)? Just bought the kernel App to search for settings that I could need but didnt found anything related.
[Nexus 9 Original Android Development] flar2:
http://elementalx.org/elementalx-app/
[Nexus 9 Original Android Development] flar2:
The stock kernel is pretty bare bones, i am going to spend a bit of time adding some background stuff needed for development, like /proc/last_kmsg.

I've had a pretty good look and there is a lot of room for improvement in the kernel. It will bwnefit from a custom governor for sure. Im glad i bought this device, it will be fun.

Shocked to see zram, I have some plans to improve that. They should have put 3gigs of RAM in this thing.

I overclocked the gpu the other night also, not a huge performance gain (about 600 points better on antutu 3d), it may not make it to main release, but i will put it in a testing build sometime.

I wonder why they put the min cpu freq at 510? Could be performance or maybe its unstable at lower freqs
[Nexus 9 Original Android Development] pantmunu:
I have scaled it down to 210 and ao far no instabilty at all . And no effect on the performance. Checked it with trickster mod.
[Nexus 9 Original Android Development] Cuzz1369:
This seems wrong to have min and max the same. What am I missing?
[Nexus 9 Original Android Development] pantmunu:
What app is that though ?
[Nexus 9 Original Android Development] Cuzz1369:
Elememtalx app
[Nexus 9 Original Android Development] flar2:
Look on the dashboard to see the real freqency. By default the min setting is not enabled and it shows the max freq. Its not really locked to that freq and there is no need to do anything, just leave it alone unless you have some reason to change it.
[Nexus 9 Original Android Development] Cuzz1369:
OK. Just wanted to make sure it wasn't lo led in at that speed.
[Nexus 9 Original Android Development] StuMcBill:
Looking forward to seeing how this progresses!

On a side note, I installed it and lost the 60fps option in Reckless Racing 3, not sure if it was connected?
[Nexus 9 Original Android Development] MRobbo80:
Joined Google + to become a beta tester, seems link is currently down ?

Sent from my Nexus 9
[Nexus 9 Original Android Development] flar2:
It can take up to a day to show up
[Nexus 9 Original Android Development] MRobbo80:
Okay thanks ☺

For some reason in trickster mod my minimum CPU is 790500, can not decrease for some reason.
[Nexus 9 Original Android Development] frap129:
[MENTION=4684315]flar2[/MENTION] How are you getting the kernel to build? I cant get yours or the stock kernel to build with linaro, sabermod, or the AOSP toolchain. your using aarch64-linux-android correct?
[Nexus 9 Original Android Development] flar2:
export ARCH=arm64
export PATH=$PATH:[path to your toolchain]
export CROSS_COMPILE=[prefix of your toolchain]-
make flounder_defconfig

I'm using the prebuilt Linaro 4.9.2 for aarch64 from the linaro website, and I also built it with the gcc 4.9 toolchain from googlesource. Both had tons of warnings throughout the compilation but run fine.
[Nexus 9 Original Android Development] flar2:
Also for reference:

I just discovered that /proc/last_kmsg is deprecated and now pstore is used.

Here's how we get kernel logs after a crash:

cat /sys/fs/pstore/console-ramoops
[Nexus 9 Original Android Development] jerrylzy:
Cool, nice to see you here! I'll test it as long as I get the device.
[Nexus 9 Original Android Development] GalaxyWhy:
So fast charge just means it charges quicker? And I sif the limit is 1.5A most Qualcomm chipsets can turbo charge up to 3A ?

Also, is it a kernal level thing or a hardware limitation to get Slimport and Miracast to work? Thanks
[Nexus 9 Original Android Development] mkiderek:
Chinese Input FC on both 0.02 and 0.03. When I revert to the patched kernel provided by Chainfire the problem disappear immediately.:confused:
[Nexus 9 Original Android Development] flar2:
Second person to report this. I am completely mystified. No idea how the keyboard is related to the kernel.

There is one thing I will try tomorrow.
[Nexus 9 Original Android Development] USBhost:
+1 there

How can a kernel effect a keyboard
[Nexus 9 Original Android Development] visitor29:
This kernel for wifi or lte or it's does not matter?
[Nexus 9 Original Android Development] Dr. Hurt:
Try stickmount
[Nexus 9 Original Android Development] georgios73:
Thanks for the update but I'm another who had no problems with USB fast charge it actually worked really well and I will miss it.
[Nexus 9 Original Android Development] flar2:
The charging stuff will come back once I've investigated
[Nexus 9 Original Android Development] Freak07:
I do not have any problem on simple aosp with v11 and elementalx gov. Maybe same background process?
[Nexus 9 Original Android Development] sbollero:
I have flashed the factory image over and over, rooted and installed custom recovery via WugFresh tools, created a backup , and then attempted to flash elementalX. Every single time I have done it, the tablet bootloops and I can not figure out why. I guess it proves I shouldn't be messing around with this stuff. Thanks for the feedback.
[Nexus 9 Original Android Development] flar2:
I flashed over the stock boot.img several times to test, it worked every time.

I would like to know what the problem is, can you please send /tmp/recovery log if you use express install or save the logs in Aroma if you use aroma installer?
[Nexus 9 Original Android Development] Philaphlous:
Running great flar! About 2k more in antutu and smooth in Chrome and switching apps, something Lollipop has issues with.

Thanks alot!