yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Original Android Development] Nikki1993:
[MENTION=5501864]USBhost[/MENTION]

Would you be so kind to tell me the command again that overclocks CPU/GPU you mentioned a couple of month earlier to me?

---------- Post added at 02:26 PM ---------- Previous post was at 02:25 PM ----------

Nevermind I am blind xD found the damn overlock option in FI.d
[Nexus 9 Original Android Development] RogueSven:
I've tried to set my device dpi to 316 and feel my it's really snappy now. You guys should give it a try.

xdaforums.com/nexus-9/general/guide-little-trick-improvimg-nexus-9-t3224931
[Nexus 9 Original Android Development] USBhost:
I always run 300 DPI

but do note this does not change the resolution

It just makes the UI smaller
[Nexus 9 Original Android Development] RogueSven:
Sorry, my bad, i mean ppi, not dpi. We cant change dpi of a device
[Nexus 9 Original Android Development] USBhost:
K9.7.7 is up

K9.7.7

-| f2fs: updated

-| latest from google

-| add: Asynchronous Fsync

-| ramdisk: mount optimizations

-| zram: moved to google's new ones

-| FI.d: v27

Notes:

Mount Optimizations

i added discard to help on garbage cleaning

and for f2fs background_gc=on is now background_gc=sync .

with all that, garbage cleaning will be so much better!

when i mean "garbage cleaning" i mean I/O stays constant.

also boot up time is 5s faster!!

ZRAM

i moved from Linaro's zram back to googles

because Google updated there zram cheers!!!

But do note its not as to date as the linaros ones,

i trust googles updates better than linaros.

i will update zram later so dont worry.
[Nexus 9 Original Android Development] tyvar1:
How do you change your dpi? :)

Also thank you for the update, yeah for faster boot up times!
[Nexus 9 Original Android Development] NicoGa:
By editing build.prop.
[Nexus 9 Original Android Development] USBhost:
https://github.com/USBhost/FI.d/blob/master/01afterboot#L75

if you guys don't want lag when memory gets low

enable Adaptive LMK.

just put AMK=1 in your override file
[Nexus 9 Original Android Development] NicoGa:
Hi USBhost and thanks a lot for your work!

Concerning the various version of your kernel available, what do you mean by AOSPM ?

At the moment I'm on Pure Nexus Project, so from my understanding I should use the AOSP version ? What about if I swith to AICP ?

By the way, concerning AICP, are you aware of a version of this ROM without the "content guard" thing ? which ROM are you using now ?

Thanks again!
[Nexus 9 Original Android Development] USBhost:
AOSPM is for Android 6 and that is based on AOSP

AOSP is for Android 5.1.x and that is based on AOSP

CM is for Android 5.1.x and that is based on CyanogenMod

AICP with out content guard don't know

I'm on Android 6 aka marshmallow
[Nexus 9 Original Android Development] tyvar1:
Thanks man! :)
[Nexus 9 Original Android Development] NicoGa:
You can do that with a text editor, kernel adiutor, or adb ... And some roms have it in option. But you new to restart after a change.

The 9.7.7 update is smooth as butter.
[Nexus 9 Original Android Development] lmulli:
Texdroider from the store
[Nexus 9 Original Android Development] b1g.p0ppa:
If butter was butterier! Kudos. And Thanks.
[Nexus 9 Original Android Development] WhammyDroid:
[MENTION=5501864]USBhost[/MENTION] Is your recovery compatible when running other kernels (say elementalx)?

My thought was yes but wanted to ask prior to flashing it since TWRP for the N9 hasn't been updated in a while.
[Nexus 9 Original Android Development] USBhost:
yes
[Nexus 9 Original Android Development] NicoGa:
Hi USBhost,

I wonder why you set hispeed_freq so high ? 1530 ? Form what I understand anytime I touch the screen frequency is raise at that speed ?! In that sense my surfaceflinger process is just after my screen when considering battery consumption when browsing (am I right tothink t is related ?)

I'm trying 1122mhz at the moment and everything seems smooth!

Also, why a minimum frequency at 500mhz vs 200mhz ? Stability reasons ?

Thanks for your work!
[Nexus 9 Original Android Development] USBhost:
https://github.com/USBhost/FI.d/blob/master/01afterboot#L23

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

I left it default because some people want the best proformance/stock settings

if CPU is lower than 510

the CPU governor will wrap up the speed

which useses more battery than if the user would just leave it at 510
[Nexus 9 Original Android Development] NicoGa:
OK thanks I got it.

THose values are pretty aggressive. I will try but I expect The optimum to be in between.
[Nexus 9 Original Android Development] l7777:
Does LMK=1 also need to be set or are these independent?
[Nexus 9 Original Android Development] USBhost:
LMK=1 will disable lmk / and no its not dependent

I know its the opposite lol I need to fix that
[Nexus 9 Original Android Development] MECK187:
Hi,

does this Kernel auto. UV like ElementalX?

Regards

Gesendet von meinem SM-G925F mit Tapatalk
[Nexus 9 Original Android Development] USBhost:
no

its up to the user to do
[Nexus 9 Original Android Development] WhammyDroid:
[MENTION=5501864]USBhost[/MENTION],

I think there is a bug in the latest version TWRP as well as your version of TWRP. TWRP is unable to decrypt the data partition once on MM. I have had to rebuild my encrypted partition (via factory reset). After setting the password and rebooting the device into recovery, I am unable to decrypt it.

Help please!
[Nexus 9 Original Android Development] USBhost:
that's normal
[Nexus 9 Original Android Development] WhammyDroid:
That's normal? How?
[Nexus 9 Original Android Development] USBhost:
its TWRP's problem not mine

so I can't fix it
[Nexus 9 Original Android Development] NicoGa:
But is twrp still maintained ?

Lately, i have flash it on three different devices (nexus 7 2013, galaxy tab s and nexus 9) and I have had problems with all of them! Andi needed to flash a modified version for all of them!
[Nexus 9 Original Android Development] Nikki1993:
Well it's up to teamwin to update it accordingly. You could try sending an email to them but chances are you won't get a reply. Bets bet is to wait patiently. All android websites will explode when new version will be released.

Sent from my Marshmallow Nexus 9
[Nexus 9 Original Android Development] stonebear:
But you can still decrypt by wiping data can't you? Mine is decrypted, or at least when I go to "security" it seems so.
[Nexus 9 Original Android Development] b1g.p0ppa:
Yes. And I recommend f2fs for data. (welcome to the N9, old N10 buddy!)
[Nexus 9 Original Android Development] stonebear:
Ha, thanks mate! :)

You would use TWRP for that I assume?

I have only had this a short time and not used to it yet, if f2fs is faster I am all for it, it can be a bit laggy though I do like it overall. :)
[Nexus 9 Original Android Development] USBhost:
well f2fs did go a long way

who knows f2fs on the nexus 9 may be a lot faster

then your used to :cowboy:
[Nexus 9 Original Android Development] stonebear:
Thanks, I will try it. :)

And thanks for the kernel too, very nice. :)
[Nexus 9 Original Android Development] ricco333:
Hi have a question, also coming from the N10 (life was easier), I've had the N9 for less than a week, I'm on stock MM no root but I have official TWRP installed, can I just flash your TWRP recovery .zip from within the one I have now?

Thanks

Erik
[Nexus 9 Original Android Development] NicoGa:
Ok for data, but is it a good idea to have the system partition (and all others) in f2fs or keep ext4 ?
[Nexus 9 Original Android Development] USBhost:
I know... the good old days lol (nexus 7 2012)

yep you can just flash the zip one

data only and or cache

not system
[Nexus 9 Original Android Development] NicoGa:
Ah ok thanks! and what happens if I did it ?

(oh yes the good old days of nexus 7 2012 ... still have it, and still working :)
[Nexus 9 Original Android Development] dictionary:
I hate my 2012 lol. I just leave it in a drawer. After a full wipe it flies, but after time it always slows. I've done all the wipes, conversions, reboots etc.
[Nexus 9 Original Android Development] NicoGa:
Maybe because f2fs is mostly better for writing and /system is read-only ?

Anyway, I fully wiped my device (to get rid of encryption) and formated all partitions to f2fs (based on your second version of TWRP) before flashing the Pure Nexus Projet ROM and your kernel, but the app diskinfo is saying that all my partitions are stiill in ext4!

Don't get it, well would be welcome!
[Nexus 9 Original Android Development] USBhost:
Note flashing my kernel will format cache to ext4

Also did you manually format data to f2fs?

Also flashing a ROM may format system to ext4
[Nexus 9 Original Android Development] NicoGa:
Yes manually.

OK thanks for the info. I will search in that direction.
[Nexus 9 Original Android Development] USBhost:
Don't format system to f2fs

Because it will bootloop

Also if you can give me the recovery log

If data stays ext4
[Nexus 9 Original Android Development] NicoGa:
Here is my recovery.log :

http://dl.dropboxusercontent.com/1/view/5dcfpwm113pdm4v/dump/recovery.log

(Just rebooted to recovery and saved log to SD, without doing nothing else, is that what you wanted)

To summaries what I did before :

- I formated all partition in the first place in f2fs manually in twrp (I remember that my data partition was already in f2fs, while all others were in ext4)

- flash pure nexus project rom

- flash gapps

- flash your kernel

After formatting, twrp was indicating that all my partition were f2fs. There are now in ext4.

I have to check if it is cause by the rom flashing.

If anyone use this rom here, it would be very kind if you could tell us what is the file system of your data partition (the app diskinfo do that for you)
[Nexus 9 Original Android Development] USBhost:
try this

after you flashed everything

format data to ext4 the one you have to type yes

then format data back to f2fs

then reboot recovery

check to see if data is f2fs

if it is then reboot

if data is still ext4 give me the kernel log

adb shell dmesg
[Nexus 9 Original Android Development] NicoGa:
Ok thanks a lot!

I will only have time to do all that tomorrow after work. I let you know.
[Nexus 9 Original Android Development] USBhost:
K9.8 is up

K9.8

-| f2fs: updated

-| Linux: 3.10.91

-| FI.d: v28

Note's:

im testing something with zram

so if you guys can test it out to see if its any better that would be awesome :good:

also im aiming for k10 to be stable release :fingers-crossed:
[Nexus 9 Original Android Development] Nikki1993:
Any reason why you enabled LMK? or is it part of the zram testing :D

P.S. if only you had nexus 6 to support :D your kernel is brilliant! and you are one of the few devs who is actually friendly and helpful. Rarity on xda. Thanks a lot for all the effort you put!
[Nexus 9 Original Android Development] USBhost:
thanks! :o that would be cool

LMK="low memory killer" was always enabled

I just reverse it to make it easier to understand.

come to think of it I should make it. a yes or no option

I really should work on the definition for that option lol

also its a little misleading.
[Nexus 9 Original Android Development] Nikki1993:
Perhaps. As I was under the impression it was disabled. You know 0 is off and 1 is on. :D
[Nexus 9 Original Android Development] USBhost:
Yep :cowboy:
[Nexus 9 Original Android Development] stonebear:
I haven't updated to the latest version yet, or done the f2fs thing yet - but wanted to report back that the last two days since flashing the kernel - the tablet has felt much faster and the battery life is better too. Thanks again USBhost. :)
[Nexus 9 Original Android Development] madbat99:
Twrp team is hard at work on the issues. You just have to be patient. Google made some serious changes that are effecting everything.
[Nexus 9 Original Android Development] stonebear:
USBhost says it can cause bootloops too. I was just going to convert the data partition, what do other people do, convert cache and boot too?
[Nexus 9 Original Android Development] b1g.p0ppa:
I'd recommend /data for sure and cache is optional. Would steer clear of any others. Most ROMs will format /system as ext4 when you install them anyways. Plus, ext4 is slightly faster for reads and /system is read-only.
[Nexus 9 Original Android Development] stonebear:
Thanks man :)
[Nexus 9 Original Android Development] NicoGa:
Thanks for this new version!

Is it me or it is overclocked to 2.5ghz by default ?

Just to let you know, I tried the full interactive "fix" values with previous kernel. But I was getting notable lags after few hours of use. Not 100% sure it was fully caused by that.. So I switch back to original values but set high-speed_freq to 1020mhz and everything was nice.

So I'm back to the same settings.
[Nexus 9 Original Android Development] USBhost:
nop its not 2.5ghz by default

the full interactive fix works just fine for me or I just got used to it lol
[Nexus 9 Original Android Development] NicoGa:
OK, it also happend two kernel version ago!

By notable lag I mean that I sometimes had to wait a few second for actions that are usually instantaneous. I will try again. With the fix how much sot do you get ?

Concerning zram, how much memory do you use ?
[Nexus 9 Original Android Development] USBhost:
I only use 100 for zram and 100 swap file
[Nexus 9 Original Android Development] NicoGa:
OK thanks
[Nexus 9 Original Android Development] USBhost:
R10.T3 is up

R10.T3

-| kernel: updated as to K9.8.0

-| BUGFIX: no boot image

sorry i did not fix it sooner lol
[Nexus 9 Original Android Development] rhai:
I am on CM 12.1 10/25/2015 nightly.

Flashed the stable CM-K9_4_8-.zip

Clear cache and dalvik and rebooted. Sadly, I lost root. Any fix on this?

Thanks!
[Nexus 9 Original Android Development] USBhost:
Is root and adb enabled in developer options?
[Nexus 9 Original Android Development] Nikki1993:
[MENTION=5501864]USBhost[/MENTION]

offtopic, any thoughts on this http://xdaforums.com/nexus-6/general/root-t3231211 seems like, if things work out, there won't be any need to disable selinux, which alone seems like a great plus.
[Nexus 9 Original Android Development] b1g.p0ppa:
I vote to go for it. Chainfire earned my trust over time as he constantly contributed to the community. Not being familiar with the new Limited Liability Company he sold SuperSU to means they haven't earned root on my device. It would be nice to have an open alternative.
[Nexus 9 Original Android Development] rhai:
Positively Yes bro. :)

"App and ADB is selected."

Also tried to install supersu but still not working.
[Nexus 9 Original Android Development] USBhost:
can you do "su" in adb or terminal

and give me the output

thanks for the info

but i will still keep se disabled for my reasons
[Nexus 9 Original Android Development] rhai:
Here is all i got

u0_a64@flounder:/ $ su

255|u0_a64@flounder:/ $

I did not get any prompt from privacy guard regarding giving root permissions as well.
[Nexus 9 Original Android Development] USBhost:
something is broken with your su

format system then reinstall your ROM

that should fix it

Remember to do a backup
[Nexus 9 Original Android Development] rhai:
Actually I did that also,

Wipe system, Cache and Dalvik. (did not wipe data)

Reinstalled rom and your kernel. still unable no su.
[Nexus 9 Original Android Development] USBhost:
hmm you where using CM right?

I may have to update the ramdisk
[Nexus 9 Original Android Development] rhai:
yup! CM12.1 nightly 10/25/2015

thanks [MENTION=5501864]USBhost[/MENTION]!
[Nexus 9 Original Android Development] USBhost:
here you go it should be fixed
[Nexus 9 Original Android Development] rhai:
thanks bro. it worked.

last question bro, is this stable or beta release? :)
[Nexus 9 Original Android Development] USBhost:
Beta my stable is way out of date lol
[Nexus 9 Original Android Development] rhai:
lolz! ok :D

I found out that one of my games does not work anymore. "Growtopia" is giving me the application has stopped error. Is there some way to fix that? I already reinstalled the app and still did not work.
[Nexus 9 Original Android Development] USBhost:
hmm same thing here...

logcat is no good

or kernel log

well it looks like I will have a long day tomorrow

:eek:

sorry about that FC
[Nexus 9 Original Android Development] rhai:
No worries bro. I still have HearthStone here with me. :good:
[Nexus 9 Original Android Development] smayonak:
TWRP updated

USBhost: A TWRP image just got released which supports decrypt on the N9.

http://xdaforums.com/nexus-9/orig-development/recovery-twrp-2-8-2-0-touch-recovery-t2944788/page34

Just wanted to spread word, in case you have time to release an updated TWRP. Although you probably already heard about it. Thanks again for your amazing work!
[Nexus 9 Original Android Development] USBhost:
Hopefully I'll find a fix for that problem soon :fingers-crossed:

Thanks

My new version will be out tomorrow.

Kernel and recovery
[Nexus 9 Original Android Development] USBhost:
R11 and K9.8.1 is up

K9.8.1

-| Linux: 3.10.92

-| attempt/fix: dtw suspend loop

-| FI.d: v29

R11

-| kernel: updated as to K9.8.1

-| TWRP: 2.8.7.1

Note's:

about my attempt/fix

i didn't have much time to test to see if it worked.

if you dont know what this is dont worry its a bug thats in the stock kernel.

from day one

FI.d

everyone if you use /sdcard/override file

pls read what changed.
[Nexus 9 Original Android Development] NicoGa:
Curious to see the impact of the change in swapiness!

I m currently with K9.7.7 with cswap+zram and gfix=1

Everything is usually pretty fast except I have recurent long lags (most often when opening apps from recent but it can happen else where) that sometime crach my device (I know a last_kmsg and co would be nice but I did not manage to get them!)

It is not caused by neither cswap+zram nor gfix=1, I suspect the rom or a conflict somewhere. Also, I still have to wipe user data and data and do a clean format it in f2fs. So, too many douts to draw conclusions. The best is to wipe everything :)

Which ROM are you guys using ?
[Nexus 9 Original Android Development] rhai:
Np bro. Please take your time. I'll just wait patiently.

Btw, thanks for the update. Would you suggest a kernel config for reducing high battery consumption? Hearthstone drains too mich battery. I do not mind if my tablet stutters. I just want long gaming sessions. ?
[Nexus 9 Original Android Development] NicoGa:
For start, you can set gfix = 1, but USBhost may have further recommandations
[Nexus 9 Original Android Development] USBhost:
well im using plane old stock android mm

your lag should be fixed / or reduced a lot.

on K9.8.1. the reason why we had lag when switching to apps

was because when memory fell below ~280MB thats when the kernel has to start reclaiming a lot

and our nexus 9 has broken memory reclaiming (google fix it already).

i will work on that fc when i know that dtw bug is fixed

as what [MENTION=4730947]NicoGa[/MENTION] said set gfix to 1 (gfix=1)
[Nexus 9 Original Android Development] rhai:
Thanks [MENTION=4730947]NicoGa[/MENTION] I also have kernel auditor. Do hou have recommendations on configuring that? I have set conservative governor and reduced minimum and maximum frequencies already.

Or is editing fi.d a better option? I'm into maximum power saving because I do lots of Hearthstone gaming.
[Nexus 9 Original Android Development] NicoGa:
It is up to you to choose the governor you want (http://androidmodguide.blogspot.ca/p/blog-page.html).

Just let us know your outcomes ;) I'm also definitively willing to improve battery life.

What I was suggesting is to use Interactive with gfix = 1 (edit /system/etc/FI.d/01afterboot). Then you can lower maximum frequency too and maybe disable dtw.

I think it is better to edit the text file 01afterboot and reboot. I have caught Kernel Adiutor overclocking my device while not asked (no "set on boot" and I had to erase application data).

I'm now on stock MM and this kernel. I have sorted out my fs format problems. Seems smooth for instance :)

[MENTION=5501864]USBhost[/MENTION] : Would it be possible to add a check on android version (6 vs 5.1.1) before your kernel is flashed ?
[Nexus 9 Original Android Development] USBhost:
Sure but why

Also I would not recommend turning dtw off because of the suspend loop

Of which I am very frustrated about... And trying to fix but with no luck.

If the loop happens it will not stop until you turn on the screen.

I do not know how it got pasted google becuase this is a vary damaging bug...

Let's say if that loop started just as you went to sleep

your n9 would be hot for about 7h, that is not good for the cpu and/or battery.

Note the suspend loop takes about 70% of the cpu
[Nexus 9 Original Android Development] NicoGa:
OK good to know, I had it off and sometimes face trouble at login !!!! Now I understand!

MM seems wonderful my battery life is reduce by half when sleeping! I currently try it with dfix =1 no zswap or cswap yet.
[Nexus 9 Original Android Development] Martin_Devil:
Pls, fix "11-01 22:53:11.215: E/FlounderPowerHAL(642): Error opening /sys/devices/system/cpu/cpufreq/interactive/io_is_busy: Permission denied" and "11-01 22:53:15.404: E/FlounderPowerHAL(642): Error writing to /sys/devices/system/cpu/cpufreq/interactive/boostpulse: No such device"

Thanks
[Nexus 9 Original Android Development] NicoGa:
I do not understand, I do not have a /proc/last_kmsg! (searching because I just had a crash). The device works nicely otherwise.

Should I set debug to Yes (/sys/kernel/debug/debug_enabled ?)
[Nexus 9 Original Android Development] USBhost:
cat /sys/fs/pstore/console-ramoops

What where you doing when it crashed
[Nexus 9 Original Android Development] NicoGa:
Nothing spécial ... Like testing apps that display logcat, dmesg and kast_kmsg!!

I suspect the app OS monitor

Here you have :

https://www.dropbox.com/s/s0a1yxsdfsu4hzj/dump.txt?dl=0
[Nexus 9 Original Android Development] NicoGa:
It happened again :

https://www.dropbox.com/s/bsnii5hxatoxgzj/last_kmsg.20151102T07h25.txt?dl=0
[Nexus 9 Original Android Development] USBhost:
thanks i have been getting something similar

it has something to do with GPU
[Nexus 9 Original Android Development] NicoGa:
To say the least it would be very nice if you could find out what happen!

The device is very fluid otherwise.

Does other users of this kernel experience similar behaviour ? Would be nice if you guys could answer even if it is no!

What can be done to help, would you be interested with logcat and dmesg after I experience those freeze ?

Also, and if it helps, I have notice that this freeze (and some time crash) is often triggered but not necessarily by (but it could be pure coincidence) : quickedit, chrome beta and betterbatterystat (or accessing battery data), also my device does not like OS monitor at all!
[Nexus 9 Original Android Development] b1g.p0ppa:
Nah, bro, not having any crashes. Latest Fire-Ice. I run Chrome stable, Better battery stats, but not OS monitor (not familiar with that). My /sdcard/overrride:

oc=1

gfix=1

fs=0

cswap=100

raid=1
[Nexus 9 Original Android Development] USBhost:
About that. It's the ROMs problem not mine

You only get "boostpulse: No such device" if you change the cpu gov

and about "io_is_busy: Permission denied"

That is odd what ROM are you on?

OS monitor is working just fine for me..
[Nexus 9 Original Android Development] Martin_Devil:
Noobbuildsn 6.0. I enable intelliplug only.
[Nexus 9 Original Android Development] Nikki1993:
I had a freeze once while playing Hearthstone but that happened when I set

OC = 1

when i turned it off, everything is working as expected, in fact, the device hasn't crashed in like a week which is damn impressive. I think you hit the sweet spot [MENTION=5501864]USBhost[/MENTION]
[Nexus 9 Original Android Development] TotallyAnxious:
Whoops haha I totally forgot you based this off elementalx. Sorry for asking something I could have answered myself.

I might. That's why I never ended up finishing a kernel (jumped the gun on making that thread I guess lol), plus now gpe is out for the m8 so I'm busy with that kernel now. My current n9 and the replacement from amazon had lightbleed issues, so I'll probably keep it till the tablets with the new snapdragon chips comes out.