yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] bobbarker2:
So I was thinking about the use of zram and zswap on an Android device and I'm a bit puzzled. According to this http://askubuntu.com/questions/471912/zram-vs-zswap-vs-zcache-ultimate-guide-when-to-use-which-one

Zram creates a virtual swap in RAM. It's used when there is no swap present on physical disk. The benefit being it allows pages to be compressed in RAM and stay there instead of writing to physical disk.

Zswap is used for devices that do have a physical swap. Its benefit is compression of pages and less swapping to disk needed.

So to have both seems contradictory. If I look in my /sys/kernel/debug/zswap all the files are 0 - I.e. zswap isn't being used. (It is running but doesn't seem to be doing anything)

Having both features enabled seems contradictory.

Am I missing something here?

I've also had a ton of freezes where the phone becomes unresponsive and then kicks back in and behaves like normal. Wondering if this has something to do with it.
[Nexus 6P Android Development] nathanchance:
I have zswap off by default, did you enable it? /sys/kernel/debug/zswap/stored_pages is currently showing 3283 for me.

I have never had any freezes with either zram or zswap enabled. If you are not a fan of the virtual memory stuff, it is all stuff that can be disabled easily. People say that you will get massive performance gains from it but I have never felt like the phone has slowed down under any conditions.
[Nexus 6P Android Development] bobbarker2:
Yep I know it's disabled by default, perhaps it should be specified somewhere in the OP that only one of the two features should be enabled at one time?

Also it seems like zswap is a better option than zram in terms of gains after doing a lot of reading on it and looking and benchmarks.

But we don't have a swap partition on disk so it can't so anything in it of itself... Or can it use zram as a swap partition? Me is confused.
[Nexus 6P Android Development] nathanchance:
Yes we do, look at the fstab. It's mounted at /dev/block/zram0. Now keep in mind, I have only tested this for a few minutes (been working on actual school work :silly:) but when I disabled zram in EXKM, zswap's pool_total_size goes to zero, even though it stays enabled. Pretty sure that in this instance, zswap relies on zram because they share the same memory allocator, zsmalloc. Not sure, guess I'll dig into it later but that's my initial finding. I also think if they couldn't be run at the same time, my phone would have had issues by this point.
[Nexus 6P Android Development] tzortst:
Updated to 3.8 Today and now my phone won't charge past 92%...

Was previously on 3.6 and not an issue, any ideas would could be the root cause?

Cheers

Reloaded stock kernel, loaded 3.8 and a couple of reboots and seems good again :)
[Nexus 6P Android Development] indian84:
Are you sure you are not using Note7?

On a serious note, what ROM? I'm on PN Midland just unplugged the phone at 100%.
[Nexus 6P Android Development] tzortst:
Haha not a note!

Stock ROM, Magisk v6 + phh-Supersu

Not other mods

Edit: I just loaded stock Boot (NRD90U) , Reapplied 3.6 and phone has now charged past 92%

See above, all good :)
[Nexus 6P Android Development] indian84:
Let me give you a very scientific suggestion. Try to drain your battery by a few %. Reboot your device and then try to charge and see if that helps.
[Nexus 6P Android Development] minhgi:
If you don't have a swap file, then you are not using it even if you have it enable. If it get mount to zram Ramdisk first, it use that first then spill over to swap file.

---------- Post added at 07:12 AM ---------- Previous post was at 07:00 AM ----------

[MENTION=6842057]nathanchance[/MENTION], i can assure that your kernel is working great with zram and zswap enable. They use the use same share memory block, zswap need a swap file / partition to fully use the technology. That was what it intended for.
[Nexus 6P Android Development] LittleConfucy:
Does this kernel support init.d?
[Nexus 6P Android Development] nathanchance:
The kernel does not build an init.d folder. If you have one, it will work fine. Otherwise, I recommend using su.d.
[Nexus 6P Android Development] ariefabuzaky:
Just placing files in su.d folder-set right permission and reboot ?
[Nexus 6P Android Development] nathanchance:
Yup.
[Nexus 6P Android Development] snoprosledneck88:
Thanks for the new MM beta. 1.12 rc1. Keep up the great work sir.
[Nexus 6P Android Development] shadowstep:
I concur. I already had the init.d folder in /etc and I have been using it for running my scripts on boot. Works flawlessly.
[Nexus 6P Android Development] Lord. Tech:
1.11 seems strangely flickery to me, i feel there's this tiny pause every once in a while in my clicking, and the task happening, also SOT time seems down by 30mins but that could be just me lol, as i just tested for 2 days now... previous i used 1.9 and man, that thing is a beast! Thanks for this kernel nathan, its as great n sometimes even more, than my favourite unicornblood kernel on du :good:
[Nexus 6P Android Development] mukesh22584:
Agreed[emoji4]
[Nexus 6P Android Development] leondestiny:
Heya buddies !

first of all, this is an amazing kernel.

i would like to know though whether removing the built in (kronic) kernel auditor that came when i flashed the kernel is safe to remove?

because i would like to use elemental kernel instead, thanks in advance !

(i could stick to the kronic auditor as long as it allows to set the custom cpu profiles, but i have no idea how!) XD
[Nexus 6P Android Development] nathanchance:
Lol the kernel doesn't come with a kernel manager, that's from AOSiP. But yes, you can disable/remove it and use EXKM instead.
[Nexus 6P Android Development] leondestiny:
damn, i didn't know! xD

yes I'm on Aosip! XD haha , got it thanks.
[Nexus 6P Android Development] tcat007:
So far one of my better battery stats, WETA nougat rom, EX manager with Deadpool profile. 6.5 hrs SOT. Magpie theme with some mods. No fc's.
[Nexus 6P Android Development] HikingMoose:
Airplane mode though! I had 6 hrs sot with 10% left, with two days of use with the radio active on my last battery test!
[Nexus 6P Android Development] tcat007:
Yeah, I'm on wifi all day. I turn on data about once a month.
[Nexus 6P Android Development] winxuser:
Even though I still have alot of battery left. Just looking at how much time I have left and my current screen on time, seems like good battery life for me
[Nexus 6P Android Development] n1729m:
Had a first automatic reboot for me.

Kernel 3.9 RC 1

ROM stock Android 7

I have attached the following log from ex Kernel manager.

Logcat https://drive.google.com/file/d/0B6CkS9yIOeyKRzZzcjNYc2c5ZXM/view?usp=drivesdk
[Nexus 6P Android Development] Shockz:
Has anyone had a weird screen bug when using hotplugging? Basically a few times a day when I wake my screen it shows a static white screen for a brief second. I'm disabling hotplugging for today to see if it is the cause.
[Nexus 6P Android Development] Prattham:
Nope
[Nexus 6P Android Development] shadowstep:
Just know that the battery drain isn't linear. In other words, for example, if it initially took 5% battery to give you an SOT of 30 minutes, it doesn't mean you'll get an SOT of 10 hours (30/0.05). :)
[Nexus 6P Android Development] TRgamer:
The fine difference between theory and practice...
[Nexus 6P Android Development] nathanchance:
1. Those are the wrong logs, I need a last kernel log or console-ramoops from /sys/fs/pstore

2. Please keep beta talk confined to PM, there is a reason I seed them out on Telegram only.
[Nexus 6P Android Development] jonathanh221999:
Yes same, but I don't have hotplugging enabled. Did you try to disable it and what effect did it have?
[Nexus 6P Android Development] nathanchance:
What apps does this happen in? I have never had screen issues myself and for that matter, I have not added many (if any) screen commits in later versions of the kernel.
[Nexus 6P Android Development] Shockz:
Didn't get it at all today. What is the status of your msm_thermal and core_control?

---------- Post added at 11:39 PM ---------- Previous post was at 11:34 PM ----------

It's not in a specific app. For example my phone was just laying on my desk with the screen off, when I went to wake the screen I saw a quick static white flash then it showed the normal lockscreen.
[Nexus 6P Android Development] nathanchance:
Which version did this start happening in and what settings do you change?
[Nexus 6P Android Development] Shockz:
I have only used 3.8 on N. When I was getting it, I was using glass fish, with msm_hotplug enabled, msm_thermal enabled, and core_control disabled. Now I don't get the issue and I'm using Deadpool with no hotplugging, msm_thermal disabled, and core_control enabled. I will do some more testing with different settings to try to narrow it down.
[Nexus 6P Android Development] kouss77550:
Actually this white screen problem is also present in stock kernel and stock ROM, when you're CPU isn't "ready" and you wake up your device, there will be a very short "flash"
[Nexus 6P Android Development] jonathanh221999:
Usually shows up either when I get a notification and the screen turns on (ambient display), or when I press the power button the wake my screen. Could it be kernel settings (GlassFish)?

---------- Post added at 08:18 PM ---------- Previous post was at 08:13 PM ----------

msm_thermal disabled; core_control enabled - what are yours at? Hotplugging disabled; interactive governor with GlassFish. It's not that it happens every time, just when my phone is inactive for longer periods.
[Nexus 6P Android Development] Shockz:
I was using glassfish so maybe that was it. Do you use zram/zswap?
[Nexus 6P Android Development] jonathanh221999:
Yeah I might switch governor profile to test, which one did you use last and did you experience the same issue?

Yes zram is enabled, I think that is just the kernel default because I don't recall touching those settings.
[Nexus 6P Android Development] Shockz:
I used Deadpool all day today and didn't see it.
[Nexus 6P Android Development] nathanchance:
Considering I use GlassFish, I doubt that is it.

Additionally, try to get me a dmesg and logcat while it is happening and I'll take a look at it. I can't imagine it just started happening on 3.8.
[Nexus 6P Android Development] bgboii:
Nathanchance my signal has been dropping for awhile now and it's rather annoying. I've already fastboot the latest radio, vendor and bootloader but doesn't seem to make a difference. Would you happen to know what the issue is? I'm on weta rom
[Nexus 6P Android Development] Nekromantik:
Ah good ol RR! Would go back but I'm hooked on substratum.
[Nexus 6P Android Development] nathanchance:
[MENTION=1105829]minhgi[/MENTION] I have successfully added UKSM to the kernel, going to test it for a few days and see how it behaves. Tenatively, deep sleep doesn't seem to be as good but it will take some time to make that determination.
[Nexus 6P Android Development] sandman1234:
whats so good about substratum?

i'm having trouble choosing a rom.. been on chroma for a week now. and franco kernel.

can anyone chime in on what kernel they chaged from to ninja? and how is your experience?

---------- Post added at 03:42 AM ---------- Previous post was at 03:20 AM ----------

i dont have linux i just have win10. does that mean i cannot flash this kernel?
[Nexus 6P Android Development] Asselalf:
You don't need Linux to flash this kernel. You need only a ROM with July or August security patch and TWRP installed. Doesn't matter if CM or AOSP based ROM

Gesendet von meinem Nexus 7 2013 mit Tapatalk
[Nexus 6P Android Development] sandman1234:
gotcha. whats the consensus on this vs franco?
[Nexus 6P Android Development] Prattham:
I have tried the following kernels

Franco

ElementalX

Elite

Kylo was my daily driver

Then went to unofficial ak by [MENTION=6842057]nathanchance[/MENTION]

Then moved to ninja

Haven't looked back since then
[Nexus 6P Android Development] sandman1234:
I'm getting a "there is an internal problem with your android device.please contact your manufacturer .."

Is this normal ?
[Nexus 6P Android Development] Mikulec:
You need to flash vendor image that matches your rom.
[Nexus 6P Android Development] hinxnz:
It's just good and that's it :D

Check out the beginners guide > http://xdaforums.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928

Was on Ex, now I'm on Ninja for a try, why not? It just a flash away..

I'm finding it good, music sounds good using v4a only.

I find standby slightly better, I find it snappier opening apps and quicker scrolling so far.

UKSM is better than KSM I feel but not sure why to add it, it really for low RAM devices, it does help with RAM with the cost of CPU though but hey why not add an extra feature, same goes with ZRAM and not sure why Google added it either but with the stock minfree/adj values, it helps. I change swappiness to 20 though otherwise ZRAM fills up after awhile.
[Nexus 6P Android Development] drbveb88:
It runs Aosip beautifully. Great battery life.
[Nexus 6P Android Development] arcticnights:
Are you on the CMTE or OMS version? Thanks. :)
[Nexus 6P Android Development] Pollie81:
You can better ask what isn't good about substratum.. [emoji12]
[Nexus 6P Android Development] drbveb88:
Storage/elemental/governor profiles.

Then apply it in your EXkernel manager app under governor profiles.

---------- Post added at 04:28 AM ---------- Previous post was at 04:26 AM ----------

I'm running the 8-12, Linaro built CMTE angler version. You have to reboot after unpluuging charger for Deep Sleep to activate. Its been this way since 4.4.

Deep slleeps like crazy afterwards.
[Nexus 6P Android Development] weazie:
I feel that I finally have a smartphone like smartphones should have always been; Thanks to PN and this Ninja kernel. Great battery life, I don't have to worry about battery drain when not using, and usability / fluidity is like a dance. So thank you Nathan, Ak and BeansTown, out there somewhere, for making my phone so great that using a smartphone isn't a headache anymore :angel: haha! I hope to use this phone for years to come.
[Nexus 6P Android Development] drbveb88:
[MENTION=6842057]nathanchance[/MENTION]

Thank you sir for this kernel. It's running amazing!! I just tried your Black Pepper profile recommendation, gonna set up 1.2 next.

I've tried a lot of kernels and this does not disappoint. Everyone give it a run!!
[Nexus 6P Android Development] ariefabuzaky:
[MENTION=6842057]nathanchance[/MENTION] sorry for off topic, your DU build is based substratum,layers or cmte ?

and is compatible with this kernel ?
[Nexus 6P Android Development] JaylanPHNX:
Does I/O scheduler have any effect on music playback, and if so, which one is better suited to that?

I have to 6p.
[Nexus 6P Android Development] kantjer:
it can have an impact. I'm using sioplus with 512kb read ahead.

never had any issues with it.
[Nexus 6P Android Development] kyzn:
Not sure about that. I've only ever used FIOPS and SIOPLUS. I usually have whatever default values they are set to and leave it at that. From my experience tweaking the following affects music playback:

- the custom kernel itself

- governor profile

- CPU profile

- min freq of clock (Big Cluster)

- go_hispeed_load (Little Cluster)
[Nexus 6P Android Development] Toutatis_:
CMTE, and yes you can use this kernel with his DU builds.
[Nexus 6P Android Development] nathanchance:
You can try an earlier radio. Only thing that affects cellular signal is the modem.
[Nexus 6P Android Development] bgboii:
I'll give that a try and see how that goes thanks.
[Nexus 6P Android Development] Prattham:
[MENTION=6842057]nathanchance[/MENTION] seems like it has been a long time you are using glassfish

How is it holding up? :)
[Nexus 6P Android Development] nathanchance:
Fantastically, I don't think I will switch again. Been good on performance and battery life. I have tried out a few other profiles discreetly and I haven't liked anyone as much as this one.
[Nexus 6P Android Development] Dbj.Dhaval:
There are two versions of GlassFish which one are u using 1 or 1.2
[Nexus 6P Android Development] nathanchance:
1.2
[Nexus 6P Android Development] HikingMoose:
I decided to try out glassfish. Should I enable hotplugging, or leave it off?
[Nexus 6P Android Development] nathanchance:
I don't use hotplugging.
[Nexus 6P Android Development] LarryChendragon2099:
Hi, I recently installed the kernel, and it's working really amazingly and everything seems to be pretty cool. Just one note though, I remember that back on Marshmallow with the AK kernel, in the sound control options there were a couple of options concerning the speakers in the device. Namely, there were two sliders for the gains of each channel that went up to about 30dB, and there was a high-performance mode (HPM) option that disabled a lot of the dynamic range compression processing on the internal speaker output as well. Additionally, there was a headset gain slider.

I'm wondering if this would be possible to have on this kernel as well. At the moment I'm not exactly sure exactly how it was implemented in the past kernel, but what I have found is that the Ninja kernel seems to have similar options, but they don't necessarily take effecct in the same way.

Additionally, on an unrelated note I noticed that when the phone first came out there was discussion about a kernel patch upstream by the vendor that disabled Qualcomm Fast Charge support. I'm wondering if there's any way to reverse this patch; I doubt there is anything that prevents it from working on the hardware. As of right now, the device charges fairly slowly on anything other than the supplied wall charger. I have tried directly feeding it 9 volts, but it refuses to take any current. Any possibility of adding this capability? If I remember correctly it was part of the PMC8994 (or whatever the PMIC driver is) driver code.

Thanks!
[Nexus 6P Android Development] bobbarker2:
Just to save other people some work, I've tried just about every radio from 1.29 to the current N radio and have not seen any difference in Signal quality.

But hey maybe other people will have better luck than I did.
[Nexus 6P Android Development] adinkwok:
First things first, I think I've seen your exact name floating around my facebook feed every once in a while :silly:.

The patch that allows for modification of the sound on ak's kernel is by faux123. The current sound control implementation is by franciscofranco.

I would like to vouch for the kernel to switch back to faux's implementation :D.
[Nexus 6P Android Development] nathanchance:
Few things!

1. I got a new username, woo!

2. [MENTION=970009]drdrewdown[/MENTION] [MENTION=4518697]frank604[/MENTION] this happened lol

3. I set up a web server for my downloads, which I will start using next update (hopefully tomorrow): http://nchancellor.net
[Nexus 6P Android Development] frost_nz:
That's awesome man, happy for ya!! Thanks for your work :) :)
[Nexus 6P Android Development] tcat007:
"The Ninja" was taken? ?
[Nexus 6P Android Development] drdrewdown:
Oh snap! Killin it man
[Nexus 6P Android Development] nathanchance:
Not sure but I kind of like the Flash better haha.

I've been liking it a ton, tentatively my build time for PN dropped by almost five to ten minutes.
[Nexus 6P Android Development] drdrewdown:
Arch is lean & mean!

I really love it, everything from the wiki to community is generally incredible. Welcome
[Nexus 6P Android Development] kantjer:
I through it was more "learn and mend"
[Nexus 6P Android Development] adinkwok:
Kernel name change incoming??? :highfive:
[Nexus 6P Android Development] nathanchance:
Flash Kernel just doesn't sound right :silly:
[Nexus 6P Android Development] chikimonke:
Typical Android problem, your brand is fragmenting... [emoji1]
[Nexus 6P Android Development] Shockz:
How to install: Flash Flash Kernel Zip
[Nexus 6P Android Development] shadowstep:
Excellent choice of a username, [MENTION=6842057]The Flash[/MENTION]! Btw, I wanted to request for a new governor. I have been meaning to try a variant of the Interactive governor, called InteractiveX. If it's possible, please have a look if you can add it to your amazing kernel. If not, no hard feelings anyway! Thanks!
[Nexus 6P Android Development] nathanchance:
Least the theme is still speed :cool:
[Nexus 6P Android Development] nathanchance:
Lol close on the mention but not quite :silly:

I'll take a peek at it. Reason I haven't added it in the past is I didn't think it added much. It only adds one or two extra tunables. If I can separate it out and make it a separate governor, I'll see if I can add it.
[Nexus 6P Android Development] chikimonke:
If that was an acceptable excuse then no one would have a problem with Android doing it either. You know, all dessert related names and all... :p
[Nexus 6P Android Development] Mikulec:
I picture a conversation between 2 users:

A: whats the best kernel?

B: flash kernel.

A: I know I have to flash kernel, but which one?

B: I already told you, flash kernel!

A: are u being smart ass?

B: WTF?

A: fkc off

B" you too, asshole
[Nexus 6P Android Development] shadowstep:
Hahahahaha! Oops! #BrainFart. All I could read in the last few posts was Ninja and Flash, and I did what I wasn't supposed to. :p Updated the original post with the correct tag now! :cool:

Also, thanks! If it's too much work for just a couple of extra tuneables, feel free to let it be. I know you want to keep the kernel lean and mean too, so. :fingers-crossed:
[Nexus 6P Android Development] Shockz:
Exactly what I was thinking :p
[Nexus 6P Android Development] nathanchance:
Haha no worries :p

I actually just looked at the code before I had to head out, the only thing imoseyon did on this device was make a tunable to limit the maximum frequency while the device is off. The frequencies while the screen is off really do not spike that much so I think I am going to leave that patch out but I will mull it over for a bit.
[Nexus 6P Android Development] chikimonke:
Classic...

https://youtu.be/kTcRRaXV-fg

Edit: I apparently don't know how to use the YOUTUBE tag thing for XDA...
[Nexus 6P Android Development] nathanchance:
I see I have a bunch of smart alecs in my thread :silly: :laugh:
[Nexus 6P Android Development] chikimonke:
I do what I can...
[Nexus 6P Android Development] bgboii:
So I gave the earlier build of preview N radio a try and it still drops signal.
[Nexus 6P Android Development] weazie:
Sounds peculiar, heh. :D What did You do? Carve bigger holes with builder's knife? :confused:
[Nexus 6P Android Development] frank604:
[KERNEL][09/23][3.10.103][LINARO-6.2] Ninja Kernel - v3.8

Wow, welcome aboard. Let me know if you enjoy or not. I see you running a Web server. Tmux and mosh is your friend. :)
[Nexus 6P Android Development] joeyfong:
I just wondering do you guys have in call volume low problem?
[Nexus 6P Android Development] kantjer:
No the opposite, I reduced in call volume
[Nexus 6P Android Development] adinkwok:
[MENTION=3306843]kantjer[/MENTION] and [MENTION=2495716]chikimonke[/MENTION] ?? What a OPO SlimSaber thread reunion! :laugh:
[Nexus 6P Android Development] kantjer:
welcome, nice to see you here
[Nexus 6P Android Development] JaylanPHNX:
Quality people recognize quality when they see it. [emoji41]

I have to 6p.
[Nexus 6P Android Development] bobbarker2:
Excellent post very educational. What Hardware did you guys use to measure the speaker output?

---------- Post added at 02:50 AM ---------- Previous post was at 02:41 AM ----------

If I recall correctly , The Flash / Nathan switched from faux to Franco's sound control because faux's was no longer maintained. Perhaps Franco's sound control could be modified to add in HPM and the disabling of
[Nexus 6P Android Development] adinkwok:
I've been in talks with Nathan, a future release will most likely have flar2's faux sound implementation because it is currently being supported and maintained by EXKM and flar2, respectively. It also has more functionality than franco's sound control. As for HPM, I added a sysfs entry to the sound control code (which [MENTION=6842057]The Flash[/MENTION] has implemented along with the other audio code), but the sysfs path is currently not supported by any kernel tuning apps.