yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 Original Android Development] ak:
new kernel online

[ AK KERNEL - v.018 ]

A kernel based on Oxygen/CM branch.

Download: AK.018.OP2.OXYGEN

Download: AK.018.OP2.CM

[ SMALL CHANGELOG ]

added elementalx governor

enable tcp fastopen for all connections

ondemand, eliminate deadband effect

notifier, use high workqueue

interactive, added wakeup boost support

a lot of read/write optimizations

rewrite tuning logic and cleaned ukm

ecc ecc

[ FULL CHANGELOG ]

Project name: AK KERNEL

anarkia1976 - Kernel Version: AK.018.OP2.OXYGEN

anarkia1976 - cpufreq: interactive: added wakeup boost configuration

flar2 - mmc: clk_scaling: set scale_down_in_low_wr_load to 1 by default

Talel Shenhar - mmc: clk_scaling: add sysfs for avoiding scale down in write

Jan Kara - ext4: Speedup WB_SYNC_ALL pass called from sync(2)

Jan Kara - writeback: Fix occasional slow sync(1)

flar2 - AIO: Don't plug the I/O queue in do_io_submit()

Jan Kara - block: Reserve only one queue tag for sync IO if only 3 tags are available

Namjae Jeon - writeback: fix writeback cache thrashing

Junxiao Bi - writeback: fix race that cause writeback hung

Dave Chinner - sync: don't block the flusher thread waiting on IO

Jeff Liu - binfmt_elf.c: use get_random_int() to fix entropy depleting

anarkia1976 - ak_OnePlus2_defconfig: disable CORE_CTL_HELPER

anarkia1976 - Kernel Version: AK.017.OP2.OXYGEN

anarkia1976 - ak_OnePlus2_defconfig: enable GOV_ELEMENTALX

anarkia1976 - cpufreq: elementalx: added new governor driver

anarkia1976 - Kernel Version: AK.016.OP2.OXYGEN

Pranav Vashi - drivers: state_notifier: Use high priority workqueue

anarkia1976 - cpufreq: impulse: tuning and burning values into governor

anarkia1976 - cpufreq: ondemand: Eliminate the deadband effect

anarkia1976 - ak-oneplus2-build: added custom TC path

anarkia1976 - ak_OnePlus2_defconfig: disable MODULE_FORCE_UNLOAD

Mel Gorman - mm: slub: Default slub_max_order to 0

Yuchung Cheng - tcp: enable sockets to use MSG_FASTOPEN by default

anarkia1976 - msm8994: dts: set boot_cpus to max possible

Project name: AK KERNEL

anarkia1976 - ukm: Version 4.0.1.4_Special_Ed

anarkia1976 - anykernel2: stop perfd after boot into msm8994_ak

anarkia1976 - anykernel2: set workload to cpu into msm8994_ak

anarkia1976 - anykernel2: enable sched_boost and wakeup_boost into msm8994_ak

anarkia1976 - anykernel2: fix typo into msm8994_ak

anarkia1976 - anykernel2: add AK tuning script

​
[OnePlus 2 Original Android Development] urgali:
Awesome!

..already flashed (cm based) and testing out elementalx :D
[OnePlus 2 Original Android Development] Hetalk:
Awesome. Trying out now !!! :good::good::highfive:

Hope it's safe to flash on the v18 pre-release zip

Edit: Works fine so far... hotplugging stays put now
[OnePlus 2 Original Android Development] Naman Bhalla:
Thanks AK, Flashed it with Exodus 29th October Build and running awesomely :)

View attachment 3522997
[OnePlus 2 Original Android Development] ak:
Not flat... Superflat

Sent from my ONE A2003
[OnePlus 2 Original Android Development] Hetalk:
Magic, it's Magic !! :highfive:
[OnePlus 2 Original Android Development] Nas42O:
Hi

Can I flash v.018 over V0.15 ?
[OnePlus 2 Original Android Development] ak:
dirty flash rom before. :good:
[OnePlus 2 Original Android Development] Nas42O:
Flash Exodus via recovery , after flash V0.18 ? without wipe cache and dalvik cache .
[OnePlus 2 Original Android Development] ak:
yes
[OnePlus 2 Original Android Development] Nas42O:
thank you ak ;)

You do very good job !
[OnePlus 2 Original Android Development] Laggalot:
Reflash rom they say... :S Im on stock though .

sent from my OPT
[OnePlus 2 Original Android Development] Nas42O:
I want to stop all A57 cores , I can't do it ..

I can only stop 2 cores .. :/
[OnePlus 2 Original Android Development] albireox:
Anybody tested this kernel with Temasek port?
[OnePlus 2 Original Android Development] Ferranza:
Clean flash of Rom then ak. In hotplug now I see 4:4 instead of 4:2 in v. 15. Is it right?

Inviato dal mio ONE A2003 utilizzando Tapatalk
[OnePlus 2 Original Android Development] v7:
In v.15 it was -1:-1,same as 4:4.You can change the values to x:y.
[OnePlus 2 Original Android Development] jackmacbunton:
whats the best hotplug then i have no clue what to put
[OnePlus 2 Original Android Development] v7:
It depends on your usage.4:2 should be the best for a normal user.
[OnePlus 2 Original Android Development] Hetalk:
Depends on what kind of performance you're looking for.

I'm a casual user with intermittent browsing/messaging/email/reading. I've been testing our 3:2, which I feel would work for me. :fingers-crossed:
[OnePlus 2 Original Android Development] ak:
You can't unplug core4.

Sent from my ONE A2003
[OnePlus 2 Original Android Development] ak:
You can be the first... Enjoy and report.

Sent from my ONE A2003
[OnePlus 2 Original Android Development] albireox:
Say no more! :)
[OnePlus 2 Original Android Development] PeteT:
Thank you Andi. Is this with the default kernel or with some extra tweaks in Synapse?
[OnePlus 2 Original Android Development] Kamran9558:
working fine on Hydrogen too. Thanks for the awesome work.
[OnePlus 2 Original Android Development] ak:
Stock

Sent from my ONE A2003
[OnePlus 2 Original Android Development] gm.cinalli:
Can I have a screenshot of the stock "Hotplug" & "CPU" (section for governors) settings in Synapse with v.018? Please.

PS: What are the default settings for governor (interactive or elementalx) and hotplug (4:4 or 4:2)?
[OnePlus 2 Original Android Development] v7:
Stock setting is Interactive on both CPUs and 4:4 hotplugging.
[OnePlus 2 Original Android Development] gm.cinalli:
Ok thanks! I thought that Synapse resets the settings after a reboot, but these are the defaults so it's normal. If I change governor to elementalx it stick on reboot, so the previous problem (with v.015) it's solved.

Note: I'm on busybox 1.24 installed from recovery & cleanup with busybox on rails.
[OnePlus 2 Original Android Development] CounterC:
I also have it running on Temasek successfully. Great combo.

Do you haven't any Google play services error not an then on Temasek? What gapps do you use?
[OnePlus 2 Original Android Development] urnamese3:
I do and am using temasek+ak+open gapps

We should report a log cat to the temasek rom manteiner or maybe just disable FC notification from settings - > debug settings

Sent from my quantum computer yëyě
[OnePlus 2 Original Android Development] albireox:
No Google Services error so far, but various FC on dialer and Hangouts. I use Open Gapps.
[OnePlus 2 Original Android Development] gm.cinalli:
Busybox?

Just a quick question, this kernel requires busybox installed? Because after a clean flash of the ROM I've installed it and set elementalx as governor and 4:2 as hotplug, but after a reboot they doesn't stick. So I installed busybox 1.24 with busybox on rails from recovery with cleanup and it now works. I ask for future flashings.

PS: I noticed that the Oxygen has a busybox installed, but without symlinks, you confirm? :confused:
[OnePlus 2 Original Android Development] chris264:
Why the Rom flash dirty before flash the new kernel.

Gesendet von meinem A2003 mit Tapatalk
[OnePlus 2 Original Android Development] v7:
Busybox is required for proper working.

The original busybox installation seemed to have incompatibility issues with Synapse.You can use the Busybox on rails installer.

Oxygen has an older version of busybox installed with missing symlinks.Cleaning up and installing the latest busybox solves the issues.
[OnePlus 2 Original Android Development] Stylo King:
Time to gear up for new profile for the OnePlus 2 ;)
[OnePlus 2 Original Android Development] v7:
Update to latest Version from PlayStore.

Tapped from my ❶+❷ ;)
[OnePlus 2 Original Android Development] ak:
Ukm is working now but I have a lot sysfs path and support to mod and make compatible with new 3.10.

New kernel is ready with kcal & xz & opt flags.

I think to release it tomorrow. [emoji6]

Sent from my ONE A2003
[OnePlus 2 Original Android Development] ebanreb37:
Awesome! hahah cant wait for you to release it.

Just a quick question will we be able to still utilize/use the feature even though that we don't have access with Snypse?
[OnePlus 2 Original Android Development] ak:
Yes if we have a kernel control app that support these features.

Sent from my ONE A2003
[OnePlus 2 Original Android Development] ebanreb37:
Okay thank you for the quick reply.

I believe that kernel auditor does not fully support your kernel because we can only see few governers/
[OnePlus 2 Original Android Development] v7:
In v.003, only stock governors are available.That's not an issue with Adiutor.

Tapped from my ❶+❷ ;)
[OnePlus 2 Original Android Development] ebanreb37:
Ahhhlright! hahaha, I thought so. Thanks!
[OnePlus 2 Original Android Development] v7:
[MENTION=3685904]ak[/MENTION] The full changelog in the OP links to the OPO Kernel repo,not the OP2 one.

Tapped from my ❶+❷ ;)
[OnePlus 2 Original Android Development] jcespi2005:
Amazing work, 25% more battery usage today with 003 kernel, congratulations ;)

Waiting the new version...
[OnePlus 2 Original Android Development] Villelj:
Can someone confirm this? If I just flash kernel and don't so any changes myself I still get benefits more with AK than original kernel
[OnePlus 2 Original Android Development] yoyo_58:
do this

http://xdaforums.com/oneplus-2/general/guides-how-to-guides-beginners-t3146568
[OnePlus 2 Original Android Development] gqukyo:
You have to unlock BL which means a full wipe. There's no getting around that. Since you don't have root either, you can't even use Titanium backup and similar apps to back up your apps and data. Hopefully, most of the stuff you care about are backed up with your google account.
[OnePlus 2 Original Android Development] kramer987:
i bit the bullet and unlocked. bye bye user data.

edit: amazing. google just auto backed up my phone i guess. all my apps redownloaded. all settings reapplied. took all of 15 minutes to get phone back to normal. maybe that was oneplus doing that for me though...
[OnePlus 2 Original Android Development] cr0wnest:
It happens sometimes, I think its a bug with OxygenOS because I dont get that with my OPO or Nexus 9. I noticed you have to wait for kernel adituor to fully load (meaning the intro animation has to finish playing and you have to wait until you are able to scroll on the screen) before switching tabs. That usually helps make it work better, if not close the app and try again.
[OnePlus 2 Original Android Development] kramer987:
ok so ive installed kernel auditor but i'm not seeing how to control the colors of the screen. is that feature not yet implemented into this kernel?
[OnePlus 2 Original Android Development] LiquidSolstice:
Not yet. With time. Have patience.
[OnePlus 2 Original Android Development] kramer987:
sorry sorry sorry. just getting used to getting into a phone before any significant development... so kind of hesitant about flashing things. so just wanted to make sure every step of the way. i'm usually onto a phone midway through its lifespan so there's tons of literature available to answer all my questions
[OnePlus 2 Original Android Development] LiquidSolstice:
KCAL settings make me drool. Can't wait to up the saturation a bit. Thank you!
[OnePlus 2 Original Android Development] cr0wnest:
I just got AK.003 up and running but Synapse doesn't seem to work at all, I just keep getting this. Otherwise all seems good, and I notice kernel auditor is now showing all 4 cores of big operating at once rather than just 2. I did flash UKM in recovery to make sure, but it still gives me the same error.
[OnePlus 2 Original Android Development] Nas42O:
Where can found busybox on rails please ?
[OnePlus 2 Original Android Development] v7:
Busybox On Rails
[OnePlus 2 Original Android Development] Hetalk:
Play store

Probably to clean up stuff from old kernel(s).
[OnePlus 2 Original Android Development] Itzamistry:
2 questions, I'm sorry if they have been asked.

1. If I install this kernel on oxygen os, will it be smooth like cm or exodus rom?

2. Does Snapchat work if I'm oxygen os? Any bugs at all?

Thanks.
[OnePlus 2 Original Android Development] urnamese3:
AK's kernel installer uses anyKernel's 2 installer so it uses stock ROM's kernel to work. Search on Google "AnyKernel"

Sent from my quantum computer yëyě

---------- Post added at 17:59 ---------- Previous post was at 17:56 ----------

1) cm based ROMs differ a lot from oxygen OS so no it's not the same. Try yourself which ROM gives you the best performance and battery life

2)no idea as I don't use it

Sent from my quantum computer yëyě
[OnePlus 2 Original Android Development] PeteT:
1. Yes

2. Yes
[OnePlus 2 Original Android Development] gm.cinalli:
I think this tip should be indicated in the first post.
[OnePlus 2 Original Android Development] ak:
i don't think is necessary.
[OnePlus 2 Original Android Development] cAase:
I get this this tick and X a lot of times when I enter the app. Is it a busy box problem or is it supposed to be like that?

Skickat från min A2003 via Tapatalk
[OnePlus 2 Original Android Development] grongo:
So do I, I was just starting to think that was normal, so I decide to change from BusyBox from Stephen (Stericson) to Busybox On Rails and lets see how it works.
[OnePlus 2 Original Android Development] ak:
Please:

we do not create entropy for nothing.

busybox is not the cause.

some parameter is changed or there is something in the background.

busybox inside the rom is ok (oxygen/cm), i never installed one from market.
[OnePlus 2 Original Android Development] Laggalot:
View attachment 3523564 I know this is a bug but since everybody is talking about flatlining I thought I would post this.

sent from my OPT
[OnePlus 2 Original Android Development] BigDoun2011:
Hey guys

Want to flash this beauty. Does this kernel improve battery life on stock firmware? :)

Thanks!
[OnePlus 2 Original Android Development] ak:
Test it and report ... this is the only answer to your question.
[OnePlus 2 Original Android Development] rascal0pl:
Wow! What the!

I just updated from 15 to 18 and... It's SO SMOOTH! even google play is not lagging anymore. Thank you so much, this is amazing!
[OnePlus 2 Original Android Development] Mehul.S:
After the update.. I found that now all the 8 cores are set on input touch boost.. Is that really necessary? Before this core 1 2 3 were disabled. I didn't faced any lagging issues then.. So just want to know if I set all 8 cores to boost on input or touch.. Would it affect my battery?? Still finding ways to figure out synapse.. And even the hotplug remains 4:4 if I manually edit it to 4:2.. How should I edit it??
[OnePlus 2 Original Android Development] gmenarvino:
Hi all. I never had a problem before but since the update to ak18 governors does it stick under synapse after reboot.

Before to write this post I tried:

Unintall synapse

Go to recovery and:

Wipe cache and davilk

Reflash stock rom

Then install AK 18 kernel

Then install synapse again.

Not work after reboot misc changes stick (such as charging modifications and vibration) but governors go back to interactive.... See attached snapshot

As I said I never had this problem with older AK version.

Any advice??

Ps: I also installed busybox and it didn't work.
[OnePlus 2 Original Android Development] gmenarvino:
Forgot to attach the snapshot. Here it is.
[OnePlus 2 Original Android Development] gmenarvino:
Definitely some bug with AK 18. I went back to AK 15 and not problem at all.

All stick perfect.

I followed same process as I described above to go to AK 15.

I will wait until the developer confirm or not this possible hug with AK 18
[OnePlus 2 Original Android Development] Fat_boy555:
I can confirm that governors stick fine on AK18. And all settings persist.

Sent using XDA One
[OnePlus 2 Original Android Development] gmenarvino:
Not for me... and stick ok with AK 15
[OnePlus 2 Original Android Development] avinashadvani:
I am on stock oxygen with ak v18 also now, and the governor settings dont stick for me either, it remains at interactive even though a few times i tried to choose elemental

everytime i open synapse, it pops a message saying settings were not deemed stable and click cancel to revert etcc..
[OnePlus 2 Original Android Development] Dude_Virus:
Same here none of the settings stick for me, I followed all the instructions. Now I will go ahead and wipe everything and flash stock rom again and start from scratch to check if the settings stick.
[OnePlus 2 Original Android Development] ebanreb37:
Flash oos first then flash ak
[OnePlus 2 Original Android Development] ak:
No problem here, governor stick.

Its normal not stick after boot, its a rom problem.
[OnePlus 2 Original Android Development] rodcpierce:
You guys have to learn how to use synapse. It's not a Kernel issue. It's an operator issue. I did have a severe battery drain on 18. But I'm currently at work and don't have time to research it. Went back to 13 and its rock solid!
[OnePlus 2 Original Android Development] avinashadvani:
stock oxygen 2.1.1 Rom what could be wrong with the ROM though it sucks as a ROM :D
[OnePlus 2 Original Android Development] gm.cinalli:
So it's a ROM problem, really? For me governors etc sticks, but only when my phone is up, when I reboot I have to go to synapse and re-apply the settings, so it's a normal behavior?
[OnePlus 2 Original Android Development] DanteGR:
Have you guys ran Busybox On Rails AFTER flashing the ROM, kernel etc?

Settings didn't stick for me either but after running Busybox On Rails everything sticks after reboot and the aforementioned message (settings not deemed stable etc) never came up again.
[OnePlus 2 Original Android Development] Dude_Virus:
Yup flashed 2.1.1 then super su then busybox on rails. Then flashed kernel. Before all this made sure all synapse data was cleared and synapse uninstalled. I will be trying a clean Rom flash and check. Something is definitely wrong and I am losing patience since i am unable to find out what is that.
[OnePlus 2 Original Android Development] DanteGR:
Ok I'll tell you what I did exactly and maybe you can figure sothing out.

1) Flashed Oxygen 2.1

2) Flashed Oxygen 2.1.1

3) Flashed SuperSU 2.52

4) Flashed xposed

5) Flashed kernel 018

6) Rebooted the phone, installed synapse, applied settings in synapse but when I rebooted the phone again the settings didn't stick and the message "not deemed stable blah blah" came up.

7) Opened the app Busybox On Rails which said in orange letters "Applets missing". So I then did the "clean up and install" option but not flashed through recovery. Just the regular one through the app.

8) Applied settings in synapse and then rebooted

9) Tah dah... This time settings in synapse successfully applied and the error message did not come up :)
[OnePlus 2 Original Android Development] ak:
Oxygen rom execute a series of scripts after boot. This behaviour create a modification of tunables and synapse need a conformation of the old settings... That's all.

Sent from my ONE A2003
[OnePlus 2 Original Android Development] Dude_Virus:
For my steps

1. Flashed 2.1.1

2. Flashed supersu2.46

3. Flashed xposed

4. Did busybox on rails.

5. Flashed kernel.

6. Cleared all caches.

7. Installed synapse.

8. Rebooted device

9. Configured synapse and rebooted but the settings don't stick. None CPU related the others stick fine.

My busybox on rails shows system OK in green but still I did a clean busybox install.

I will retry the steps and try super su 2.52 and check. Currently out hence cudnt try the clean install but will even try that once I get home. For now will try dirty flash again.
[OnePlus 2 Original Android Development] avinashadvani:
Don't know what's busybox ... Never had to do that in all these years of flashing ROM and kernels. Neither any instruction in OP about installing busy box.....
[OnePlus 2 Original Android Development] Stylo King:
[MENTION=3685904]ak[/MENTION] Adreno Idler Tunables doesn't work, Confirmed.

I have been analyzing this since it was implemented in this kernel and I can confirm that whatever tunable you set, GPU will keep using 180 MHz but not step up because of Adreno Idler and we can't control it by tuning.
[OnePlus 2 Original Android Development] Dude_Virus:
Agreed with what you are stating however the conflicting part is that why for some people using same oxygen rom the settings stick and they don't have to do anything in synapse but for others the issue persists.
[OnePlus 2 Original Android Development] ak:
Is stability check enabled?

Sent from my ONE A2003
[OnePlus 2 Original Android Development] Dude_Virus:
[MENTION=3685904]ak[/MENTION] is there a possibility I can manually edit these values in a file so that I can eliminate the app controlling it. I remember doing it when I used to do testing on dell streak, all over clicking and processor values I directly used to set in a file so no software needed to configure the CPU as well as io scheduler etc.

If there is could you guide me to that.
[OnePlus 2 Original Android Development] ak:
[MENTION=6307803]Stylo King[/MENTION]

I have to check thanks a lot for report.

How can I test it?

Sent from my ONE A2003
[OnePlus 2 Original Android Development] Dude_Virus:
Avinash search for busy box on rails in play store and install. Once installed click the next button and choose the option of normal install or twrp

---------- Post added at 01:50 PM ---------- Previous post was at 01:45 PM ----------

Nope that's the first thing I unchecked after installing synapse. Also after a reboot I get a toast that synapse boot completed. After that message I wait for at least 5 min or even more and then open synapse but everything pertaining to input boost and cores is reverted to default. I have to then click on cancel for my original changes to be displayed again.
[OnePlus 2 Original Android Development] agodo:
Same here!

Also battery stats not available to me
[OnePlus 2 Original Android Development] ak:
can you explain?
[OnePlus 2 Original Android Development] agodo:
In the settings battery stats where not available, I made Dalvik and cache wipe and reboot and now is showing again. I guess a bug in my phone. thanks :)
[OnePlus 2 Original Android Development] bartjeh1991:
Whoops
[OnePlus 2 Original Android Development] grongo:
It's also happening to me. I could swear this was OK yesterday. I'm using ak v18, oxygen 2.1.1 and xposed
[OnePlus 2 Original Android Development] ak:
oxygen rom is really complicated and the only thing you can do is reverse engignering. system is one thing, but another then not working. also the sources do not exist. really frustrating.
[OnePlus 2 Original Android Development] Hetalk:
Agree bro.

Eventually, you might want to look at separate kernel tweaking for custom ROMs and a untweakable AK kernel for Stock ROM.

Just a suggestion, though. I'll flash whatever you build. :good:
[OnePlus 2 Original Android Development] grongo:
Updated the above post with logcat, hope it helps.

I'm keen to move to CM. I was very happy with Temasek ROM on my OPO, currently what is holding me to move to a CM ROM is the fingerprint sensor issue. I hate to have to insert the unlock code every time :mad:
[OnePlus 2 Original Android Development] Dude_Virus:
Didnt help buddy, the exact same steps with the dirty flash of rom as well as the exact same steps with the clean flash of rom after deleting all partitions including internal storage.

After reboot all my settings dont stick and i have to tap the X button to get my settings back.
[OnePlus 2 Original Android Development] gmenarvino:
For my no, it is uncheck.

Also I have confirmed that going back to AK 15 everything sticks again with not problem...

I would be happy to resolve this issue on AK 18... I tried everything and not stick, always go back to interactive
[OnePlus 2 Original Android Development] Fat_boy555:
Is it possible to disable this on installation?

Sent using XDA One
[OnePlus 2 Original Android Development] ak:
check here:

ls /system/etc/*.sh

if you want to see deamon and sysfs path access:

lsof
[OnePlus 2 Original Android Development] xxwaterbirdx:
Is it only me or any other people actually realised the mA showing on synapse dropped below 1k while charging with AC... I'm on AK 18