yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] bobbarker2:
I was looking at your gift for the experimental Brown and I saw a ton of f2fs commits one in particular I was if it exceeds Max file size the kernel won't panic. Does this have anything to do with our cache partition not being one gigabyte which has prohibited us Nexus 6p users from using f2fs format for all partitions?

---------- Post added at 02:43 AM ---------- Previous post was at 02:43 AM ----------

I only quickly glanced at the code so I could be completely wrong and probably am.
[Nexus 6P Android Development] Phil_AT:
Great!

The EXP 6-12-16 works perfectly on my N6P with Pure Nexus Rom. Great work!

Thanks. :good:
[Nexus 6P Android Development] SixFourSix:
Flashed that 06-12 build and it seems working great. I tried to conduct a little video test before flashing, but I think I did it kinda recklessly and not nearly as long as I should've. But I didn't have time to do more so here it is:

I played one episode's worth of video (Brooklyn Nine-Nine lol) and monitored drain (with my eyes). First episode was 20:08 mins, so I stopped the second one also at 20:08.

First I charged to 65%, put brightness to 100%, and played with Netflix app and full quality. Then I dirty flashed 06-12 build, and remembered that I used Heimdall_v4, so I changed profile accordingly. Then I charged again to 65%. I looked the phone while it was charging, and unplugged the second it hits 65%, both times. Also I cleared cache/dalvik before both times.

On 06-07 it drained 6%.

On 06-12 it did 7%.

Not bad for a freshly flashed kernel. That 1% falls inside error margin in my opinion.

I know this isn't nearly as comprehensive as you guys would want, and it may seem even ridiculous to most of you. And you can't really draw any conclusions based on this. I guess I was kinda bored lol :)

I did this because I read here that test build uses less battery playing video. But maybe the most usage in my situation came from the actual streaming. I will try this again in couple of days, when the kernie has had some time to settle. :)
[Nexus 6P Android Development] buckmarble:
Will you perform the same test on the 6-11 build I posted?
[Nexus 6P Android Development] SixFourSix:
Yes sure man, anything to "repay" for this awesome kernel :)

---------- Post added at 08:10 PM ---------- Previous post was at 08:05 PM ----------

Also, do you recommend clearing EX Kernel Manager app data before switching kernel builds? Or am I OK leaving governor profile as it is? Obviously i am gonna use same profile as now.
[Nexus 6P Android Development] buckmarble:
Leaving it is fine.
[Nexus 6P Android Development] joejoe23:
Tried this kernel and I have the best battery life so far . Using stock setting and I'm getting this. Pretty satisfied with the results.

I'm sure I can hit 6 hours sot . But ima go charge my phone now. Thanks a lot for this kernel!
[Nexus 6P Android Development] bgboii:
Wow I can't even pull 5 hours of sot
[Nexus 6P Android Development] joejoe23:
I'm mostly browsing reddit, Tapatalk, Facebook and YouTube. And I used naptime for aggresive doze as well .Running xtrafactory rom here.
[Nexus 6P Android Development] SixFourSix:
Okay so I dirty flashed 06-11 build and did the same test, 20min 8sec of Netflix (charged to 65% and used Heimdall_v4). It drained 6%, which was same as the others. Identical to 06-07 build.
[Nexus 6P Android Development] bgboii:
That explains. I'm on preview 3.
[Nexus 6P Android Development] Triscuit:
I've been running this kernel for a few days now with stock settings and I'm pretty impressed, been getting around 5-6hrs SOT
[Nexus 6P Android Development] Nasty_z:
Hi, any plans to support N developer preview 4?
[Nexus 6P Android Development] buckmarble:
Yes but the current preview 3 kernel will work just fine.
[Nexus 6P Android Development] SixFourSix:
Anyone tested how's there battery life in DP4 with Elite?
[Nexus 6P Android Development] skeeterbuilt:
Were they any kernel changes between DP3 and DP4?
[Nexus 6P Android Development] buckmarble:
Kernel in op is still dp3 code. Google hasn't pushed dp4 source yet.
[Nexus 6P Android Development] skeeterbuilt:
Oh okay. I didn't realize they were that slow with that. Thanks for the quick reply
[Nexus 6P Android Development] holla420:
Hell yea good to know. I have been checking back here for days to see if there is a dp4 kernel.
[Nexus 6P Android Development] bobbarker2:
So with all the f2fs merges how about we like, work on making our device actually use f2fs? Just need to make the cache partition at least 1Gb and recompile TWRP kernel with f2fs-tools then we can start using f2fs for all partitions.

I've posted about this in the TWRP thread but not many eyeballs there.
[Nexus 6P Android Development] Triscuit:
Unfortunately it's not that easy, if my knowledge is correct, to change the /cache size you would need to reconfigure the entire internal memory to compensate for the new size, which is a huge undertaking.
[Nexus 6P Android Development] ad78:
Im having hotspot disconnection issues.. hiw can i revert back to stock? Im running dev 4
[Nexus 6P Android Development] buckmarble:
Flash the stock mm images
[Nexus 6P Android Development] gborgert:
Elite-exp have Energy Aware Scheduling?
[Nexus 6P Android Development] Hadookie:
Just flashed this. Going to try and see how the battery is with no profiles set. One thing though, what are the stock frequencies supposed to be set to? My minimum on big core defaulted to 644hz I believe. Also, hexacore mode seems to enable itself. Is this correct?
[Nexus 6P Android Development] bobbarker2:
Well I'm not sure either. the 6P is structured with the /data partition followed direction by /cache partition so it wouldnt be a big deal to re-allocate blocks to a different partition when they are right next to each other. But you would not need to reconfigure the entire internal memory, besides which there's stuff like this:

http://xdaforums.com/showpost.php?p=64482777

[MENTION=4544860]osm0sis[/MENTION] made a very nice script that "Dumps the current PIT as a backup (if data is the original size) then produces a modified version, altering cache to the preset length in MB, adding the difference to system". And he even made it a flashable zip. In our case we want to increase cache size, take it from data and not modify system size, so we have even less to do than what he wrote. So it would be a fairly straightforward matter of changing parameters in his nice script and getting rid of some functions we don't need. It was written for the Galaxy Nexus (toro/toroplus), so I'm making the assumption that operations carrier out on that device are applicable to the 6P. Judging by his thread's activity, it seems like it should be - atleast as far as the version of Android is concerned.

And reading through the thread I found this: https://github.com/Lanchon/REPIT a tool that would do exactly what we need. Just need to get the PIT map for angler or make a request to the dev to add support via https://github.com/Lanchon/REPIT/blob/master/device-dump/README.md
[Nexus 6P Android Development] Psych0t1c20:
Holy sheeeeeeet.
[Nexus 6P Android Development] osm0sis:
Might not be quite that easy. The PIT we definitely know how to rewrite is Samsung's, for use with ODIN/Heimdal flashing, or [MENTION=4141005]Lanchon[/MENTION]'s super-cool on-device way to trigger the kernel to reread it (the step I couldn't figure out with my script ;)).

As the 6P is Huawei I'm not sure how things are set up in the mmcblk0 here, worth asking the man himself. I see "HUAWEI Honor 4X Che1-CL20 (cherry)" got added to the device tree though, so I guess there's hope!
[Nexus 6P Android Development] buckmarble:
The commits in the exp are not going to make it into the official release kernel either.
[Nexus 6P Android Development] nathanchance:
Something unstable about them?
[Nexus 6P Android Development] buckmarble:
Battery life not as good and causing some other issues that were reported here in the thread.
[Nexus 6P Android Development] Lanchon:
hi,

REPIT requires a GPT-style partition table (yes, there are some very rare old phones with ms-dos style PT!), a working recent TWRP, and not much else.

the problem are bootloaders that gather partition offsets/lengths from proprietary data structures instead of the standard GPT (think samsung and their PITs) on phones in which you desire to move partitions accessed directly by the bootloaders (such as modem, kernel, recovery, misc, etc).

(for more info on this issue, read this success story:

https://github.com/Lanchon/REPIT/issues/28

)

in your case, /data and /cache are only accessed by the linux kernel, and only though the GPT, so resizing them with REPIT shouldn't be a problem on any phone. (also, i doubt huawei has a proprietary partition data structure anyway; see previous link.)

so yes, REPIT could do what you want and more, and without wiping /data.

but let me back up a bit. REPIT was created mainly to tweak pre-"emulated sdcard" phones with separate /data and /sdcard partitions. i'm weary of repartitioning phones unless truly needed. why do you need a larger /cache for the 6P?

thanks!
[Nexus 6P Android Development] fackamato:
Wondering the same thing.
[Nexus 6P Android Development] buckmarble:
It forces the Abandoned(ab) Codec to switch to high perf mode automatically for high samplerate clips and eliminate extra noise.
[Nexus 6P Android Development] bobbarker2:
[MENTION=3814731]katinatez[/MENTION] said for all partitions to be f2fs formatted, /cache needs to be atleast 1GB in size and the 6P is something like 950mb. He built a TWRP with f2fs support but it could only format 1 partition (internal storage I think?) as f2fs and said the barrier was our /cache partition was too small, it needed to be 1GB. It was a TWRP 2.8 build he made iirc and the f2fs-tools used were a bit out of date so maybe this isn't necessary anymore? In any event katinatez took a good crack at and layed the ground work it but ultimately unsuccessful since data/system/cache couldn't be formatted as f2fs.

I tried to find more info about size requirement for /cache on a f2fs device but couldn't find any info. I do know f2fs uses cache a lot more than other filesystems so it would make sense it needs more space.

It's been an on/off pet project of mine to bring f2fs to the 6P but my time is limited and so is my knowledge in some of the areas (like REPITing) and I haven't been able to find anyone else willing to share info/lend a hand.
[Nexus 6P Android Development] osm0sis:
GN was way less than 1gb cache and we had cache and data (system is pointless since there isn't much/any I/O) as f2fs with no problem.. /cache isn't really used for anything but OTA downloads anymore.
[Nexus 6P Android Development] buckmarble:
The hexacore thing is just thermal shutting down cores. The min freq thing I just found a typo in the init.power.angler.sh that is causing it. The file is in system/bin. The fixed script is attached. Just remove the .txt and replace the one that's there and set permissions and reboot. I will upload a new zip of the kernel with this fixed in it tomorrow. http://cloud.tapatalk.com/s/576a01c09dc93/init.angler.power.sh.txt
[Nexus 6P Android Development] bobbarker2:
In re to the size restrictions you'll have to direct the queries to [MENTION=3814731]katinatez[/MENTION]. That's the only person I've heard that from and haven't seen any other info backing that.

And you're incorrect about /cache not being used for anything but OTAs.. f2fs is a log based filesystem, it heavily uses /cache. And not sure why you think /system doesn't have much IO. It might not be as much in terms of size IO as /data but it used quite heavily. Like.. its system.. its where everything important to the OS resides.
[Nexus 6P Android Development] Lanchon:
ok, got it.

some people go for an all-f2fs setup, including data, cache and system.

this is extremely disingenuous. each partition conversion can only bring complications and incompatibilities down the line. converting system is absolutely useless, because system is read-only and f2fs can only show speed improvements while writing. and converting cache is useless too, as cache is no longer used on recent android versions.

in stock roms, cache is only used for OTAs. who cares if an OTA takes 1 second extra? under the cover, OTAs are made up of very few, very big files. so f2fs provides zero advantage, not even that one second is gained. but problems? yes, you can have them. f2fs is space inefficient and a legit OTA might not fit the cache after the conversion. not to mention that if you converted cache and you still dare to take an OTA, you must be delusional.

in custom roms, cache is only used to hold an open recovery script: one small text file, that's all; again zero advantage in using f2fs.

that said, you dont need to resize cache. f2fs can format partitions as small as 100mb; you just need the right options. in particular, you should use 2 log structures instead of the usual 6; and some other stuff.

but don't! don't convert cache, it makes zero sense! btw, in a 100mb partition you get to use around 20mb for files, max; f2fs is wasteful. if anything, REPIT could be used to *reduce* cache to around 64mb and make /data 1GB larger. but is 1GB worth the nonstandard status? IDK...
[Nexus 6P Android Development] buckmarble:
Official mm build updated in OP. Same as the 6-11 build in the thread but fixed the scripting issues that resolved the min freq problem reported.
[Nexus 6P Android Development] MarcoG::
Krexus and Elite with bluejay v1.1 Profile [emoji51]

Gesendet von meinem Nexus 6P mit Tapatalk
[Nexus 6P Android Development] Lanchon:
[MENTION=1143630]osmosis[/MENTION], [MENTION=5417405]bobbarker2[/MENTION],

so anyway, forget about growing cache, not needed.

but you can shrink it to 64mb to gain ~1GB in /data.

if you think that's important, open a port request on github.
[Nexus 6P Android Development] bobbarker2:
You (and others) seem to have some of misconceptions about how f2fs works. I can see how you could come to the conclusion that "f2fs can only show speed improvements while writing" because in general, tests have shown that f2fs is +/- the same as ext4 for reads.. but there's a lot more to the performance of a filesystem than random/sequential reads/writes. For example, nearly every package in the android system relys on using a sqlite db and f2fs is 2-3 times faster than ext4 when it comes to any db operations.

I encourage you to read this https://www.usenix.org/system/files/conference/fast15/fast15-paper-lee.pdf. It's very dense and technical but it explains exactly how f2fs works, how it differs from other filesystems, advantages/disadvantages of using f2fs and a performance analysis on various environments.

Some snippets from the performance section:

And since you mentioned 2-head logging vs 6-head logging (ext4 vs f2fs), I would draw your attention to section 3.2.3 of the PDF linked above where it evalutes 2/4/6 headed logging file systems. IAnyhow we're in the wrong place for this, I only brought f2fs up because the OP did a bunch of commits to support f2fs filesystems in his kernel, which is cool, but if you can't use f2fs on your device it's pointless. So if you or anyone else would like to continue the discussion we can speak via PM or open a thread if there is enough interest.
[Nexus 6P Android Development] masri1987:
What's krexus? and where do i find bluejay v1.1 i think i'm still using v1 .

For everyone else. any new profiles you liking? I'm still using Bluejay and it's alright

could be better
[Nexus 6P Android Development] bobbarker2:
So I take it you didn't read the PDF.
[Nexus 6P Android Development] buckmarble:
New MM build in OP.

-Added upstream ALSA and MM updates
[Nexus 6P Android Development] MarcoG::
Krexus is a Rom you find it here on Xda,and here you find v1.1

https://docs.google.com/spreadsheets/d/1aBB5LQHsH08q_1_zbsMT4vro-h5P5SdUgzUzgVYU5BQ

Gesendet von meinem Nexus 6P mit Tapatalk
[Nexus 6P Android Development] Pollie81:
Ooh sweet lord! This is the first time i tried this kernel and i flashed it on PN. So far it's really perfect, thank you for this peace of awesome. Let's see how the battery will hold, i haven't changed any parameters so far..
[Nexus 6P Android Development] Paradoxumical:
Speaking about battery life...

This is from the last experimetal build, haven't gotten around to updating.
[Nexus 6P Android Development] rohitchouhan07:
Would you mind sharing your ROM ans kernel setup?
[Nexus 6P Android Development] Paradoxumical:
Resurrection Remix, Elite Kernel (obviously), DarkSpice 7.5, CTTMod.
[Nexus 6P Android Development] joejoe23:
And do you have a screenshot of your standby time ? What do you do with your phone during that 9 hours plus sot ? Looking at your screenshot , I assume you use amoled theme for most of your setup?
[Nexus 6P Android Development] Paradoxumical:
Looks like I deleted that by accident, my phone sleeps like a baby thanks to Power Nap, Amplify and Greenify's aggressive doze.

I was on a cruise, so lots of texting and and heavy Kik usage.

The theme I'm using is Deep Darkness.
[Nexus 6P Android Development] joejoe23:
Ah. Roughly what's your standby time ? More than 12 hours ?
[Nexus 6P Android Development] Paradoxumical:
Yes, about fifteen.
[Nexus 6P Android Development] SixFourSix:
Latest build seems to work even better than before. Currently 30% left with ~5h sot with YouTube, social apps and music, is pretty great in my opinion.

I gotta tweak little core min freq to 460 MHz (from 382) because otherwise Arise causes crackling sounds. And I wanna test how badly it affects drain if I leave it be. Seems like no effect!

Thanks a million again to [MENTION=2967322]buckmarble[/MENTION] you're the man!
[Nexus 6P Android Development] Magoo222:
Thank you so much for this amazing kernel [MENTION=2967322]buckmarble[/MENTION]
[Nexus 6P Android Development] buckmarble:
My pleasure fellas!
[Nexus 6P Android Development] biglo:
Sorry for the lame question but how do you load this profile? I have ex manager and the kernel installed.

What I did was go to tools and user settings and select the profile after change the extension to the exkm but I didn't see anything pop up or say settings load or anything after selecting it.
[Nexus 6P Android Development] Badger50:
EXKM already has most of the profiles loaded. In the app, go to CPU>governor options, hit the load button, chose your profile and done [emoji106]
[Nexus 6P Android Development] biglo:
Thanks
[Nexus 6P Android Development] buckmarble:
I got N preview 4 source merged that Google pushed today and built. Will post in the morning. Been out looking for my dog for 6 hrs so it's been a long night. He ended up showing back up on his own thank goodness.
[Nexus 6P Android Development] igylan:
Glad your dog is safe. :good:
[Nexus 6P Android Development] buckmarble:
N preview 4 kernel posted in OP
[Nexus 6P Android Development] ali nz:
cas some one please tell me what is bash script and exkm profiles?

according to this post http://xdaforums.com/showpost.php?p=67466347&postcount=514
[Nexus 6P Android Development] mshiznitzh:
Can some confirm that USB fast Charge works on this ROM. i can get it to enable. I keep getting a No such file or directory when I run echo 1 > /sys/kernel/fast_charge/force_fast_charge
[Nexus 6P Android Development] dcillusions77:
Which Rom? This is a kernel. And yes it's working.
[Nexus 6P Android Development] buckmarble:
There is no "usb fast charge" option on the 6p like there was on previous nexus devices.
[Nexus 6P Android Development] mshiznitzh:
I see. I was hoping this was the reason my USB C on the my computer would only charge at 500 mA. The port shows to report 1800 mA in Ampere. O well thank you for the reply.
[Nexus 6P Android Development] xsidex:
Whats the deal with the voltage tab in Elemental Kernel Manager? You can't change any values manually and I would like to try out some minor changes myself
[Nexus 6P Android Development] nathanchance:
It's more to see the voltages rather than change them. Voltages on the 810 should not be tampered with as they are dynamic based on load/frequency.
[Nexus 6P Android Development] larryatapproved:
back to stock

Sorry for asking, but the 6p is new to me, and it's a little different from other phones I've had. I have a custom kernel on the phone now, and I want to flash Elite. I had backed up the stock kernel in Flashify. I restored it, booted up, but lost root. I restored the nandroid I made prior to going back to stock, so I'm back on the other custom kernel. Can I restore the stock kernel in Flashify and then flash Elite and maintain root, or do I need to go back to stock and re-root? I had an HTC prior the 6p and it wasn't necessary to go back to the stock kernel to flash another. I'm on the stock rom.
[Nexus 6P Android Development] tcat007:
I generally just dirty flash rom then flash a new kernel.
[Nexus 6P Android Development] larryatapproved:
What do I do if I'm on the stock 6p rom?
[Nexus 6P Android Development] buckmarble:
Restore stock boot IMG, flash root, flash new kernel.
[Nexus 6P Android Development] larryatapproved:
OK, Thank you! I made a nandroid of stock right after I flashed TWRP, can I just restore the boot section from that nandroid? Sorry for all the questions.
[Nexus 6P Android Development] larryatapproved:
Got it flashed. Easier than I had figured. I just hate messing something up and then spending a couple of hours getting back to where I was! Thanks again.
[Nexus 6P Android Development] masri1987:
every 2 days, my kernel settings are lost and i have to reset.

Even on a completely clean flash of rom\kernel and with download ex kernel manager from playstore vs tibu restore

any ideas?
[Nexus 6P Android Development] buckmarble:
Sounds like an app issue that you're using to set the settings.
[Nexus 6P Android Development] DAC.IT:
So basically , just wipe basics and install , im just running stock , will i have to re root or re install recovery , thnks
[Nexus 6P Android Development] anthonyg45157:
How do you show charging rate(1800mah) on lockscreen?
[Nexus 6P Android Development] nathanchance:
It's a custom ROM feature. That appears to be DU but it is also available in RR I think.
[Nexus 6P Android Development] anthonyg45157:
Awesome, thanks for such a quick reply
[Nexus 6P Android Development] dcillusions77:
I'm on RR
[Nexus 6P Android Development] DAC.IT:
where do go to tweak my settings, I havent messed with kernels since my Galaxy Note as in Original G
[Nexus 6P Android Development] nathanchance:
Use an app like Kernel Adiutor or EX Kernel Manager.
[Nexus 6P Android Development] DAC.IT:
Thank you , can you tell me where to look (read about ) more about tweaks to the kernel, if not no worries ill read everything
[Nexus 6P Android Development] Pollie81:
I believe there is a profile topic in general section, you'll probably find a lot of useful information there.

I would suggest no to change to much though, stock settings are so good and you can change a few simple settings to get a little bit more juice. (For instance: lower boost frequency and minimum frequency of big cluster)
[Nexus 6P Android Development] DAC.IT:
Thank you guys so.much , i do trust that the dev made this kernel because he knows whats best to tweak and i plan on keeping those settings intact , i just want to understand better what each setting does, i remember when i used to oc my windows box back in the day for maximum game rigs , i suppose this is similar, but i trust the dev better than my own skill
[Nexus 6P Android Development] masri1987:
I'm using the EX kernel manager :\ i've cleared data and reset everything friday and woke up today checked app, went back to interactive from impulse and all my settings are jacked again
[Nexus 6P Android Development] skeeterbuilt:
new factory images are up
[Nexus 6P Android Development] buckmarble:
Just waiting on kernel source push
[Nexus 6P Android Development] SixFourSix:
This happened to me also. There have been some rather big updates on EXKM, I guess it's because of that.
[Nexus 6P Android Development] buckmarble:
MM kernel updated in OP. Merged July security updates.