yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Original Android Development] frap129:
Just a question. Im trying to build the AOSP kernel from source, but I keep getting

error: unrecognized command line option '-mgeneral-regs-only'

Im using the latest Linaro arm-eabi 4.9 toolchain, Should I be using aarch64-linux-android?
[Nexus 9 Original Android Development] USBhost:
Tasker does not support 64bit

But to answer your question

Do

cat /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay

Like that
[Nexus 9 Original Android Development] cor_mann:
Rebooted. Still not showing up. Not sure what I did.
[Nexus 9 Original Android Development] USBhost:
Thats so weird

Can you take a picture of it
[Nexus 9 Original Android Development] cor_mann:
So...I was trying to push the button combo for a screenshot and suddenly the stats appeared. It was about 10 min after the reboot. I'll screenshot it if it happens again. Thanks.
[Nexus 9 Original Android Development] cor_mann:
I rebooted again. Screenshot is attached. It seems to just take a while to register the battery stats. Could be normal behavior
[Nexus 9 Original Android Development] USBhost:
O thats normal

Well that happens every so often
[Nexus 9 Original Android Development] cor_mann:
By the way, this thing charges fast with 2.0A enabled. That's one complaint about the N9 you completely fixed.
[Nexus 9 Original Android Development] USBhost:
I know

I love it

also loving the back light control
[Nexus 9 Original Android Development] zanoli99:
Yes I would greatly appreciate that. Thanks.
[Nexus 9 Original Android Development] ericplatham:
32-bit???

So I went from R14 to R15 and the AnTuTu benchmarking app says my processor is 32-bit now. Has anyone else seen this?
[Nexus 9 Original Android Development] USBhost:
Hmm same here

Thats odd

I just removed kernel debugging

And added zram

Why would AnTuTu use debugging to see if the CPU is 64bit?
[Nexus 9 Original Android Development] ericplatham:
No idea... any other applications that see this as 64-bit?
[Nexus 9 Original Android Development] USBhost:
CPU Z sees it as 64bit

well aarch64 which is 64 bit
[Nexus 9 Original Android Development] ericplatham:
Roger that. I see cpu z as 64-bit. Just puzzeled how AnTuTu doesn't recognize this since their last update took care of 64bit processors
[Nexus 9 Original Android Development] USBhost:
I know?
[Nexus 9 Original Android Development] USBhost:
R16 is up

Fixed: that sometimes screen wont turn on right away :: well i think so

More debuging turned off :: lol

Kernel/ramdisk are now LZ4 compressed :: no longer gzip

More: ram +1mb :: 3+ in all including past update
[Nexus 9 Original Android Development] TotallyAnxious:
Where is the ram coming from? This is blasphemy!!!! lol
[Nexus 9 Original Android Development] USBhost:
I dont know either

But i do have an idea

I think because of all the debugging I've been turning off lol
[Nexus 9 Original Android Development] TotallyAnxious:
The extra ram is really making a difference!! Haha honestly I'm not sure how much longer I'll keep this tablet. It was a huge let down.

Oh btw have you switched zram and zcache to lz4? They are lzo by default. I'd check but you're still not on github lol
[Nexus 9 Original Android Development] USBhost:
Yes zram is lz4

Its the same as ElementalX

What wait what

Your giving up your Nexus 9?????
[Nexus 9 Original Android Development] USBhost:
https://github.com/USBhost/FI.d/blob/master/01afterboot#L20

Set that to 1 and you should get awesome battery!

Well better than stock
[Nexus 9 Original Android Development] siraltus:
So why is it set to 0 by default?
[Nexus 9 Original Android Development] tyvar1:
curious about that to :D
[Nexus 9 Original Android Development] USBhost:
It was enabled by default

But I decided to have it off

Because it adds Micro lag
[Nexus 9 Original Android Development] tyvar1:
Well i am a performance freak! So it will stay off on my device then ;)
[Nexus 9 Original Android Development] USBhost:
K9.7.3 is up

K9.7.3

-| f2fs: updated

-| LMK improvements

-| FI.d: v24

-| some more optimizations :: testing

-| internal name changed to Denver;Gate

Note's:

LMK will no longer kill syetem ui

im loving the new name makes it look epic!

also guys i will be taking a break from kernel stuff for the rest of this week and half of the next

i blame school! lol but i really do need a break. of course i will still be here to help people if they get problems
[Nexus 9 Original Android Development] dictionary:
Trying to flash both 9.7.2 and 9.7.3 for RemixOS results in a recovery reboot. This is with both the latest recovery by you, and your previous one. Any ideas? As soon as it says mtp enabled, it reboots recovery without flashing anything
[Nexus 9 Original Android Development] USBhost:
Can you get a logcat of recovery?

It should be in /cache
[Nexus 9 Original Android Development] dictionary:
Log file is empty.
[Nexus 9 Original Android Development] USBhost:
OK let me get this straight

Recovery boots just fine

But when you try to flash a zip/my kernel it reboots right?

Try to side load the zip

To see if recovery reboots
[Nexus 9 Original Android Development] dictionary:
Resolved.
[Nexus 9 Original Android Development] USBhost:
Make sure the md5 sums mach up

Also does side loading my kernel make a reboot?
[Nexus 9 Original Android Development] dictionary:
That was it. Md5 was off. Strange, because I downloaded from several different browsers, and all came back with the error. Finally just tried Chrome Dev and it worked. Sorry for the false flag lol.
[Nexus 9 Original Android Development] tyvar1:
You deserve a break! Thank you for the great work! :D

Edit: congratulations 2000 posts! :D
[Nexus 9 Original Android Development] tyvar1:
Sorry for interrupting you now when you have a break but I just wondering if you are going to get the Pixel C and if you are going to make this awesome Fire Ice kernel for it? :D
[Nexus 9 Original Android Development] USBhost:
NP man

Chances of me getting it is less than 5%

I don't have $500+ and the < 5% is my parents to buy it for me.

I would love to get it and make FIRE-ICE for it but the funds just dont allow it.
[Nexus 9 Original Android Development] tyvar1:
i see :(

Yeah it is kinda expensive :(
[Nexus 9 Original Android Development] NYCHitman1:
You're also assuming that we'll even see source released for it.
[Nexus 9 Original Android Development] Nikki1993:
It's Google not Samsung. I am sure we will :) ... I hope...
[Nexus 9 Original Android Development] cyraxx84:
But its also N'vidia Tegra, so time will tell. From what i saw untill now this thing looks promising, and guys imagine that X1 in a tablet.... just awesome!
[Nexus 9 Original Android Development] cr0wnest:
Just flashed 9.7.3 and wow is it amazing! No more stutter lags when switching between apps, especially Facebook and Facebook pages. Will need more usage to see how consistent it is but so far its looking very good!
[Nexus 9 Original Android Development] smayonak:
Is there any chance Fire Ice kernel might negatively interact with Always On Google Now?

I just noticed that my tablet doesn't enter Deep Sleep whenever Always On Google now is enabled. The second I disable AOGN, the tablet begins entering Deep Sleep as normal. I'm currently on AICP (build date the 20th September) with Fire Ice 9.7.2.

EDIT: Sorry for wasting everyone's time. It looks like an app was somehow interfering with Always On Google Now. I tried different ROMs and kernels and wiping the Google app cache/data and it had no effect. Strange enough, just uninstalling a random number of apps and then wiping the Google App cache/data fixed the problem.

Thanks again for the great kernel. 9.7.3 is running beautifully.
[Nexus 9 Original Android Development] USBhost:
I can't :eek:

Good. Well then 9.7.4 will knock your kimono off lol

https://github.com/USBhost/FIRE-ICE/commits/9.y

I kinda didn't take a break today lol
[Nexus 9 Original Android Development] USBhost:
NP man good thing you found the problem

"any question that leads to an answer is not wasted time" by me
[Nexus 9 Original Android Development] Diesel779:
Hi, I'm running Dirty Unicorns and it's running great! Would flashing this kernel improve performance and battery life even more?
[Nexus 9 Original Android Development] USBhost:
memory for sure

performance maybe more, I/O will be better!

battery life for sure if you enabled Interactive governor fix.

Note I have not used the DU kernel
[Nexus 9 Original Android Development] Diesel779:
Thanks for your fast reply, USBhost. It's much appreciated.
[Nexus 9 Original Android Development] kurtextrem:
Could someone please tell me the exact restorecon command to execute? :)
[Nexus 9 Original Android Development] USBhost:
root@flounder:/ # restorecon

usage: restorecon [-DFnrRv] pathname...

root@flounder:/ #

So restorecon "wherever you want it"

Note will have to do it in recovery

va adb. I personally ever succeeded in restoring all my se contexts

nor ever needed to. I highly recommend you just do a clean install, it would be a lot easier.
[Nexus 9 Original Android Development] USBhost:
K9.7.4 is up

K9.7.4

2015-10-04

-| Linux 3.10.90

-| some random improvements

-| f2fs: updated

-| LMK: big improvements

-| FI.d: v25

-| latest from google

Note's:

for some reason i cant upload to xda for now

F.Y.I.

LMK works so much better now cheers!!
[Nexus 9 Original Android Development] Diesel779:
Running the latest beta on the official release of Android M. Runs great, thank's USBHost :)
[Nexus 9 Original Android Development] Nikki1993:
[/COLOR]

Just to be sure, is it safe to install latest kernel for Marshmallow 6.0? or wait for an update from you :)
[Nexus 9 Original Android Development] tyvar1:
Android 6.0 release hype!
[Nexus 9 Original Android Development] USBhost:
[MENTION=5033345]Diesel779[/MENTION] said it worked

I personally haven't tried it
[Nexus 9 Original Android Development] hapee:
I am using 9.7.4 on MPA44I and it is working, excellent battery
[Nexus 9 Original Android Development] madbat99:
You can say marshmallow now, lol. "Android m" was for dev preview builds.
[Nexus 9 Original Android Development] Vit Riddare:
You can, but people still call Lolipop LP and ice cream Sandwich ICS
[Nexus 9 Original Android Development] FrankBullitt:
Can confirm.

Installed the factory image replacing the boot.img with a no-force encrypt version, all went fine.

Then booted into fastboot, booted twrp from there (not even needed to flash), pushed your latest beta M kernel, supersu, flashed both, booted back into my device just fine.

I'm rocking a fresh, stock Marshmallow, rooted, unencrypted, "adawayed" (ahah) Nexus 9 with your kernel.
[Nexus 9 Original Android Development] nickefor:
Hello and sorry if this is a dumb question but I got my N9 yesterday and today flashed purenexus rom and fire-ice kernel. Later, after doing some reading I came across the whole SElinux thing.

So if I wanna try a new kernel, elementalx for example, does this mean I will have to factory reset first?

Thank in advance for your answer and also thank you for your work!
[Nexus 9 Original Android Development] USBhost:
yep a factory reset

but if the kernel is permissive you

don't need to format data
[Nexus 9 Original Android Development] nickefor:
Thank you for your immediate answer.

I get some lags after some hours of using and also the apps get quickly closed. For example if I switch to Facebook after some internet browsing, one of the two apps gets killed.

So, do you have any recommended settings for cpu, i/o, zram, lmk etc I can try?
[Nexus 9 Original Android Development] USBhost:
Assuming you're on the latest beta

zram is off by default

so that's why stuff is killed kinda fast

if you want to enable zram

just make a file called override in the root

of sdcard

and put

zram=1

zsize="how big you want it. its in MB"

then reboot

if you want to do other things

Refer to this https://github.com/USBhost/FI.d/blob/master/01afterboot

edit: about the slow downs I think I may no why...

it may be gone in 9.7.5
[Nexus 9 Original Android Development] nickefor:
Thank you, I will try it.
[Nexus 9 Original Android Development] nickefor:
Ok I've set zram and cache swap and swapiness 70. Apps still get quickly killed especially when using chrome.

But as far as it concerns the LMK, why don't the settings in afterboot stick?

I see max is something around 40mb but when I overview LMK in kernel adiutor max is 160mb. Should I disable LMK for better results?
[Nexus 9 Original Android Development] USBhost:
LMK is working just fine for me

when things are being killed so fast

can you do "free" in adb or termenal?

about kernel adiutor if you enabled

zrswap it must naver go up more than 160MB

if you turn off lmk just be vary vary care full

if swap gets all used up things will go vary bad!

-----------------------------------------------------------------
[Nexus 9 Original Android Development] Diesel779:
I know it's frowned upon to ask for ETA'S, but USBhost you seem like an approachable person. So I just wanted to ask if you're working on a new beta for Android M? Thank's for the kernel you've provided so far, it's fantastic.
[Nexus 9 Original Android Development] nickefor:
Ok I have zram set to 150mb and swapiness 70. That's what I get with terminal free and kernel adiutor overview
[Nexus 9 Original Android Development] tyvar1:
seems that he is working on a new update ;)
[Nexus 9 Original Android Development] USBhost:
you bet

you know you can always look at my github to see what im doing.
[Nexus 9 Original Android Development] Diesel779:
I've yet again run out of thank's for the day, but thank you USBhost I'm looking forward to your next update.
[Nexus 9 Original Android Development] USBhost:
K9.7.5

-| f2fs: updated

-| updated to MM

-| FI.d: lagfix test1

R10.T2

-| f2fs: tools updated v1.4.1

-| kernel: updated as to K9.7.5

-| BUG: no boot image :: sorry will fix in the next update lol

Note's:

SELinux is now disabled for Android MM

and it has my custom init cheers!!
[Nexus 9 Original Android Development] tyvar1:
Waited to update to 6.0 until you released a update and now it is here! Time to do a full wipe and enjoy nexus 9 with 6.0 and Fire Ice combo! :D thank you!
[Nexus 9 Original Android Development] USBhost:
6.0 is running awesome, love it

I will be running stock rom for a while
[Nexus 9 Original Android Development] Nikki1993:
I see other kernels needed to modify boot.img to allow rw access to /system. Do we have rw access to system?
[Nexus 9 Original Android Development] USBhost:
you bet full rw on system

but I did nothing for that.
[Nexus 9 Original Android Development] tyvar1:
i am running 6.0 now and have your latest TWRP installed but when i boot into TWRP it says i need password for Data Partition(decrypt) so now i cant flash your kernel/root :/
[Nexus 9 Original Android Development] USBhost:
then your encrypted
[Nexus 9 Original Android Development] tyvar1:
hmm this never happened before to me :( what to do now?
[Nexus 9 Original Android Development] USBhost:
format data

reboot recovery

then you should be good to go.
[Nexus 9 Original Android Development] tyvar1:
thank you so much! worked! :D wow that was a fast support! ;)
[Nexus 9 Original Android Development] USBhost:
How's memory for you guys?

Is LMK killing too much?
[Nexus 9 Original Android Development] macmpi:
[MENTION=5501864]USBhost[/MENTION], it seems one of your changes between latest stable K9.4.8 and K9.7.1 (have not tested with most recent) have introduced the well-knowned MAC address issue encountered with Android M Preview kernels: Wifi MAC addresses are fake, starting by 00:90:4C and changing at reboot.

This is annoying for joining APs that feature MAC address filtering.

Latest stable K9.4.8 stable did show proper MAC address (one of the reason why I switched from Elemental to your kernel).

You may want to check this for future release.
[Nexus 9 Original Android Development] b1g.p0ppa:
Using LMK, not paying attention to mem usage numbers but am not having any issues whatsoever on stock 6.0. In and out of a lot of different programs while setting it all up without incident.

shell@flounder:/ $ uptime
up time: 04:10:26, idle time: 01:10:55, sleep time: 03:29:01
shell@flounder:/ $ free
total used free shared buffers
Mem: 1929920512 1843892224 86028288 0 278528
-/+ buffers/cache: 1843613696 86306816
Swap: 209707008 24305664 185401344
[Nexus 9 Original Android Development] USBhost:
thanks

here's mine

shell@flounder:/ $ uptime
up time: 1 day, 06:15:28, idle time: 09:14:45, sleep time: 23:09:30
shell@flounder:/ $ free
total used free shared buffers
Mem: 1929920512 1120227328 809693184 0 94208
-/+ buffers/cache: 1120133120 809787392
Swap: 209707008 192811008 16896000
shell@flounder:/ $ free -m
total used free shared buffers
Mem: 1840 1067 773 0 0
-/+ buffers/cache: 1067 773
Swap: 199 182 17
shell@flounder:/ $

try the latest
[Nexus 9 Original Android Development] macmpi:
MAC Address issue with latest Beta(s)

I confirm same issue with K9.7.5.

Flipped back & forth between K9.7.5 and K9.4.8, and I confirm only K9.4.8 has proper MAC address.

K9.7.5 has fake 00.90.4C MAC address range that is changing at reboot.
[Nexus 9 Original Android Development] USBhost:
Kk looking into it! ☺

Can you give me a kernel log just after boot

and also where are you getting your MAC address?
[Nexus 9 Original Android Development] macmpi:
Thanks.

Please refer to this (output of dmesg)

K9.4.8: http://pastebin.com/qKQqK1CW

K9.7.5: http://pastebin.com/AzywUhec

You will note the following line in both cases!

<3>Random MAC OUI to be used - da:a1:19

I check MAC address in Settings/About Tablet/Status
[Nexus 9 Original Android Development] USBhost:
I notice that line before

So your Mac is B4:CE:F6:xx:xx:xx

What was your Mac when you where on 9.7.5?

Also make sure you check on

Setting/WiFi/advanced/

to see if its the same on

Settings/About Tablet/Status

Edit: need sleep will work on it tomorrow
[Nexus 9 Original Android Development] macmpi:
on 9.7.5 is is randomized and changes at each reboot, but remains in 00:90:4C range (00:90:4C:0F:8D:5B now).

Same info in Setting/WiFi/advanced/
[Nexus 9 Original Android Development] USBhost:
Stock ROM?
[Nexus 9 Original Android Development] macmpi:
Yes. 5.1.1 LMY48M
[Nexus 9 Original Android Development] USBhost:
If you can try a custom ROM

Pure Nexus is vary close to stock

That's one option.

I never had the random Mac thing

Also I was never on stock Android 5.1.1

I was thinking that it was a ROM bug

But the random Mac thing is rare or at least I only seen three people reported it

Also if you can

Get a logcat of boot until you connected to Wi-Fi.
[Nexus 9 Original Android Development] macmpi:
I need to stay on stock for this device.

Random MAC seemed pretty common with M Preview actually, event with M Preview kernel on 5.1.1

Still strange it works with one of your kernel and not others: must be kernel related (all rest is unchanged).

Can't you check with stock ROM?

Will try logcat.
[Nexus 9 Original Android Development] USBhost:
well not really well at least for my reasons

but thanks :highfive:

I don't want to lose

https://github.com/USBhost/FIRE-ICE/commit/28e272a452b6c4de12363b07bae4d08987ae8e83
[Nexus 9 Original Android Development] zycho42:
IMHO the lmk is pretty aggressive. I run a lot of tasker and it gets killed. I'm still on AOSP 5.1.1. Increasing swappiness and zswap helps?
[Nexus 9 Original Android Development] USBhost:
noted

should be fixed in the next update
[Nexus 9 Original Android Development] USBhost:
what bootloader version are you on?
[Nexus 9 Original Android Development] macmpi:
All is stock, except the kernel.
[Nexus 9 Original Android Development] siraltus:
Confirmed my MAC is also 00:90:4c and changes on reboot. Completely stock LMY48T build.

Most people won't report this because they will never even know the bug is happening. You'll see this bug if you set up your WiFi Router to only allow specific MAC addresses to connect and suddenly it rejects your tablet.

I had no idea this was an issue until I read these posts and checked mine.
[Nexus 9 Original Android Development] USBhost:
can you guys update to the latest bootloader

the new bootloader works just fine on 5.1.1
[Nexus 9 Original Android Development] siraltus:
Flashed the Marshmallow bootloader and the MAC address is back to normal now.

Looks like the Marshmallow updates you merged into 9.7.5 need the Marshmallow bootloader even if you're still on Lollipop.
[Nexus 9 Original Android Development] USBhost:
K9.7.6 is up

K9.7.6

-| f2fs: updated

-| LMK: fixed

-| FI.d: updated to v26

-| FIX: otg on android mm

-| FIX: pstore

-| FIX: usb mouse

Notes:

FI.d

every one if you have an override

pls reread the doc of 01afterboot

to know what changed.

you no longer need to set zram to 1

all you need to do now is make zswap more than 0

for it to be enabled. the same with cswap.

example of mine

OC=1
Gfix=1
cswap=100
raid=1
[Nexus 9 Original Android Development] macmpi:
Thanks. Good to know 6.0 Bootloader has now become a new requirement.

Guess I will stick to latest stable version K9.4.8 that does not require newest bootloader, because when I install Marshmallow bootloader, I'm required to wipe my data bcs of encryption!... Not prepared to do that yet.

Reverting to Lollipop bootloader, wipe warning does not come-up. Really strange.
[Nexus 9 Original Android Development] USBhost:
flashing the mm bootloader asks for a format?

how are you flashing it.
[Nexus 9 Original Android Development] macmpi:
fastboot flash bootloader bootloader-flounder-3.48.0.0135.img

At restart the tablet asks for the password, and proposes to wipe all data (even if password is correct).
[Nexus 9 Original Android Development] tyvar1:
If I only looking for performance and don't care about battery life how should I set up then?

Thank you for the update! :D
[Nexus 9 Original Android Development] USBhost:
o that's what you meant

I was always unencrypted so that never affected me

performance in what

memory

or just plain old speed
[Nexus 9 Original Android Development] tyvar1:
Everything! Haha (Performance hunter)
[Nexus 9 Original Android Development] USBhost:
OC=1

cswap=100

raid=1

then set the CPU gov to performance

overall you will get good memory and speed
[Nexus 9 Original Android Development] tyvar1:
Thank you! :D i only use my tablet at home so I don't need good battery life, that's why I just go for full performance :)
[Nexus 9 Original Android Development] USBhost:
K9.7.6r2 is up

K9.7.6r2

-| enabled multi window for MM

Notes;

you dont have to edit the build prop

to enable multi window for Android Marshmallow anymore
[Nexus 9 Original Android Development] tyvar1:
No way man! Thanks! :D
[Nexus 9 Original Android Development] b1g.p0ppa:
Please excuse the OT question, but how/where do you enable multi window? I'm not seeing it in Developer Options after flashing K9.7.6r2.
[Nexus 9 Original Android Development] USBhost:
its in recents

you should see a box on every tile

tap on that

and your golden
[Nexus 9 Original Android Development] b1g.p0ppa:
I watched a video on that feature so I know what box you're talking about but I didn't see it in my Recents until I appended persist.sys.debug.multi_window=true to build.prop, rebooted and now I do see the buttons.

I don't see a r2 in my Kernel version in About. Should I? I did verify the md5sum of the AOSPM K9.7.6r2 .zip I downloaded off the render server.
[Nexus 9 Original Android Development] USBhost:
yep you should see the r2 in Kernel version

no need i never changed the boot.img lol

i re-uploaded it sorry guys now it should work
[Nexus 9 Original Android Development] b1g.p0ppa:
Yep. All good without the build.prop line.

Thanks!
[Nexus 9 Original Android Development] richardddd:
I still have trouble with freezes. Seems like when unused for a while and returning from "doze" the device completely freezes. A hard reboot fixes till problem temporary :'(
[Nexus 9 Original Android Development] USBhost:
i think its one of my optimizations flags

i redid them so hopefully its fixed now. ;)

9.7.7 or 10