yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Original Android Development] USBhost:
Well setting swappiness 70 if you have swap on cache is a bad idea

Because the ui will start going into swap when at low memory faster and boom you'll get lag.

The LMK doesn't really cause lag unless it kills an app that's Partway in swap.
[Nexus 9 Original Android Development] kdoul:
Swappiness set to 100 and zram to 500mb, most of the time everything is snappy even when pushing the ram with multi window, many chrome tabs, games etc. However, after waking the tablet from a long deep sleep period (5+ hrs) it slows to a crawl before everything freezes.

I have enabled OC, could it be an issue?

Also, changing the amount zram from the kernel adiutor app will cause everything to freeze instantly.

Edit: On the next freeze I will post these
[Nexus 9 Original Android Development] USBhost:
Im assuming that your zram was pretty full

Taking thast into consideration kernel adiutor turns off swap every time you change the size

when turning off swap the system needs to drop or move the memory that's in swap into main memory

That uses a lot of CPU especially when it's zram so that's when you'll get freezes.
[Nexus 9 Original Android Development] albsat:
Strange. I have problems using the latest beta kernel with wpa2 connection to my router, using an asop rom which is pure nexus.
[Nexus 9 Original Android Development] USBhost:
What kind of problems
[Nexus 9 Original Android Development] albsat:
It doesn't connect or even tries to my router. I made a wep ap point from same router and it connects!
[Nexus 9 Original Android Development] USBhost:
Can you give me a log of the failed connection

Just do dmesg in terminal

Then give me the output
[Nexus 9 Original Android Development] albsat:
Here it sir. http://pastebin.com/1CLwb6uR

---------- Post added at 11:25 PM ---------- Previous post was at 11:24 PM ----------

Also an issue I have always with your kernel with I use it very often, is that sound distorts playing online radio such as tunein application. Can you please have a look at this also? Thanks
[Nexus 9 Original Android Development] USBhost:
Will look in the audio issue.

Does your WiFi problems still happen if you reboot your router?

Edit: try this one
[Nexus 9 Original Android Development] albsat:
I tried the new kernel but I couldn't boot. Tried other kernels that used to work but same issue. I installed the rom again and I have yet to try the new kernel. I will let you know today.
[Nexus 9 Original Android Development] USBhost:
OK sorry man what ROM where you using

I thought you were using stock...
[Nexus 9 Original Android Development] albsat:
I am using Asop. The PureNexus rom. No problem.

---------- Post added at 07:49 PM ---------- Previous post was at 07:22 PM ----------

This rom http://xdaforums.com/showthread.php?t=3181160
[Nexus 9 Original Android Development] MTAsaFAN:
I'm using same rom. No problems here.
[Nexus 9 Original Android Development] USBhost:
tested and it boots

so try this one

sorry for the last one

edit: file removed
[Nexus 9 Original Android Development] USBhost:
K9.6.3 is up

K9.6.3

-| fixed: broken optimizations

-| FI.d: updated to v20

-| bcmdhd: updated

-| latest from google

Note's:

optimizations

some of my major optimizations

where never enabled lol because i just for got a " \ "

FI.d

you can now have a override file in /sdcard/.

so if your tired of editing 01afterboot after every update

just make the file and add what you want in it.

make sure its in the root of /sdcard and named "override"

mine looks like this

OC=1
Gfix=1
cswap=1
csize=100
zrswap=1
[Nexus 9 Original Android Development] albsat:
Sorry to say but I still can't connect to my router via wpa2.
[Nexus 9 Original Android Development] USBhost:
Does it still happen when you reboot your router

Because when you sent me the kernel it told me that you had

a conflicting ipv6 address.

Also are you on the latest vendor?
[Nexus 9 Original Android Development] albsat:
Let me report back cause I jumped to another kernel.
[Nexus 9 Original Android Development] USBhost:
So is your wifi working?
[Nexus 9 Original Android Development] albsat:
No sir. I mean it works with wep but not wpa2.
[Nexus 9 Original Android Development] USBhost:
Can you give me a logcat and kernel log

You where using stock ROM right
[Nexus 9 Original Android Development] albsat:
I am using asop rom.

Called pure Nexus.

http://xdaforums.com/showthread.php?t=3181160

Logcat

http://pastebin.com/1JXqgNx0

Kernel log

http://pastebin.com/p5WeUmxq

Please, have a look on streaming from tunein app radio. Thnx
[Nexus 9 Original Android Development] USBhost:
wifi should be fixed

about tunein radio, looking into it

try increasing cpu speed that may help
[Nexus 9 Original Android Development] albsat:
Thanks man. I will try. I just have this issue with your kernel. With stock or elemental, I don't suffer. I am just reporting, not complaining.
[Nexus 9 Original Android Development] USBhost:
K9.6.4 is up

K9.6.4

2015-09-07

-| FI.d: updated to v21

-| bcmdhd updates dropped to fix wifi

-| rebase with Mp3

-| a bunch of other updates
[Nexus 9 Original Android Development] meistertom:
I'm also facing that crappy sound while using TuneIn radio app. Unfortunately, increasing cpu speed didn't help :crying:

Would be great if you could have a look :good:

thx

tom
[Nexus 9 Original Android Development] USBhost:
cheers guys!!! it's fixed

https://github.com/USBhost/FIRE-ICE/commit/0e5b58a575e31a072d15599e1b0c671e5e593889
[Nexus 9 Original Android Development] USBhost:
K9.6.5 is up

K9.6.5

-| FI.d: updated to v22

-| fix: Tunein Radio

-| a LMK fix : swap should work better now

enjoy you guys! and good night lol.

i have been doing kernel stuff all day, im tired :D
[Nexus 9 Original Android Development] meistertom:
Sorry to say but sound still stutters in tunein app. Just upgraded to 9.6.5

If it matters, I'm on latest AICP sabermod rom.
[Nexus 9 Original Android Development] USBhost:
clear your dalvik cache

i dont have stutters

on 9.6.5

edit: did that do it?
[Nexus 9 Original Android Development] meistertom:
Nope, but I guess it must be something at my end. Will report back when I was able to fix that.

thx
[Nexus 9 Original Android Development] USBhost:
Try to reinstall it

Or try to clear out the cache of the app
[Nexus 9 Original Android Development] adwinp:
[MENTION=5501864]USBhost[/MENTION] it seems there's an issue with WIFI setting up a random MAC each time it's initialized (for example after a reboot); it appeared sometime since August 17th.

FYI - I have the latest vendor flashed.
[Nexus 9 Original Android Development] USBhost:
Other people also have that problem on elementalx also

So I think its a m preview kernel bug

So.. No idea how to fix it
[Nexus 9 Original Android Development] USBhost:
News update

O will be away from internet for most of tomorrow

And tonight.

Because Internet is being moved to the new house

Also any one on a CM based ROMs

I uploaded my latest version its 9.6.y

Y stands for upstream.

I dont have time to make it for any other variant

Sorry about that :fingers-crossed:

Enjoy!
[Nexus 9 Original Android Development] tyvar1:
Any reason why gpu max doesn't stick to 984 after reboot? It goes down to 852 :/
[Nexus 9 Original Android Development] USBhost:
welcome back!

https://github.com/USBhost/FI.d/blob/master/01afterboot#L12

https://github.com/USBhost/FI.d/blob/master/01afterboot#L163

i have been meaning to make a doc of FI.d

Procrastinating lol
[Nexus 9 Original Android Development] tyvar1:
Thanks! I took a break on the flashing but now I am back haha ;) and of course the first thing I did was to update to the last version of Fire Ice!

Okey so if I understand right, if cpu oc is 2.5 ghz then GPU oc will aways be max 850 mhz for safety reasons? :)
[Nexus 9 Original Android Development] USBhost:
I don't think I can ever take a break from flashing lol

ORUD you know

Not quite there

If overclocking is disabled

The GPU speed is set to stock

If enabled

The CPU is set to 2.5

The GPU Is already overclocked at boot so it does not need to set it.
[Nexus 9 Original Android Development] Nikki1993:
Just realized I might have the same thing xD I always have this feeling I want to run latest and greatest BUT at the same time I will be running stock Marshmallow once it comes out on both my nexus 6 and 9. I wish there would be a way to have latest and greatest code base from Google like stock AOSP roms :P I see all these ROMs with latest AOSP revision and I am like I NEEEEEEED IT!!!!!

P.S. I would have used custom ROM on my nexus 9 but lack of proper Gapps package or rather lack of 64bit support from TK_Gapps holds me back from flashing custom ROMs on N9.
[Nexus 9 Original Android Development] tyvar1:
Haha well i needed the break ;)

So thats why it goes to 850mhz because I checked the apply on startup? So the only thing I need to do is set cpu to 2.5ghz and then the Gpu automatic oc to 950?

Sorry if I being stupid :(
[Nexus 9 Original Android Development] gravin:
AOSP kernel k9.6.5 .... Bug when the device is switched off. Soluction?????
[Nexus 9 Original Android Development] USBhost:
look no further

http://opengapps.org/ i use those

np

enabling 2.5ghz will not make the gpu go up

one must enable it in 01afterboot OC=1

you can also have an override file in the root of sdcard

"/sdcard/override" just put OC=1 in there and you should be good to go!
[Nexus 9 Original Android Development] USBhost:
...

can you give more info then that!
[Nexus 9 Original Android Development] tyvar1:
aaah okey thank you! :D Any reason why you changed that? Before it worked to just pump up Cpu and Gpu max and it sticked on boot :)
[Nexus 9 Original Android Development] Nikki1993:
Used those, didn't work out quite well. It doesn't get rid of all apps like tk gapps. I might try again and see.
[Nexus 9 Original Android Development] USBhost:
in the old ramdisk 5.1 down, the gpu

was set to stock so there was no need to change it

but in the new randisk

they no longer set the gpu

so i set it back to stock.

i put it in FI.d to make it more universal

but in doing so breaks set at boot options that touch the

gpu. because FI.d sets in one minute after boot

Oh you mean a debloater

i got you now
[Nexus 9 Original Android Development] Nikki1993:
You have one? Care to share?

Sent from my Chroma Nexus 6
[Nexus 9 Original Android Development] USBhost:
i used to

but not anymore sorry

one can always make one :good:
[Nexus 9 Original Android Development] Nikki1993:
Ah no need :) I will be going full stock for at least a month once marshmallow hits.

Sent from my Chroma Nexus 6
[Nexus 9 Original Android Development] USBhost:
reupload of 9.6.y

only for CM and AOSP

this one has something special

can you guess what is it?

dont look at my github ok

Note: it may not boot on encryption

i mean by that is i did not test it on encryption.
[Nexus 9 Original Android Development] gravin:
no turns off device on kernel K9.6.5

try turn off your device (kernel version -K9.6.5)
[Nexus 9 Original Android Development] USBhost:
i can

also im on 9.6.y
[Nexus 9 Original Android Development] cr0wnest:
Same here, device instantly boots up again after a shut down. Running K9.6.5 as well

EDIT: Ok using K9.6.y like you are, now it shuts fine. I'll just stick to this one for now.
[Nexus 9 Original Android Development] USBhost:
K9.7 is up

K9.7

-| Linux 3.10.88

-| F2FS: latest as of linux 4.3.rc1

-| some more optimizations fixes

-| FI.d: some fixes

Note's:

F2FS

we will now have the latest f2fs cheers!!

look how big it is https://github.com/USBhost/FIRE-ICE/commit/008e021ead9ee8a0d90f0b6d606c863722aa483a

just 8,742 additions and 2,689 deletions.

also I/O is a lot better i got about 5-10Mb write speed increase

the people having shut down problems

you should not get them anymore.
[Nexus 9 Original Android Development] b1g.p0ppa:
[MENTION=5501864]USBhost[/MENTION], might you consider rebuilding your TWRP with the new F2FS? That io would be nice for backups/restores...

Thanks so much for sharing your awesome kernel!
[Nexus 9 Original Android Development] USBhost:
will do

thanks for the idea!
[Nexus 9 Original Android Development] cr0wnest:
K9.7 working fine over here, great work as always! Device shuts down fine too. ;) Also I just removed encryption on my tablet so I will continue testing it alongside your kernel, hoping for great results!. :D
[Nexus 9 Original Android Development] Nikki1993:
I feel like a total noobie but how do I flash your TWRP? last time I checked it was some sort of .zip file, so what do I do with it? Flash it on top of normal TWRP?
[Nexus 9 Original Android Development] USBhost:
Yep just flash
[Nexus 9 Original Android Development] macmpi:
Thanks a lot USBhost for this great kernel.

I successfully installed K9.4.8 onto N9 in order to get Ethernet+USB Charging under 5.1.1, and it works great.

It also does not suffer from the random MAC address change that M Preview kernels seem to have.

Would it be possible that a next revision of your kernel includes more recent USBNET drivers for ASIX 88772A/AX88179 based USB/Ethernet adapters ?

http://www.asix.com.tw/download.php?sub=driverdetail&PItemID=131 for the later one.

Indeed it seems current versions may include older driver revisions and throughput is not optimal on my N9.

iperf3 measures from 94Mbps to 155 Mbps respectively, much lower than 5GHz wifi, whereas same adapters on same network conditions with different machines get much better performances.

It might also be a limitation due to USB implementation on the device of course: but checking with newer driver would be nice.

Thanks for any thought.
[Nexus 9 Original Android Development] tyvar1:
How to activated F2FS? I saw an answer before but couldn't find it :(
[Nexus 9 Original Android Development] USBhost:
Sure I will try

If you have data formated to f2fs you should be fine

If not just format data to f2fs
[Nexus 9 Original Android Development] dictionary:
Seems downloads aren't working. 404 errors when clicking download.
[Nexus 9 Original Android Development] USBhost:
hmm its fine here

but heres a mirror

http://renderserver.net/?dir=devs/USBhost
[Nexus 9 Original Android Development] kwheel596:
Same problem with me on the download, mirror works though.
[Nexus 9 Original Android Development] tyvar1:
Thanks :D
[Nexus 9 Original Android Development] USBhost:
K9.7.1 is up

K9.7.1

-| F2FS: update

-| FI.d: updated to v23

-| LZ4 compressed ramdisk

-| some more optimizations see here

-| update: ax88179_178a to v1.14.2

-| restored: lib/string and lib/memcopy

[MENTION=6782965]macmpi[/MENTION] its updated, so test it out
[Nexus 9 Original Android Development] _ASSASSIN_:
Why do you use -Os instead off -o3

There are numerous tests that show o2 and o3 are superior to Os in performance, only difference is Os is smaller.
[Nexus 9 Original Android Development] USBhost:
That's why I did some cherry picking

From O3 because there some stuff in O3

That slows performance
[Nexus 9 Original Android Development] Tung_meister:
[MENTION=5501864]USBhost[/MENTION] the main download link isn't working, could you update the mirror with the latest builds?
[Nexus 9 Original Android Development] USBhost:
Will do

edit: done

sorry guys for the inconvenience

looks like i will be uploading to renderserver first, then basketbuild.

basketbuild works just fine for me so odd.
[Nexus 9 Original Android Development] HaiKaiDo:
Based on what im seeing in the OP this kernel does some things differently. Am i reading correctly that you have to change brightness by Android Terminal Emulator App? Is this is the only way you can do it?
[Nexus 9 Original Android Development] USBhost:
Sorry for not getting back to you sooner

You can do it va adb too
[Nexus 9 Original Android Development] macmpi:
Thanks, that was quick!

It seems bandwidth remains stuck around 155Mbs with ax88179 (Gigabit/USB3)

Did not check with 88772A (10/100MBs-USB2), as I do not think you made change for that one.

http://www.asix.com.tw/download.php?sub=driverdetail&PItemID=86

Maybe the limitation is due to OTG/USB interface...

Thanks.
[Nexus 9 Original Android Development] USBhost:
Yeah Its most likely the USB interface

after all we don't have a USB 3 connection on our tablet

You mean charging via OTG cable?
[Nexus 9 Original Android Development] macmpi:
Sorry, bad editing of my message: OTG USB+Ethernet charging still fine with latest K9.7.1
[Nexus 9 Original Android Development] USBhost:
O OK don't scare me lol
[Nexus 9 Original Android Development] macmpi:
Right.

Still, 155Mbit/s is well below USB 2's reasonable 280 Mbit/s (theoritical max 480 Mbit/s): I guess we can't ask too much from theses tablets....

Anyhow updated driver seems marginally better, so good to have.

While at it, you may want to update the AX88772 driver too, which is the most widely used on available dongles (but lower performer).

Thanks again for all the great stuff!
[Nexus 9 Original Android Development] Nikki1993:
[MENTION=5501864]USBhost[/MENTION]

Have you had any issues with booting into TWRP lately? After I installed K9.7 AOSP and downloaded a K9.7.1 version today, I tried booting into TWRP and was stuck at boot logo of TWRP. Reflashing TWRP doesn't help but stock recovery works just fine. Do you think there might be a connection?

---------- Post added at 07:57 PM ---------- Previous post was at 07:19 PM ----------

Went ahead and wiped everything:

System

Cache

Boot

Vendor

Recovery

reflashed bootloader and flashed twrp alongside, boot, cache and vendor, still loops at TWRP logo... what in the world has happened...

---------- Post added at 08:02 PM ---------- Previous post was at 07:57 PM ----------

Went ahead and flashed twrp 2.8.6 instead of 2.8.7 and after a while (nearly a minute) it booted into TWRP recovery... flashing twrp 2.8.7 and stuck at logo again... what happened? I swear everything worked just yesterday and I haven't done anything to my system other than flashing custom kernel update from Fire/Ice which has never caused any recovery shenanigans...

---------- Post added at 08:08 PM ---------- Previous post was at 08:02 PM ----------

I have no idea what happened but fastboot -w fixed it. Can now properly boot into twrp 2.8.7.0 which is again weird cause I haven't touched anything regarding TWRP or system files.
[Nexus 9 Original Android Development] USBhost:
OK good its working now

I would have loved to see the recovery log
[Nexus 9 Original Android Development] Nikki1993:
just fixed it by running fastboot -w... no idea what happened but next time I will pull the recovery log in case it comes up again.

---------- Post added at 08:14 PM ---------- Previous post was at 08:09 PM ----------

On a side note [MENTION=5501864]USBhost[/MENTION] ,if you are ok with offtopic that is, 2 questions. Since I wiped my user data anyway, what kind custom ROM are you using if any? and if I format data and system to F2FS will I be able to get OTAs for stock rom or ext4 is mandatory?

Cheers for all your support!
[Nexus 9 Original Android Development] USBhost:
You will need to keep system ext4 for OTA also I don't think f2fs system will boot

I would keep cache as ext4 because f2fs for some odd reason

Uses about 100MB so keep cache as ext4

If you did fastboot -w format data back to f2fs just to be safe

if you want f2fs data

I'm using PureNexus its vary good

Try it out. I left AICP because of anti-piracy stuff.
[Nexus 9 Original Android Development] ericplatham:
Since I am having the same problem (TWRP freezes)... how can I assist? May need a little instruction since I'm just a tad noobish.... :)
[Nexus 9 Original Android Development] USBhost:
The twrp thing?
[Nexus 9 Original Android Development] ericplatham:
yup
[Nexus 9 Original Android Development] USBhost:
do you have a adb

on your computer?
[Nexus 9 Original Android Development] ericplatham:
Yes... was watching a video on getting a logcat, which I tried. However, when it reboots and get stuck on the TWRP logo, the logcat just stalls
[Nexus 9 Original Android Development] USBhost:
there's no logcat for recovery

do

adb shell cat /tmp/recovery.log
[Nexus 9 Original Android Development] ericplatham:
So this is what happened for me.

C:\Users\lathae\Desktop\adb>adb shell cat /tmp/recovery.log

/system/bin/sh: cat: /tmp/recovery.log: No such file or directory

I figured that I needed to create the .log, so I did this:

C:\Users\lathae\Desktop\adb>adb shell cat > recovery.log

I opened up the recovery.log, and it has nothing.
[Nexus 9 Original Android Development] USBhost:
ok then this

adb reboot recovery

adb shell

mount

cd tmp

ls # do you see anything

cat * # if you do
[Nexus 9 Original Android Development] narffran:
[MENTION=5501864]USBhost[/MENTION], am I correct in assuming that this can be flashed over ElementalX without issues or should I return to stock first?
[Nexus 9 Original Android Development] USBhost:
yep your good
[Nexus 9 Original Android Development] siraltus:
Nexus 9 LTE variant here, flashing 9.7.0 also broke TWRP (it bootloops) for me. I am on vacation away from a PC so cannot pull logs. Back on 9.4.8 for now thanks to Flashify, but my TWRP is hosed. Reflashing TWRP did not help.
[Nexus 9 Original Android Development] USBhost:
looks like im pulling 9.7.1

for now. i will be updating the recovery's kernel in hopes

that will fix it
[Nexus 9 Original Android Development] ericplatham:
Took your directions to PM USBHost. Let me know if you want to continue (I know time is precious).
[Nexus 9 Original Android Development] Nikki1993:
Hopefully, waiting for a new juicy update then :D
[Nexus 9 Original Android Development] b1g.p0ppa:
[MENTION=5501864]USBhost[/MENTION], I also experienced the TWRP issue. Can confirm that mkfs.f2fs /data (the actual device path to /data though, with TWRP booted and /data and /sdcard unmounted) fixed it. I think it is an F2FS version conflict between the recovery's kernel and the ROM's. Had the same thing happen on my manta a couple of months back. I just think those versions do better the closer they are to each other.
[Nexus 9 Original Android Development] USBhost:
ok guys try this recovery

http://renderserver.net/?dl=f2a0c0601ae48342d898129048a97792

take the .img from the zip and boot it from fastboot

fastboot boot image-new.img
[Nexus 9 Original Android Development] Nikki1993:
So is it a boot image or recovery?

If the latter shouldn't the command

fastboot flash recovery file.img?

Sent from my Chroma Nexus 6
[Nexus 9 Original Android Development] USBhost:
Its recovery but When your booting an .IMG file you don't need to specify what it is

Its faster to boot it
[Nexus 9 Original Android Development] Nikki1993:
[MENTION=5501864]USBhost[/MENTION] on stock ROM btw, Data is already F2FS o_O I just flashed stock ROM again to try few things, then booted into TWRP and it's already in F2FS.
[Nexus 9 Original Android Development] USBhost:
So did the new recovery work?
[Nexus 9 Original Android Development] Nikki1993:
Seems to be fine for now, just rebooted twice and seems to be ok. I do run stock kernel right now (i dunno if there is any relevance to which kernel rom runs on)

Waiting for you to reupload latest beta kernel :D
[Nexus 9 Original Android Development] b1g.p0ppa:
New recovery worked fine for me. Even a repair of my f2fs /data partition ran no prob.
[Nexus 9 Original Android Development] siraltus:
The R10-T1 recovery boots perfectly, thanks!
[Nexus 9 Original Android Development] USBhost:
K9.7.1 is back up

ok every one if twrp does not boot flash

this http://www.renderserver.net/?dl=f2a0c0601ae48342d898129048a97792 just unzip it

you can use https://play.google.com/store/apps/details?id=de.mkrtchyan.recoverytools&hl=en to

flash it (as recovery)
[Nexus 9 Original Android Development] Nikki1993:
Can't download latest kernel from main download or mirror. Fails on both when downloading through my tablet. Using chrome.
[Nexus 9 Original Android Development] USBhost:
Which one do you want? also try to download it again
[Nexus 9 Original Android Development] narffran:
Mirror works fine 404 on both from the main. Just tried it out for ya.
[Nexus 9 Original Android Development] USBhost:
Thanks I wonder why the main one is not working for you guys

Its just fine for me