yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] MrBrady:
Looking at the zip, there is no sh file. It's an update-binary that directly modifies the kernel settings in /sys folder.

EDIT: Looking at EXKM, it is not reflecting any of the settings in the zip. For example, EXKM is showing Interactive, while the zip is requesting Darkness.

EDIT2: If we take the update-binary, and save as flash-tweaks.sh, drop that into /system/su.d and set permissions, will that work?
[Nexus 6 Android Development] nathanchance:
I just took a look at it and I realized that too. Edify is not the same as bash scripting so there may be some inconsistencies.

[MENTION=6320543]RatchetPanda[/MENTION], did you test this? sysfs paths are created at startup, they don't exist in recovery so I don't think this will work.
[Nexus 6 Android Development] :
Ah did not realize this, it was a .sh thanks for the heads up :good:
[Nexus 6 Android Development] MrBrady:
Looks like all the settings in the zip can be applied manually in EXKM, those items not found in the menus I applied through Tools > User Settings (tedious, but it works!)

Edit:

Looks like the only two items that I couldn't find in the menus are...

echo 1 > /sys/block/mmcblk0/queue/add_random

echo 0 > /sys/module/xhci_hcd/parameters/wl_divide
[Nexus 6 Android Development] Isley_:
A question about disabling encryption. What are the exact steps to do it?

Go to TWRP and format 'Data' and then install this Kernel and that's all? I already backed up my apps with TB and moved the folder along with my photos and music to my OTG so I can restore them later.
[Nexus 6 Android Development] nathanchance:
Yeah, go into TWRP, hit the Format Data button in the Wipe section, flash the kernel, and reboot.
[Nexus 6 Android Development] Isley_:
It didn't work. After rebooting and looking at the Security section it says is Encrypted. Should the 'Internal Storage' be wiped too?
[Nexus 6 Android Development] nathanchance:
You aren't wiping, you're formatting. Did you hit the format data button or the advanced wipe button? Your entire userdata partition is being formatted, which includes your internal storage.
[Nexus 6 Android Development] Isley_:
Oh, my bad. I was wiping as I were installing a ROM. Now I've formated and I saw that message that says everything will be erased and the encryption will be disabled. Now is booting.
[Nexus 6 Android Development] Isley_:
It worked. Thanks a lot for your help.
[Nexus 6 Android Development] angiest:
EXKM supports loading of profiles. I know the 5X and 6P forums have threads of such things. Perhaps that can be used as a guide.
[Nexus 6 Android Development] manojpy:
Could you share the .sh file for us to try. Thanks
[Nexus 6 Android Development] manojpy:
This kernel is amazing. Had charged to 95 % after 7 hours of sleep. This is what I get.
[Nexus 6 Android Development] adio201:
How can you say this kernel is amazing (which it is) when you have no cell connection or even wifi phone just on idle. That's like saying my car gets great gas mileage but only idle the damn thing on the drive way
[Nexus 6 Android Development] manojpy:
Firstly I had left this car on the whole night and compared with other kernels where I have left the car on for similar time with a drain of 4 to 5 %. Make me happy. Guess that's what matters.
[Nexus 6 Android Development] :
Weird issue, when playing with impulse gov. In k.a., I was trying to set the timer rate to 50000 and it kept defaulting to 52000 even after manually entering numbers, wiped ka data and still had the problem. (Edit) seems to default to 52000 on interactive also..
[Nexus 6 Android Development] wrongway213:
I can do that I suppose, sure.

Non-flashable wrongway213 Flash Kernel settings (no pun intended lol)

This is the same as RPs flashable of my settings believe, except this uses my original read ahead setting of 1536, where he changed his flashable to 128. Other than that it should be the same, just unzip, move .sh file to /system/su.d and set 0775 perms and execute/chmod 0775 if in TWRP. Enjoy:good:
[Nexus 6 Android Development] adio201:
I'm not attacking you but I keep seeing post of people bragging about how great better life they get. But yet they have wifi and cell off
[Nexus 6 Android Development] nathanchance:
I disabled the constant tick rate so the kernel converts it using a bit of different method. It is fine though, it should perform identically.
[Nexus 6 Android Development] HiM@L:
Hi, thanks for the script. i dont have /system/su.d but i have /su/su.d is it the same ? if so I moved that file to that location set perm to 0755 and restarted..but nothing happened. what am i doing wrong.?
[Nexus 6 Android Development] MrBrady:
Lol. Thanks!
[Nexus 6 Android Development] jon.s.nelson:
Regarding BCL and early shutdowns, do you have any advice or workarounds [MENTION=6842057]The Flash[/MENTION] ? I love your kernel but I got poweroffs at around 22% battery when using the camera. I don't have this issue on other kernels...
[Nexus 6 Android Development] nathanchance:
I will attempt to replicate your issue but honestly, this phone is just wonky when it comes to this type of stuff. The CPU can only be overclocked on certain bins, same with voltage. I hate BCL and most people do too so I'm hesitant to add it back. If I remember correctly, there may be a commit floating around that disables the hotplugging but leaves the throttling in place but I may be wrong.
[Nexus 6 Android Development] jon.s.nelson:
Thanks, and for sure I've noticed how wonky this phone is. This is my second device too (I had the first replaced by Motorola because of chronic early shutdowns, even on stock.)
[Nexus 6 Android Development] nathanchance:
It's on my to-do, I'll try to get around to it this weekend. Going into a major project and exam so might not happen until next weekend.
[Nexus 6 Android Development] johnb380:
So are you saying the bcl toggle that's in kernel auditor while using your kernel has no affect? I don't use the bcl hotplugging as I've heard that it has the effect of turning the phone off early sometimes. But bcl is supposed to help with that I thought.

---------- Post added at 07:04 AM ---------- Previous post was at 06:59 AM ----------

I seem to make it all the way to 5 percent or lower with this kernel with no cpu hotplug enabled and bcl enabled and bcl hotplugging disabled. Maybe try that yourself also I keep stock voltages and stock cpu frequencies no over clock and darkness governor.

Try that a cycle or 2 and see if that helps with the shutdowns. As this kernel is one of the most stable and smooth I've ever ran.
[Nexus 6 Android Development] :
Don't turn BCL off, you'll lose quick charge. BCL is what makes the phone turn off early but if you keep voltages low it probably won't happen.
[Nexus 6 Android Development] jon.s.nelson:
OK, you guys got me interested in trying again. But isn't "BCL enabled" the default setting of the stock kernel and that which throttles the CPUs down at low battery? I'd think "disabled" is what prevents the CPUs from throttling and results in the device powering down at low battery levels (for some)?

[MENTION=6842057]The Flash[/MENTION], looking at the options in the kernel adiutor, is flipping the switch on (to the right) enabling or disabling the bcl?
[Nexus 6 Android Development] Fouad Aslam:
Can you make a profile in EXKM based on these settings for other users to share? Many thanks.:good:
[Nexus 6 Android Development] :
This zip will apply them, fixed the problem. :good:

Only thing it doesn't apply is kcal values.
[Nexus 6 Android Development] Fouad Aslam:
Awesome, thanks. Will give it a whirl.

---------- Post added at 09:11 PM ---------- Previous post was at 08:39 PM ----------

It works, thanks. Gov changed to Darkness, I/O to Maple and value to 128 so I guess it is sticking :good: :)

Thanks again and of course big thanks to [MENTION=5964313]wrongway213[/MENTION] for sharing his settings in the first place.
[Nexus 6 Android Development] oneeye:
Is that all t changes or is there more fine tuning in the settings for the schedulers??
[Nexus 6 Android Development] tsjanda:
Flashed and seems setting are applying and sticking. Nice thanks
[Nexus 6 Android Development] str8str:
Just thought I'd say great job on kernel. First time trying a nougat Rom and your kernel runs great on it. Very snappy and smooth. Thanks
[Nexus 6 Android Development] nathanchance:
I don't normally announce beta releases on XDA but I am looking for widespread feedback on this one. Please read everything and follow through if you want to flash it.
[Nexus 6 Android Development] papikev:
This is some early feed back on rc2. Installed it about 5 hours ago and so far I find performance very good, it idles very good as well. To early to report on battery life but I'm not one of those who is overly concerned with great battery life as I would much rather have a quick and responsive phone and plug it in when needed. However, with that said, if you can get both performance and battery well then, that's great. Thanks for your work as this has been my kernel of choice since you released it.
[Nexus 6 Android Development] oneeye:
Running rc2 for 8-9 hours and performance wise I have felt no difference. Battery life is at least as good but it is still to early. I will say with the last release a few times my phone failed to wake from deep sleep but that has not happened since I flashed the beta. Not complaining at all I love this kernel, phone is super responsive and fantastic battery life. You and pure nexus have breathed new life into this phone for me.

Awesome work bro and thank you!
[Nexus 6 Android Development] nathanchance:
Update!

This is a small update but solid. Include Linux version 3.10.104, released earlier today and tested since Wednesday. Additionally, I reverted to a constant tickrate of 300HZ (which is the same as stock) as I think it will help with battery life. Lastly, I included a patch from Sultanxda to hide the fact the bootloader is unlocked from SafetyNet by modifying the cmdline within the boot.img. Now, this does not mean SafetyNet is going to instantly pass. I had to unroot on Pure Nexus to get it to work and even then, Google may patch this within a few days. I don't want to hear whining about that it does work because it is technically a hack/vulnerability that could be fixed at any time.

Download FLASH 1.2 for Nougat 7.0: Main | Mirror

Changelog: (also on Github)

Linux version 3.10.104

Move back to a constant tickrate of 300HZ

Add a patch to hide bootloader unlock from SafetyNet
[Nexus 6 Android Development] LELEKA_TURBO:
Hi! Can't get the f2fs on pure nexus.

Problem in kernel or rom?

I use instruction from previusly links in thread, tries 3.0.0 f2fs recovery, 2.7.8.0 f2fs recovery, 1.1 flash kernel and 1.2b. Partitions formating in f2fs (see in info), but after system start - partitions again ext4. (Sorry for bad english).

Thx)
[Nexus 6 Android Development] nathanchance:
It's 3am right now so I can't look at it right this second but I have added all the necessary commits, enabled it to the defconfig, and added the proper lines to the fstab. There should be no issue but I think the ROM needs to support it. I'll take a look at it tomorrow when I have time.
[Nexus 6 Android Development] :
Running fast, and snappy as always.... Only issue I have is the YouTube stuttering issue when watching videos, I see problem plagued some other kernels, not really a big deal I'll live with it, this kernel is too smooth and battery friendly to worry about small issues.
[Nexus 6 Android Development] harpin14789:
Disable hardware overlays, that should take care of the stuttering. But it will cost a bit of battery life if left turned off indefinitely. I use tasker to disable HW overlays when I open YouTube and turn enable it again once I exit.
[Nexus 6 Android Development] MrBrady:
Thanks for the tip. I winder if this will help some games I play that are significantly slower in Nougat.
[Nexus 6 Android Development] harpin14789:
I only know about YouTube app. You could try it for other games and see. But it will have a small effect on battery. :)
[Nexus 6 Android Development] MrBrady:
Just tried it with my game and it seemed to fix the issue. It still lags a bit but the same amount it did on MM, which is tolerable. It was nearly unplayable on Nougat prior to changing the overlay setting.

Do I need to target anything special in Tasked to automate this?
[Nexus 6 Android Development] :
Tasker let's you choose on app open and close for triggers.
[Nexus 6 Android Development] Mystique:
[MENTION=6842057]The Flash[/MENTION]

Do you keep your Stock-Upstream updated with your build cycle? or just linux kernel release cycle?

When 3.10.105 comes out.. will you update or only if you update your kernel?
[Nexus 6 Android Development] gothy.gothy:
Hi guys,

Is it only me, or somebody else faced the same issue that DTW doesn't stick?

Thanks
[Nexus 6 Android Development] Nautilus74:
Someone has tried this kernel on f2fs data partition?

The previous version does not work on my N6.....
[Nexus 6 Android Development] :
I spoke to The Flash about this this morning, really early/late depending how you look at it. For some reason his modified fstab doesn't seem to be getting copied over during the flash (at least not on my device).

He said he'll be looking into it. But for now, no I don't think it would work.
[Nexus 6 Android Development] str8str:
I will say this I have noticed a substantial difference since raising the voltage globally 20. I think it's a little low and could be the cause for some issues.

Sect From Me, Is That You?
[Nexus 6 Android Development] LELEKA_TURBO:
I tries, results - no... :(

Pure nexus rom
[Nexus 6 Android Development] S0UTHPAWK1LLA:
Mako? Using KA mod
[Nexus 6 Android Development] rrrrrrredbelly:
Are you using 1/2 screen or full screen? You may already know this but only 1/2 screen works (at least as far as i know).

It works fine for me
[Nexus 6 Android Development] nathanchance:
I update both. I do stock upstream first then rebase on top of it.
[Nexus 6 Android Development] photolarry:
What am I doing wrong?

I know this is not specific to your kernel but noticed you did the patch. So these are the steps I took.

Unroot, reflash system.img, reflash boot.img, install kernel, reflash stock recovery. So I think nothing else should be stopping / tripping safetynet....however I get a red screen with CTS profile match : false

Did I miss something in "unrooting"? I thought since it was systemless root, reflashing boot.img was all that was needed but did reflash system.img just to be sure. So I am baffled, what is preventing safetynet now??
[Nexus 6 Android Development] tsjanda:
I think the latest safety net detects unlocked bootloader.
[Nexus 6 Android Development] nathanchance:
After discussion with [MENTION=4231562]Yoinx[/MENTION], I think the patch needs to be changed for Shamu, I'll experiment later tonight.

It does but that patch should prevent it from doing so.
[Nexus 6 Android Development] nathanchance:
I have added all of the proper F2FS commits and fstab lines. The rest has to be handled by the ROM. I just flashed on crDroid and it booted up fine with both /data and /cache with F2FS. Not a kernel issue.
[Nexus 6 Android Development] harpin14789:
as Yonix said, there are app open and close functions in tasker, so play around with that. Tasker is a very powerful app, once you know to how use it, it can do amazing things. :D
[Nexus 6 Android Development] nathanchance:
Update!

Sorry for the back to back updates but I think this is worth it. Added some patches from upstream Linux and two patches backported from the Pixel (XL) by Franco, which help a lot with performance. I've been running it all day on my 6P and it has made a difference. Additionally, I have removed that command line patch from 1.2 as it does nothing for this device. Sorry for the confusion and false hope :( This will probably be it from me for about a week or so, I have been exhausted from doing so much work in terminal. Enjoy and let me know if there are any issues using the process in the OP.

Download FLASH 1.3 for Nougat 7.0: Main | Mirror

Changelog: (also on Github)

Upstream Linux patches for vmstat and libgcc

Backported MDSS and GPU patches from Marlin (thanks to [MENTION=3292224]franciscofranco[/MENTION])

Low memory killer improvements

Removed cmdline patch from 1.2
[Nexus 6 Android Development] gothy.gothy:
[MENTION=6842057]The Flash[/MENTION]

First of all, MANY THANKS for your work on this awesome kernel.

Would it be difficult for you to provide us your current kernel settings (either written or as page by page scree shots from KA Mod)?

Thanks
[Nexus 6 Android Development] nathanchance:
This device isn't my daily driver but I can add some settings I would use if it were to the OP tomorrow.
[Nexus 6 Android Development] gothy.gothy:
Thanks a lot, no rush!
[Nexus 6 Android Development] antec123:
i think we can adjust the kernel by our self. because it's our own device, and only we can fell the experience.

thanks flash for the kernel. i just tried your kernel 1 or 2 days ago, and it's good enough.
[Nexus 6 Android Development] gothy.gothy:
[MENTION=4149535]antec123[/MENTION]

I just requested his settings for comparison, not that I don't know how to set the kernel.
[Nexus 6 Android Development] Bundizle:
Thank you for the awesome kernel. Did you manage to look @ the sound cracking issue. It annoys the hell out of me and it happens only with your kernel. Or might it be a voltage issue?
[Nexus 6 Android Development] nathanchance:
What cracking issue? Sorry if you mentioned this before but it isn't on my list of things to check out.
[Nexus 6 Android Development] Bundizle:
Sorry crackling. When am switching through tabs on chrome. When i take a hdr+ pic my guess would be when some load comes to the cpu. The top speaker crackles alot. Also when you want to share media to social applications from the gallery..when u hit the share button before all the apps appear it makes that hissing/crackling noise not loud like playing music but noticeable when its quiet. Those situations is where i have been able to replicate the issue. Thanks
[Nexus 6 Android Development] :
If you configure them in ka-mod there's an option in the startup commands screen to copy them all as a shell script. Dunno if that'll make life any easier for you.
[Nexus 6 Android Development] :
I still have it when watching anything on youtube, the sound will break up every 5 seconds or so, disabling the hw overlays helped a bit but its still there... Not trying to complain, I know you bust your a*s for us users and it greatly appreciated.
[Nexus 6 Android Development] :
I don't get any audio breaking/crackling/studdering in YouTube with this kernel.
[Nexus 6 Android Development] EAK128:
The kernel is running great, didn't think PN could get any smoother and faster, but this kernel has done it, thanks. Haven't noticed any crackling noises anywhere on my end.
[Nexus 6 Android Development] :
maybe its something I'm doing then, I'm still somewhat noob here.
[Nexus 6 Android Development] :
Well here are the settings I use right now. Not all of them are necessarily different than the stock settings, ka-mod saves everything I toggle even if toggled back to stock.

echo 230 232 252 > /sys/devices/platform/kcal_ctrl.0/kcal
echo 265 > /sys/devices/platform/kcal_ctrl.0/kcal_sat
echo 263 > /sys/devices/platform/kcal_ctrl.0/kcal_val
echo 248 > /sys/devices/platform/kcal_ctrl.0/kcal_cont
echo 0 > /sys/devices/platform/kcal_ctrl.0/kcal_hue
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo zzmoove > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1 > /sys/devices/system/cpu/cpu1/online
chmod 644 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo zzmoove > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 1 > /sys/devices/system/cpu/cpu2/online
chmod 644 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo zzmoove > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo 1 > /sys/devices/system/cpu/cpu3/online
chmod 644 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo zzmoove > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
echo 0:1497600 1:1497600 2:0 3:0 > /sys/module/cpu_boost/parameters/input_boost_freq
echo 0 > /sys/kernel/zen_decision/enabled
echo 1 > /sys/devices/platform/msm_sleeper/enabled
echo 2 > /sys/devices/platform/msm_sleeper/suspend_max_online
echo 1 > /sys/module/snd_soc_wcd9320/parameters/spkr_drv_wrnd
echo maple > /sys/block/mmcblk0/queue/scheduler
echo 1 > /sys/android_touch/doubletap2wake
echo 15 > /sys/android_touch/sweep2wake
echo 103 > /sys/vibrator/pwmvalue
echo 1 > /sys/kernel/fast_charge/force_fast_charge
setprop service.adb.tcp.port -1
setenforce 0
echo 0 > /sys/devices/virtual/graphics/fb0/hbm
setprop net.hostname Shamu
echo disabled > /sys/devices/qcom,bcl.39/mode
[Nexus 6 Android Development] :
I see you disable BCL, you don't mind not having fast charge?
[Nexus 6 Android Development] :
No. I use tasker to turn it back on when I'm charging and then it off again when I stop charging.

I would do it via init script, but there is only an on charge event there... Nothing for when you disconnect the charger.... Unless I can find a property that gets set.

Tasker info:

Profile: Power BCL (21)
State: Power [ Source:AC ]
Enter: Enable_BCL (19)
A1: Run Shell [ Command:echo enabled > /sys/devices/qcom,bcl.39/mode Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]

Exit: Disable_BCL (20)
A1: Run Shell [ Command:echo disabled > /sys/devices/qcom,bcl.39/mode Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]
[Nexus 6 Android Development] :
Thank you for this!! I'll give these a try as many are totally different than how I set up.... Thanks again!!
[Nexus 6 Android Development] :
No worries. Configuration is all a matter of preference. I only posted them as you have issues where I don't do that you could test.

Not saying your settings are necessarily bad.
[Nexus 6 Android Development] gothy.gothy:
Coud be saved as txt and imported in KA MOD, or please tell me how can I use it?

Thanks
[Nexus 6 Android Development] :
Damn that's smart :good:
[Nexus 6 Android Development] :
That, you would need to add the shell script header to. Make it executable, place it in data and run it...

Or put it in su.d I don't think su.d would require anything but putting it in a file and making it executable.

I'm at the gym at the moment though... So I can't test.
[Nexus 6 Android Development] Tynen:
Just flashed 1.3, will report back. Ty for your efforts and supporting the N6! :)
[Nexus 6 Android Development] cynikalJ:
Does anyone knownif this would work with the new uberstock 7.1 for shamu?
[Nexus 6 Android Development] Tynen:
I don't think it would - it's a 7.0 kernel. I mean,... you can probably flash it, and it may or may not work??
[Nexus 6 Android Development] johnb380:
Let us know.
[Nexus 6 Android Development] MrBrady:
Apparently, it does.
[Nexus 6 Android Development] garywojdan81:
Sweet
[Nexus 6 Android Development] johnb380:
Anything new to note on on 7.1? Just wondering if it'sgot such cool features and running so good its worth not being able to use substratum.
[Nexus 6 Android Development] MrBrady:
I don't want to derail this thread. Suggest to take ROM specific ?s to the Despair G+ page.
[Nexus 6 Android Development] nathanchance:
It doesn't really and developers shouldn't be merging that into their full source. I'd just stick with 7.0 personally.
[Nexus 6 Android Development] :
Has nothing to do with this kernel. But, on g+ it looks like a lot of rom devs are saying it's all pixel specific. So besides the rom being to say "7.1"... You won't see any significant differences.

Definitely recommend taking that discussion to the rom thread though.

*edit* apparently got ninja'd by the flash on the reply... Not sure how I didn't see his.