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

[ AK KERNEL - v.014 ]

A kernel based on Oxygen/CM branch.

Download: AK.014.OP2.OXYGEN

Download: AK.014.OP2.CM

Please

core ctl hotplug is closed source.

i need help to describe and document all tunables.

i'm waiting feedback and suggestions.

thanks a lot

[ SMALL CHANGELOG ]

a lot of work under the hood

added drivedroid support

added support for init at boot

added support to core ctl hotplug tunables

ecc ecc

[ FULL CHANGELOG ]

Project name: AK KERNEL

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

anarkia1976 - cpufreq: interactive: change sysfs permissions to r/W also for groups

FrozenCow - usb: gadget: mass_storage: added sysfs entry for cdrom to LUNs

Steve Kondik - drivers: cpufreq: Send a uevent when governor changes

Project name: AK KERNEL

anarkia1976 - ukm: Version 4.0.1.0_Special_Ed

anarkia1976 - ukm: expose all core_ctl tunables

anarkia1976 - ukm: cleaned bacon references

anarkia1976 - ukm: fix gpu time in state, added new governors, fix spaces

anarkia1976 - anykernel2: added core_ctl permissions settings

anarkia1976 - anykernel2: match boost freq of A57 with interactive hispeed_freq

anarkia1976 - ukm: fix cpuboost freqs list

anarkia1976 - anykernel2: add refresh of permissions after an event

anarkia1976 - anykernel2: fix cpu boost tunables

anarkia1976 - anykernel2: added init.rc tunables for interactive and cpu boost

anarkia1976 - anykernel2: added AK's extra init file

anarkia1976 - ukm: added vibrator intensity interface

anarkia1976 - ukm: cleaned hotplug stuffs, added state notifier

anarkia1976 - anykernel2: remove old dtbToolCM

anarkia1976 - anykernel2: added zipexclude.lst

anarkia1976 - ukm: fix cpuset and re-enable hotplug

anarkia1976 - anykernel2: added core_ctl hotplug driver

anarkia1976 - ukm: adjust cpu governor tunables

anarkia1976 - ukm: added hard limit for min/max cpufreq

​
[OnePlus 2 Original Android Development] theBIGone:
Is it correct that i cannot access the core ctl hotplug tunables yet on 014?

http://xdaforums.com/attachment.php?attachmentid=3508218&stc=1&d=1444986830
[OnePlus 2 Original Android Development] Highspeed123:
No, I have access to the tunables. Wipe Synapse data and reboot.

Sent from my Oneplus 2
[OnePlus 2 Original Android Development] anees167:
Thanks for the great work but I have noticed that when I change the maximum A57 cores on synapse from 4 to 2, it keeps resetting. So everytime I open synapse it resets back to 4 cores.
[OnePlus 2 Original Android Development] Naman Bhalla:
Flashed the kernel just now. Let's see how the experience goes. :)

ROM :- OxygenOS 2.1.1
[OnePlus 2 Original Android Development] ak:
tested, no problem here. do you have another app for control kernel?
[OnePlus 2 Original Android Development] anees167:
no i only use synapse and i clear data and cache as well
[OnePlus 2 Original Android Development] Naman Bhalla:
AK, I can confirm this issue... Though it doesn't show any dialogue that settings have changed but under A57 cores in Hotplug menu, settings really change. For me both Minimum Cores and Maximum Cores active at a time settings changed...

If you need any help in debugging, please let me know. :)

EDIT :- I tried it again and settings didn't change. Weird... I will check over it more and will get back to you for sure... :)

EDIT 2 :- It happened again
[OnePlus 2 Original Android Development] grongo:
Hotplug is working ok with my synapse.

Does it still make sense to tune cpuboost to compensate hotplug lags a ilustrated in ak previous post?

OxygenOS 2.1.1
[OnePlus 2 Original Android Development] ak:
Uninstall synapse, go to recovery reflash the kernel ... Reboot and install synapse.

You have probably a conflict with others apps or previous kernel installation.

I don't have problems with hotplug tunables.

\m/

Oneplus2
[OnePlus 2 Original Android Development] urgali:
I have the same exact problem, even after i uninstalled synapse, boot in recovery, wipe cache and dalvik, flash ukm/ak kernel uninstaller, flashed ak caf v.14 (i have cm12.1 so i flashed the cm one), reboot, install back synapse.

Any advice on how to solve this?

Thanks!
[OnePlus 2 Original Android Development] Laggalot:
Im experiening bad batter life. here is a dumpfile from BBS http://1drv.ms/1RMnUZl

Android OS is draining big chunks because of Fingerprint scanner...View attachment 3508454View attachment 3508455

sent from my OPT
[OnePlus 2 Original Android Development] rockafellor:
Hey! theres ak kernel v014 now. try that first please ;)

do you use stock kernel settings?
[OnePlus 2 Original Android Development] dunstan92:
Should we use the stock setting from the new kernel or use AK's setup from few pages back
[OnePlus 2 Original Android Development] anees167:
I done that still the problem is there. Hope you can fix it. Thanks
[OnePlus 2 Original Android Development] ak:
Fingerprint and Android OS is a rom problem.
[OnePlus 2 Original Android Development] ak:
what is the problem? can you point me how i can replicate?
[OnePlus 2 Original Android Development] Laggalot:
Yeah but Battery is even going fast when in normal use. 10%battery for around 20 minutes of light gaming is okay?

I dont wanna offend your work. I wanted to provide some feedback but hey Im gonna flash the new kernel now.

sent from my OPT
[OnePlus 2 Original Android Development] Hetalk:
Dear fellow flashoholics,

In case you are experiencing issues/errors with this kernel, post those issues with as much details as possible.

what kernel version are you on?

What rom are you on?

steps to replicate this issue?

Relevant logs, where applicable. I've been using syslog(from play store) to get logs. Synapse has that function as well.

Plus any other information that may help [MENTION=3685904]ak[/MENTION] or others, find and then fix it or point you in the right direction.

Without above information, your issue, most probably, cannot be resolved.

Also, if you have questions regarding profiles and how to set them or discuss them, please use the AK profiles thread in General section.

Let's do our best to make sure [MENTION=3685904]ak[/MENTION] can utilize maximum of his free time in developing:highfive:, rather than trying to figure out half-questions.
[OnePlus 2 Original Android Development] urgali:
Hello,

1) kernel version: AK.014.OP2.CM

2) rom: Grarak cm12.1 03102015

3) updated kernel from v.13 to v.14 using these steps: uninstalled synapse; boot in recovery; wipe chache and dalvik; flash ukm/ak uninstaller v4; flash ak kernel v.14; boot in system; reinstalled synapse.

4) See attachments for checking kernel version and hotplug screen not updating with new v.14 settings

View attachment 3508497

View attachment 3508498

View attachment 3508499

Thanks in advantage.
[OnePlus 2 Original Android Development] Hetalk:
It works for me on stock 2.1.1.

Edit: Maybe someone on the same ROM as your's can check and reply back.
[OnePlus 2 Original Android Development] grongo:
urgali has CM Rom, you have OxygenOS. I also have OxygenOS and have no problems with ak14 hotplug. My guess is that the issue is related with ak14 CM version (or with CM Rom itself).
[OnePlus 2 Original Android Development] Wongher:
stuck on bootlogo after flashing ak014 cm on resurrection remix

it doesn't boot.
[OnePlus 2 Original Android Development] foomanjackel:
Working great here on latest tipsy... Thanks as always AK!!
[OnePlus 2 Original Android Development] trivita:
14 is again better than its predecessor! Ak rocks!

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

I use fingerprint yet I never have a battery drain bcz of that. With each every update of thw kernel.
[OnePlus 2 Original Android Development] suhridkhan:
I am on the Team Razor ROM (slim based)... I am losing wifi if I flash AK kernel. tried both 13 and 14 version. also tried the CM and the Oxygen version.

Is this a rom issue, or AK kernel is not compatible with that?
[OnePlus 2 Original Android Development] return.of.octobot:
For those running into issues getting the updated hotplug settings to appear, just restart Synapse from the tools menu, that got everything to show up for me.

Speaking of which, can anyone point me in the direction of some information/explanations regarding the available hotplug variables? I'm unfamiliar with the corectl interface, and I imagine I'm not alone.
[OnePlus 2 Original Android Development] Naman Bhalla:
As ak said that the Hotplug is closed source and he needs feedback from users to write more about the Hotplug, so for now, I don't think any info about that is available... :)
[OnePlus 2 Original Android Development] anees167:
OK so I'm running OXYGENOS 2.1 and I had ak 13 so I installed it, wipe cache and installed synapse when boot was finished. I then set the A57 max cores to 2 and press the tick and I have noticed everytime I re open synapse I see that it reverts to 4 cores (see attached image) hope I have explained properly and let me know if I missed something. Thanks
[OnePlus 2 Original Android Development] ak:
Do you have only installed synapse for control kernel?

Do you have installed another kernel before?

\m/

Oneplus2
[OnePlus 2 Original Android Development] anees167:
I only have synapse installed but I did use kernel auditor in the older ak kernel builds and no longer have it installed
[OnePlus 2 Original Android Development] Naman Bhalla:
AK, I investigated further over the issue and am still investigating. I found that yes, this issue exists... But, but, but, it is not easy to find this issue. In my case, I came from stock OxygenOS 2.1.1 to your kernel with no kernel tuning app installed. After flashing your kernel, I installed synapse and everything was fine. I even adjusted the A57 cores to min 1 and maximum 2 and again closed synapse and opened it and found that values have sticked... But then I saw post by anees and thought to check over it,,,, and what I found was that, yes, values changed on opening synapse. So I started investigating further. What I found for now, is that the values show as changed on opening synapse only if you are opening synapse after more than 45 minutes of having opened last time. Example, I changed the values, closed synapse, opened it and values were stickied... Tried it for intervals of 5 mins and till 45 Mins everything was okay... Values were sticking, but then the value came to be reverted.... So, yes, the issue exists IMHO ...
[OnePlus 2 Original Android Development] Stylo King:
[MENTION=3685904]ak[/MENTION] Hotplug working fine here, No issues at all.

Ak 014 is what I was waiting for as I wanted my Big cores at full speed running all the 4 cores.

BTW Testing some hotplug stuff, I am not familiar with this hotplug so it will need more time and testing.

If everything goes okay, I might upload a test profile for you guys.
[OnePlus 2 Original Android Development] OmegaBlaze:
[MENTION=3685904]ak[/MENTION] could you or someone upload the latest 2.1.1 stock kernel?
[OnePlus 2 Original Android Development] return.of.octobot:
I can confirm in terms of hotplug tunables that when setting the minimum cores active to 1 for the A57 cluster, the change appears to stick for awhile and then reverts back to 2 after a length of time. This is on the CM variant and no, I do not have any alternative kernel tuning apps installed.
[OnePlus 2 Original Android Development] MrAkai:
Loving the kernel so far. I was curious if it has support for Bluetooth MAP profile, and if not can we try turning it on? Thanks!
[OnePlus 2 Original Android Development] grongo:
What's the app you're using to show the CPU usage?
[OnePlus 2 Original Android Development] foomanjackel:
I believe that is "perfmon"....its in the playstore

BTW, just had 6 hours SOT with latest tipsy + AK straight-up, no tweaks, nothing turned off. 8 hours at work with just LTE, most of the rest of day spent at home on WiFi. Started the day on v.013 then updated to v.014 later in the morning.

View attachment 3508868View attachment 3508869
[OnePlus 2 Original Android Development] Dude_Virus:
I faced the same issue on settings reverting to a lower value in synapse. How i resolved it as below.

1. clear synapse data from synapse menu.

2 force stop synapse and clear cache and data for it from settings

3. uninstall synapse.

4. open file manager and delete the synapse folder in internal storage

5. reflash kernel

6. wipe caches

7. install synapse and reconfigure

8. from synapse settings remove the check for stability check as that is what seems to be reverting the setting even though there is no crash or reboot. and it clearly doesnt take into account the 2 min mentioned.

9. reboot device from synapse menu.

I have not faced another issue of settings getting reversed. BTW i am on oxygen 2.1.1 so cant comment on the cm12 rom.
[OnePlus 2 Original Android Development] Hetalk:
I checked Synapse settings after overnight idle, and I see that, as Naman earlier mentioned, a57 cores hotplug values do get reset. Everything else that I set stayed put.
[OnePlus 2 Original Android Development] Stylo King:
Confirmed.
[OnePlus 2 Original Android Development] Naman Bhalla:
Thanks Peeps for confirming this :) I was wondering if I was doing anything wrong, but finally it has been confirmed.. Thanks again... :)

Also, I further investigated it and found that the values do stick for small time and get changed after a particular instant of time only. [MENTION=3685904]ak[/MENTION] Do you need any help in debugging?
[OnePlus 2 Original Android Development] emam damon:
here you go.stock kernel OX OS 2.1.1

https://www.androidfilehost.com/?fid=24052804347838795
[OnePlus 2 Original Android Development] Dude_Virus:
OK seems even I am in the same boat. Why I didn't notice earlier is cause I didn't change the number of cpus online value. Now that I did it seems for the big cores it is reverting to 2 for the minimum CPU cores online. It is also reverting the input boost value to 40 ms even when I am setting to to 100 ms.
[OnePlus 2 Original Android Development] juanej:
Do I have to clear dalvik/cache after flashing every kernel update? My battery got worse today
[OnePlus 2 Original Android Development] DanteGR:
Nope. That's not necessary. Just flash the kernel and reboot.

Swiftkeyed from my 1+2
[OnePlus 2 Original Android Development] Hetalk:
As a rule, I always wait for at least 1 complete battery cycle before commenting on battery usage. :D
[OnePlus 2 Original Android Development] bangsti:
@ak

Many thanks for the great work , love it on my OPT and CM Rom :)
[OnePlus 2 Original Android Development] v7:
Btw which ROM is that?Temasek's?
[OnePlus 2 Original Android Development] bangsti:
Yes i Cook for me and some Friends [emoji4]

Gesendet von meinem ONE A2003 mit Tapatalk
[OnePlus 2 Original Android Development] mnhs1010:
Having very good battery life with this kernel. But what is the difference between OOS kernel and ak? Why OOS team is not making like this to improve the battery?

Stock ak kernel even does not installed synapse for settings.
[OnePlus 2 Original Android Development] rockafellor:
Stay with stock please or read. It seems like you haven't read anything.

Read the thread please . This has been discussed several times already
[OnePlus 2 Original Android Development] poondog:
Hey mate, good to see you around :)

Which phone are you using now? I am guessing a Oneplus 2?
[OnePlus 2 Original Android Development] unknown25:
Hi guys I am new to installing the kernel.

I have doubt in first step which says dirty reflash your rom from recovery.

Any help wer can I get the ROM from?

And any other advise which I should follow while following the procedure?
[OnePlus 2 Original Android Development] Hetalk:
If you have never flashed any custom kernel on this device, you can safely skip dirty flashing stock rom.

This step is relevant when coming from another custom kernel.
[OnePlus 2 Original Android Development] ak:
Yes, it's related to hal, we can't control this for now.
[OnePlus 2 Original Android Development] DanteGR:
Hey pal I hope all is well!

Just got the 1+2 and still have the HTC M8 but I'll hand it over to my dad soon.

The 1+2 is a good phone and the only thing I hate about it right now is the awful speakers. I hope they do something about them soon, at least as far as volume is concerned!

You also got this phone?

Swiftkeyed from my 1+2
[OnePlus 2 Original Android Development] poondog:
Its advised to reflash rom to get rid of any leftovers and changes from other kernels and mods. When people flash kernel over kernel sometimes system files are modified (not only kernel) and it leads to issues

Such as the cpu not changing freqs properly and settings overwriting etc.

Yeah it seems alright but I held out for the new nexus devices, and possibly the new htc devices. I've still got the m7 as my phone (living still in 2013) and I'm waiting for the nexus 5x to be available for pre order here. For me oneplus doesn't have my trust and I'm drawn to the nexus anyway :P

All is good I'm planning on getting started again with kernels soon :D
[OnePlus 2 Original Android Development] DanteGR:
If I like what I see I'll definitely go for the M10 (if HTC is alive by then [emoji14])!

Hope to see you there buddy!

Take care [emoji4]

PS: Sorry for the OT AK [emoji6]

Swiftkeyed from my 1+2
[OnePlus 2 Original Android Development] DeathCzar:
Wanted to use phone quite a lot and yet last a whole day, and it did. Clicked a LOT of pictures.

AK 14.

Default Values. Location on battery saving and autosync off. Brightness set to low but adaptive Brightness on.

I did notice a weird spike in battery level at 16% after reboot it went 19%.

Apart from that, no surprises.

The best SOT I've seen for the 5 years that I've owned an Android device.

@ak, yours is seriously the best kernel I've ever used.

Sent from my ONE A2003
[OnePlus 2 Original Android Development] v7:
[MENTION=3685904]ak[/MENTION] The website is down :/ I hope you have an eye on it.:)
[OnePlus 2 Original Android Development] poondog:
Nah man probably not, if I get the Nexus I will skip on next years devices (until maybe flagships 2017 or Nexus 2016)

I don't plan on spending too much on devices too soon haha :P

Great to hear :good:

Reboots can cause battery spikes because the readings are not really 100% accurate, its more of an estimate which is re estimated when the device is rebooted :)
[OnePlus 2 Original Android Development] DeathCzar:
Yeah, but it still is a big event when you are endurance testing the phone out of necessity, not choice, and don't have time to charge the phone.
[OnePlus 2 Original Android Development] ak:
i know, we have to wait, billing in action. :silly:
[OnePlus 2 Original Android Development] avinashadvani:
I'm not too much into kernel tweaking, just want good battery life. I'm running v14 now, wanted to know if it's essential to also have synapse installed? I don't want to tweak just use the stock kernel settings as released by AK.
[OnePlus 2 Original Android Development] ak:
no, you can not install it and forget tweaks.
[OnePlus 2 Original Android Development] casabel:
sorry if question has been answered but is it possible to flash it in latest hydrogen os? and if yes which ak version?
[OnePlus 2 Original Android Development] ThermalGod:
Yes it is. At least 011-014 but probably also the older ones..
[OnePlus 2 Original Android Development] otisman:
View attachment 3511112 this thing flat lines unreal much alohas bradah ak
[OnePlus 2 Original Android Development] return.of.octobot:
I'm still not convinced the input boost controls are working, I'm still unable to disable it entirely [boosts to 1344 when touching display, despite input boost being disabled]. When I attempt to stagger the input boost for the A53 cluster as shown in the screenshot, all cores continue to boost to 1344 regardless of what I have it set at.
[OnePlus 2 Original Android Development] poondog:
Can you screenshot your governor settings? Perhaps it's your governor boosting the cpus

Maybe too its the scheduled, I think I remember there being scheduled boosting in this kernel
[OnePlus 2 Original Android Development] return.of.octobot:
Sure, but there's not much to see, my governor tunables are stock with the exception of I/O is busy.

If there's something I'm overlooking, by all means, I'm open to suggestion.

What makes me believe that it's input boost related is that it jumps to 1344 every time I touch the display, no exceptions, and then drops back to 384 after a number of seconds.
[OnePlus 2 Original Android Development] avinashadvani:
Sorry didn't understand.. You mean if I use the kernel I need to install synapse and use synapse to tweak it? Can't just use the stock setting of the kernel?
[OnePlus 2 Original Android Development] Hetalk:
Nope. He means you can continue without synapse and go with AK's default setup. :good:

If you want to try tweaks, then only you'd need synapse.
[OnePlus 2 Original Android Development] avinashadvani:
Perfect thank you both.
[OnePlus 2 Original Android Development] VelosCohagen:
What is this widget you have there for showing cpu status?

Gesendet von meinem ONE A2003 mit Tapatalk
[OnePlus 2 Original Android Development] grongo:
It's PerfMon by Chainfire.
[OnePlus 2 Original Android Development] slave2007:
It is solved

Gesendet von meinem ONE A2003 mit Tapatalk
[OnePlus 2 Original Android Development] VampireHeart:
Now on v014 I have a good battery life, this is with first charge and using Kernel Adiutor.

CPU governor is set to conservative and I have also xposed with greenify and amplify plus other modules.
[OnePlus 2 Original Android Development] Stylo King:
Please use the AK Discussion and Profiles thread for discussions like these and for posting screenshots of battery stats.

Thanks.
[OnePlus 2 Original Android Development] shannanea:
Does Amplify effectively work, could you share a screenshot of Amplify stats?
[OnePlus 2 Original Android Development] grongo:
It seems so.
[OnePlus 2 Original Android Development] VampireHeart:
Sorry, I have posted now on the right thread.

I have tried to delete my previous post but I think isn't possible.
[OnePlus 2 Original Android Development] duminduweera:
View attachment 3511774

A57 cluster's conservative governor settings resets after a deep sleep, i reckon its the same thing as A57 min num of CPUs not sticking.

Btw, I don't have any other kernel tuning apps.

Running AK0.14 CM version on exodus.
[OnePlus 2 Original Android Development] suhridkhan:
In AK we trust.... default settings is the best settings! ?
[OnePlus 2 Original Android Development] lilrob1213:
I didn't find anything that says bugs, but are there any? Does the camera and fingerprint sensor still work? Sorry if I just overlooked this. Thanks
[OnePlus 2 Original Android Development] Hetalk:
Yes, camera and fps will work, if your ROM supports it.

That said, only stock oxygenos does support fps, so far.
[OnePlus 2 Original Android Development] ubermood:
I'm not sure if I'm missing something, but since version 14 (I think) of AK kernel (OP2, Oxygen 2.1.1) I am not able to activate / deactivate any of the big cores on the CPU. I'm currently using Kernel Adiutor. Whatever I do it simply reverts back to use 2 of the cores..

Is this normal and just how it should be "by design"? (have not tried Synapse yet)
[OnePlus 2 Original Android Development] ebanreb37:
Use snypse
[OnePlus 2 Original Android Development] CounterC:
Suddenly I open synapse and I get this

Didn't change anything...
[OnePlus 2 Original Android Development] Stylo King:
Open Synapse when your Battery reaches >22% and it will be normal, It is because the Big Cores are always shut down when battery reaches below 22%.
[OnePlus 2 Original Android Development] CounterC:
I think you mean > 22%?

Thanks anyway, it's solved.
[OnePlus 2 Original Android Development] Stylo King:
"Greater than" 22% :p Sorry for the typo.
[OnePlus 2 Original Android Development] yarpiin:
Been talked about before Synapse is like a woman sometimes have her moods :p Wipe synapse data -> force stop -> reboot . If it wont help wipe synapse data-> force stop->recovery-> re flash kernel
[OnePlus 2 Original Android Development] poondog:
Powerhal maybe? That's something that comes to my mind
[OnePlus 2 Original Android Development] ak:
Yes correct my friend. :good: