yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Original Android Development] Tung_meister:
I've recently flashed the kernel but I'm getting major slow down on euphoria os. The tablet is constantly hanging and being generally sluggish in general, its taken me several mins to type this its that bad and Spotify streaming in the background is stuttering and pausing every few seconds, anyone any ideas?
[Nexus 9 Original Android Development] siraltus:
Wanted to report that 9.5.4 works flawlessly on the new LMY48I build on the LTE variant.
[Nexus 9 Original Android Development] USBhost:
can you do this in adb

free

and

dmesg

when its sluggish
[Nexus 9 Original Android Development] joeyddr:
I get it also time to time i'll post here the results when i do.
[Nexus 9 Original Android Development] joeyddr:
here they are.
[Nexus 9 Original Android Development] joeyddr:
Anything obvious?
[Nexus 9 Original Android Development] USBhost:
you bet

there will be an update tonight

that should fix it.
[Nexus 9 Original Android Development] joeyddr:
Thank you kindly
[Nexus 9 Original Android Development] 12paq:
Hey, USb!

Hope your summer is going well.

I have been having problems running any FI build after 9.3.x

It's my busy time at work I'm on the road a lot away from the web, so I haven't spent much time on it to see if it was my heavily modded set up or this kernel. I saw the guy post recently that he had similar issues so here ya go.

Issues are, after a while, significant lag, apps starting up slow, and system freezes.

The following logs are during lag and slow app starts. I might have captured a freeze, but normally I have to reboot, but since I am in the field I don't have my PC to pull ADB logs on start up.

http://pastebin.com/XxnwNUTh

http://pastebin.com/W5PGyT6C

http://pastebin.com/0Lk0AN8f

Thanks!

12

Edit: I forgot: the above logs were pulled running your latest beta kernel to date. And a recent version on AICP non saber.
[Nexus 9 Original Android Development] AllanJacques:
Hello guys!

Been testing RemixOS, what do you think?
[Nexus 9 Original Android Development] 12paq:
Well, this is off topic, but Remix is only 5.0.2 and the threads been closed due to lack of sources posted. Other than that it looms cool.
[Nexus 9 Original Android Development] USBhost:
K9.5.5

-| latest from google

-| clean up on building flags

-| FI.d: fix up

-| removed useless cpu govs

Note's:

Ok guys your system freezes and slowdowns

should not happen any more. but do note when you have a lot

of apps in recents you will get some/little slowdowns so clear your recents

and you should be good to go.

I/O governor

ZEN is default now
[Nexus 9 Original Android Development] joeyddr:
I cleared kernel auiditor and installed the kernel but noop was still default. I changed it to zen anyway but what is the default read ahead you set?
[Nexus 9 Original Android Development] USBhost:
i just left it 128

i did made it zen but for some odd reason it keeps going to noop
[Nexus 9 Original Android Development] joeyddr:
Default governor supposed to interactive or elemental?
[Nexus 9 Original Android Development] USBhost:
interactive

but you can set it to elemental
[Nexus 9 Original Android Development] CrimsonKnight13:
M 9.5.5 boot loops to recovery
[Nexus 9 Original Android Development] bruce2662:
Thanks for your quick reply

984MHz is very much like 1GHz...

I don't think 984MHz makes much improvement from stock kernel

ya hoping that you''ll work on it and make a more aggressive overclock if possible.
[Nexus 9 Original Android Development] USBhost:
Ok guys lol

after some research

i found out that KSM is not enabled even when its enabled in the deconfig

In the next update i will fix it

but for now to enable it do this

echo 1 | su -c tee /sys/kernel/mm/ksm/run
[Nexus 9 Original Android Development] JayHall2502:
I just tried this also, didn't work until I did a reboot. Works just fine now.
[Nexus 9 Original Android Development] USBhost:
R14 is up

fixed: ksm but to enable it look in init.d ./test .

did some stuff removing in the deconfig that we don’t need.

More RAM!! but only by 2mb. lol but every little bit counts :) .

removed the cpu boost when using OTG = more battery life

Note: ksm uses cpu power fyi

so maybe less battery?
[Nexus 9 Original Android Development] Alix8821:
Will this work on 5.0.1? Apparently the update is just bug fixes, but with Lollipop being so new & everything, figured I'd ask.... Thanks!
[Nexus 9 Original Android Development] USBhost:
It should work
[Nexus 9 Original Android Development] mystx2112:
Flashed 5.0.1 earlier today and i can confirm that this kernel will work on it.
[Nexus 9 Original Android Development] USBhost:
R15 is up

ZRAM/SWAP added back by user request :angel: :: to enable go look at /system/etc/init.d/test

Kernel is no longer being compiled as debug :: Cheers, finally figured it out :D
[Nexus 9 Original Android Development] jaben2:
I'm guessing we still need to do the terminal scripts for the interactive fix?

Thanks
[Nexus 9 Original Android Development] jaben2:
I haven't been able to copy and paste the scripts. And beings I'm lazy I found ROM toolbox pro allows you to change the values a lot easier. There are probably others as well.

Thanks
[Nexus 9 Original Android Development] cor_mann:
Thanks for adding zram as a selectable option. Now I can test whether zram makes things worse or actually helps by keeping the RAM out of critical memory state.
[Nexus 9 Original Android Development] zanoli99:
Thanks for the tip. I haven't been able to install it and keep getting 505 install error. I tried sideloading and did some searches and seems to be problem. Your using jrummy correct. You have any tips on installing it. Thanks
[Nexus 9 Original Android Development] kyleco:
Same here. I tried using ROM Toolbox from JRummy and could not install. SManager works really well though. I can upload my OnBoot script if anyone is interested. I use this for the interactive fix and the CPU\GPU OC.
[Nexus 9 Original Android Development] WhammyDroid:
[MENTION=5501864]USBhost[/MENTION],

Could you please update your OP? Chrome on the tablet for some reason is not recognizing there is a URL for you to click on. I cannot click on the link to go to the site which has the kernel.

Thanks!
[Nexus 9 Original Android Development] USBhost:
https://s.basketbuild.com/devs/USBhost/Nexus 9/Kernel/FIRE-ICE/
[Nexus 9 Original Android Development] WhammyDroid:
Thanks!
[Nexus 9 Original Android Development] cor_mann:
Battery Stats

Hey USB,

After installing R15, Battery usage in settings reports that "Battery usage data isn't t available." Not sure whether it's related to the kernel.
[Nexus 9 Original Android Development] USBhost:
Hmm

Just fine here

Try a reboot
[Nexus 9 Original Android Development] WhammyDroid:
I am trying to use tasker with the run shell task to run a script. Is there a way to validate the changes took effect?

Has anyone else tried doing this?
[Nexus 9 Original Android Development] USBhost:
Thanks will fix asap

forgot to enable selinux in that one

edit: fixed
[Nexus 9 Original Android Development] CrimsonKnight13:
That fixed it. Thanks!
[Nexus 9 Original Android Development] 12paq:
Oh, wait.

What is the Remix OS kernel in the beta file?

____________________

Edit: Still having slowdowns and freezes on CM9.5.5

Log: http://pastebin.com/SHUZKqd1

Edit: log 2

http://pastebin.com/wfUrfF0t
[Nexus 9 Original Android Development] USBhost:
thanks

well its looks like i won't have the swap file enabled by default anymore.

but you can always enabled it if you want more memory.

in 9.5.6
[Nexus 9 Original Android Development] USBhost:
K9.5.6

-| Linux 3.10.86

-| busybox is no longer needed for FI.d

-| attempt system freeze/slowdown fix

[MENTION=2850740]12paq[/MENTION] do you still get freezes?
[Nexus 9 Original Android Development] 12paq:
Thanks for your work.

Testing now.
[Nexus 9 Original Android Development] 12paq:
Hi USB,

On 9.5.6, the tablet ran nicely and for a longer time, but then after a few hours, heavy lag and then an unresponsive screen. The screen freeze cleared up enough over time to go to terminal and get free and dmesg logs here: http://pastebin.com/hsmMErfr

At the time of the lag I was flipping back and forth from Google Now, YouTube and Boat Browser.

Thanks for all your time and efforts!
[Nexus 9 Original Android Development] USBhost:
can you go to developer options

and enable " show CPU usage "

and when your screen freezes tell me whats on top and the colors you see

edit:

if you see fstrim in the list that would explain your freezes
[Nexus 9 Original Android Development] 12paq:
Will do.
[Nexus 9 Original Android Development] 12paq:
CPU stats during freeze.

It took several hours before it slowed down and froze. Much better then 9.5.5 would run.
[Nexus 9 Original Android Development] USBhost:
K9.5.7r1

K9.5.7r1

-| attempt system freeze fix / try 2 :: [MENTION=2850740]12paq[/MENTION]

-| some makefile optimizations

-| zen I/O gov is now default
[Nexus 9 Original Android Development] 12paq:
Freeze on K9.5.7r1
[Nexus 9 Original Android Development] USBhost:
... .... ..... ...... ....... ........

this is getting frustrating! but o well lol

im basically doing shots in the dark

While hearing sounds of the right direction.

ok can you try this [MENTION=2850740]12paq[/MENTION]

su
swapoff /cache/swap

O thanks for the picture!
[Nexus 9 Original Android Development] 12paq:
No worries here. Troubleshooting is fun.

The kernel runs great, except a few (fewer now) slowdowns and the very occasional freeze.

Edit:

Ran the command, < swapoff /cache/swap > and testing now.
[Nexus 9 Original Android Development] kdoul:
Hello, I am running Android M preview 2 and I get the slowdowns too. I edited FI.d and chose to use the whole cache partition as swap instead of just 100 mb. I also kept the zram/swap "raid 0" thing enabled(total 515 swap). This setup results in occasional slowdowns especially when resuming from deep sleep which is expected because you are using the emmc as ram (and you see mmcqd0 locking the cpu). No freezes though except for an M preview bug which crashes Android and makes the wallpaper flash. The only time it froze for me was when editing the low memory killer and zram settings with the kernel adiutor app. The slightest change made everything extremely slow and laggy before freezing.
[Nexus 9 Original Android Development] USBhost:
did it work
[Nexus 9 Original Android Development] 12paq:
Nope. Slow downs and freezes got worse. Sorry.
[Nexus 9 Original Android Development] USBhost:
try this

add # to echo "18432,23040,27648,32256,36864,41472" > /sys/module/lowmemorykiller/parameters/minfree

in /system/etc/FI.d/01afterboot

example https://github.com/USBhost/FI.d/blob/master/01afterboot#L58
[Nexus 9 Original Android Development] 12paq:
Sorry! Been on the road with work. I'll give it a go in the AM.

Thanks!
[Nexus 9 Original Android Development] USBhost:
np man thanks for testing

did that fix it?
[Nexus 9 Original Android Development] 12paq:
Made the edits and testing now.

On a curious side note, flipping back and forth between your kernel and others, I had noticed a change in display gamma/saturation. So I measured it with a display calibration Pantone "hockey puck" sensor for adjusting display color profiles. Your latest kernels (with M source?) have a 10% increase in gamma. Not a lot but enough to notice with my own photographs that I have developed in Photoshop. A bit nicer in overall display, IMO.

Edit: no slow downs or freezes.

Testing new version below, now.
[Nexus 9 Original Android Development] USBhost:
K9.6

-| Linux 3.10.87

-| bcmdhd: updated

-| latest from google

-| Dropped: ZSWAP

-| FI.d: big improvements

Note's:

documentation for FI.d will come soon

or if you want it know sooner and brave, look here
[Nexus 9 Original Android Development] 12paq:
Ah, in K9.6 you changed the read ahead to 768kb. Is that to make up for no zswap? Just curious.
[Nexus 9 Original Android Development] USBhost:
zswap never seemed to work so no its not making up for it.

768 seemd to work best with zen
[Nexus 9 Original Android Development] _ASSASSIN_:
Just wondering, is it possible to get BFS back in this kernel?
[Nexus 9 Original Android Development] USBhost:
BFS made WiFi problems if I remembered correctly

That's why I Left it

I can add it back if you really wanted it
[Nexus 9 Original Android Development] b1g.p0ppa:
Installed K9.6 on my brand new flounder today (over top of pure aosp rom). Super smooth! Thank you so much for sharing!

I'm using Kernel Audiutor to tweak. Am I missing anything with it? E.g. GPU o/c is not available in KA but I did read on an earlier page that it was enabled by default so I'm good.

Also, is there any downside to using USB fast charge? I mean, why wouldn't you want to?
[Nexus 9 Original Android Development] _ASSASSIN_:
If it doesn't cause any conflicts I would love it as it would better make use the fact that our device has a very recent Linux kernelvs others
[Nexus 9 Original Android Development] dictionary:
BFS sucks for my devices, so hopefully there are two versions.
[Nexus 9 Original Android Development] kdoul:
According to FI.d, setting oc to 1 puts cpu to 2.5 ghz and disables gpu cap state (but doesnt set gpu to a specific frequency). Maybe with a profiling app you can see if it reaches 984 mhz or w/e the uncapped state is. More edit: copy paste this in the terminal emulator as root and check the gpu freq after:

echo 984000000 > /sys/kernel/tegra_gpu/gpu_cap_rate

Usb fast charge increases the current your device can take which should theoretically increase its temperature and cause instability (or burn it, especially if it uses cheap/bad components). Nexus 9 can totally handle the high current. It was disabled because google doesnt care enough to enable it? Maybe there is some other reason I dont know.

Now I want to ask:

Is M preview 3 supported ? Edit: tried and bootlooped

Can we change how thermal throttling works? Stock starts reducing the frequency at 50 degrees which is very early IMO
[Nexus 9 Original Android Development] b1g.p0ppa:
I was able to increase the gpu cap and it persisted across a reboot:

root@flounder:/ # cat /sys/kernel/tegra_gpu/gpu_cap_rate
852000000
root@flounder:/ # echo 984000000 > /sys/kernel/tegra_gpu/gpu_cap_rate
root@flounder:/ # cat /sys/kernel/tegra_gpu/gpu_cap_rate
984000000
root@flounder:/ # sync;reboot
shell@flounder:/ $ su
root@flounder:/ # cat /sys/kernel/tegra_gpu/gpu_cap_rate
984000000
[Nexus 9 Original Android Development] smayonak:
Undervolting?

Hello, thanks again for your great work!

I noticed a Nexus 9 undervolting thread over at OverClockers.net:

http://www.overclock.net/t/1566797/guide-howto-undervolt-your-nexus-9

More or less, it appears that the N9 doesn't take much effort to undervolt.
[Nexus 9 Original Android Development] USBhost:
re-upload

re-upload of all K9.6 variants

fixed a bug with FI.d about mounting cache on other than ext4 file systems

fixed booting on M/Android 6

sorry guys i completely missed that FI.d bug

so you guys who want f2fs cache should be happy now :angel:

my summer vacation is done

back home but now im moving to another house

so... i'll be a little scarce you know moving/school and all.

hopefully i will get back to my normal schedule in a month or so.

didnt know they had a guide on it from overclock.net

im running -150 on cpu just fine
[Nexus 9 Original Android Development] smayonak:
Looks like you got a higher binned model. Very nice!

Somewhere between -50 and -100 appears to be a relative sweet spot for undervolting for even lower binned chips. On the GPU side, I'm not sure.

Is there any chance of getting a kernel with a default undervolt on both the CPU and GPU?

Good luck on the coming semester!
[Nexus 9 Original Android Development] kdoul:
I have been trying to overclock the gpu to 984mhz but it doesn't seem to work at all.

At boot, gpu_cap_state is set to 0 and gpu_cap_rate to 984000000 but the actual frequency still stays at 852mhz. After a while cap state sets itself to 1 but setting it to 0 again does nothing.

Running M preview 3.
[Nexus 9 Original Android Development] USBhost:
just enable it in FI.d then reboot

i may just remove that option in the future
[Nexus 9 Original Android Development] kdoul:
Thanks for the really fast response.

I have OC set to 1 already in Fl.d. Should I add another echo to set cap state to 0?
[Nexus 9 Original Android Development] USBhost:
sorry got caught up

cap state should already be 0

with OC enabled in FI.d
[Nexus 9 Original Android Development] kdoul:
Indeed it is. It just seems that with either value for cap state, gpu frequency is always capped at 852mhz.
[Nexus 9 Original Android Development] USBhost:
it will go up with demand

so watching YouTube, scrolling home, chrome etc...

wil not make it go 984
[Nexus 9 Original Android Development] kdoul:
After playing smash hit for a while it did reach 954 briefly before dropping to 852 and then even further (because ****ty hot weather). I tested it earlier but got no more than 852 since it was too hot to go higher (and i thought it was broken).

Uhh... now I feel stupid. Sorry for bothering you with my bs.
[Nexus 9 Original Android Development] USBhost:
np man i love helping

also we all have been there ;)
[Nexus 9 Original Android Development] Nikki1993:
I am still having those random freezes but what's interesting is that my tablet doesn't restart automatically when it freezes, unlike my nexus 6.
[Nexus 9 Original Android Development] USBhost:
i dont get them freezes

what rom are you on
[Nexus 9 Original Android Development] Nikki1993:
Stock. Rooted. 5.1.1 latest from google factory image website.
[Nexus 9 Original Android Development] USBhost:
hmm i wonder if its the ramdisk

i will try using the stock ramdisk in the next update

anyone on none stock ROMs getting random freezes
[Nexus 9 Original Android Development] Nikki1993:
Ready to test :) this freeze problem already ruined 2 hearthstone matches xD
[Nexus 9 Original Android Development] USBhost:
sorry about that lol

i cant right now, moving

and mom dont want me on the computer :crying:

tonight i will
[Nexus 9 Original Android Development] Nikki1993:
Take all the sweet time you need! Your kernel is already best of the best and performs amazing! Some random freezes I can survive and live with :)
[Nexus 9 Original Android Development] USBhost:
K9.6.1

K9.6.1

-| attempt system freeze fix / try 4

-| up-to-date with Mp3 / preview 3

-| init: uses frandom now

-| init: up-to-date to 5.1.1.r13

-| FI.d: some improvements

-| AOSP: ramdisk set up to 5.1.1.r13

Note's:

K9.6.1 is only up for CM and AOSP variants.

[MENTION=4792769]Nikki1993[/MENTION] your up!

init

we now have an custom init

built by me to use frandom everyone cheers!!

but do note only CM and AOSP variants will get it

because i could only build them for 5.1.1 not 6.0.0 or 5.0.2
[Nexus 9 Original Android Development] Nikki1993:
Testing it now.
[Nexus 9 Original Android Development] MTAsaFAN:
Is it safe to use daily ;)? Thanks in advance.
[Nexus 9 Original Android Development] USBhost:
Pretty much

Well it is for me
[Nexus 9 Original Android Development] MTAsaFAN:
Last question, is there an app that u suggest to customize kernel settings? I dont wanna play with terminal, too lazy:p.
[Nexus 9 Original Android Development] USBhost:
Lol

Kernel Adiutor
[Nexus 9 Original Android Development] dark2099:
New update is just for 5.1.1, not M?
[Nexus 9 Original Android Development] USBhost:
yes but don't worry k9.6.2 will be
[Nexus 9 Original Android Development] USBhost:
How's it going?
[Nexus 9 Original Android Development] Nikki1993:
So far, no random reboot noticed. I watched some 9gag and browsed web mostly today but no freeze in sight.

Sent from my Chroma Nexus 6
[Nexus 9 Original Android Development] USBhost:
Fingers crossed :fingers-crossed:
[Nexus 9 Original Android Development] _ASSASSIN_:
never had an issue with the stable build, flashed this one and it made no difference. ;)
[Nexus 9 Original Android Development] USBhost:
K9.6.2 is up for every one

K9.6.2

-| FI.d: updated

-| bcmdhd: updated

-| latest from google

Note's:

REMIX OS got the new init

FI.d

To see what's new look here

How do you think of my definitions in FI.d

do they need more work?

--------------------------------------------------------

[MENTION=4792769]Nikki1993[/MENTION] any update?
[Nexus 9 Original Android Development] Nikki1993:
So far so good no reboots. I played games and watched YouTube. Seems like it's gone. :) the reason why I wasn't responding was that I wanted to test it for 4-5 days just to be sure but for 2 full days right now, no reboots. :)

Sent from my Chroma Nexus 6
[Nexus 9 Original Android Development] zycho42:
bl binary missing?

Hey, thx for the awesome kernel! I noticed my bl binary is missing, now I cant set the backlight. I have a symlink in /system/bin/bl pointing to /sbin/bl, but that file doesn't exist.

Any ideas? I'm on aosp k9.6.2 5.1.1, it's been gone for a few versions now.

Thx again, keep up the good work!
[Nexus 9 Original Android Development] USBhost:
O! Man sorry I completely forgot all about that on AOSP

There will be an update today to fix that ASAP

Thanks for the report

edit: fixed
[Nexus 9 Original Android Development] zycho42:
Fwiw, I've been having quite a few freezes today (on 9.6.2 hotfix), most followed by reboots. This is new for me, up until now most freezes just froze until I forced a power down. On 9.6 freezes were once in a day or two. Chrome is most likely to freeze, but it happens in other apps as well.

Very happy bl is back though! :good:
[Nexus 9 Original Android Development] Nikki1993:
Haven't experienced any freezes since last update. What rom are you running and do you run any other modification aside from kernel, like xposed or sound mod etc?

Sent from my Chroma Nexus 6
[Nexus 9 Original Android Development] zycho42:
I am running stock 5.1.1, only mod is I've disabled a bunch of services from play services to save some battery. I figure that might be the culprit, but figuring out which service is responsible is a real pita...
[Nexus 9 Original Android Development] Nikki1993:
I'd say grab a latest services from apk mirror and don't disable any wakelocks in the app. I haven't had any battery drain with the latest version so try that for now.

Sent from my Chroma Nexus 6
[Nexus 9 Original Android Development] zycho42:
Thx, I'll give it a go!
[Nexus 9 Original Android Development] USBhost:
FREEZES!

Ok. Everyone if you get freezes please do this:

state what ROM your using.

what where you doing when it happened.

can you still use adb at freeze or did it reboot

and if you can still use adb do

free && dmesg

at boot, before FI.d starts / before the led turns on.

cat /sys/module/lowmemorykiller/parameters/minfree

when the freeze happens / after reboot.

cat /sys/fs/pstore/console-ramoops

give me the output of all the commands
[Nexus 9 Original Android Development] RogueSven:
Just got M for my 9. But twrp required password, and i've try anyone i know "default_password", my PIN. Still no decryption. So i cant access data. How you had your device flashed fire-ice kernel?

Try to extract zip file and get image-new.img. Where should i flash it?
[Nexus 9 Original Android Development] lmulli:
I just hit the cancel button then wiped Data (full wipe requiring you to enter Yes) and it disappeared, as did another message informing me that my device had a problem when booting into Preview 3. Also flashed the No-Encrypt boot image that's floating around prior to this kernel. Working fine for me, apart from the odd freeze which I can live with.
[Nexus 9 Original Android Development] RogueSven:
ok, thank you, got it. Flashed the image-new.img to boot partion, after performed a factory reset. And solved the problem with encryption
[Nexus 9 Original Android Development] MTAsaFAN:
[MENTION=5501864]USBhost[/MENTION], dude maybe u could add colour calibration to this kernel? would be aaaawesome.
[Nexus 9 Original Android Development] Nikki1993:
Ok, I think you nailed the freeze issue here. No longer happens, at least in the past week didn't happen even one freeze. Cheers.

Sent from my Chroma Nexus 6