yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] Lijop:
My settings goes back to default after rebooting. It doesn't stick permanently. Any solutions guys?
[Nexus 4 Original Android Development] malcho:
I don't think it's big improvements from nexus 4.

But nexus 6 with 64 bit that's something...
[Nexus 4 Original Android Development] ak:
:D

thanks my friend ... so n6 will be my next phone ....
[Nexus 4 Original Android Development] RootNightmareX:
Or LG G3 that will be announced at the end of this month.
[Nexus 4 Original Android Development] apb_axel:
Yes! More ak goodness until then. :D
[Nexus 4 Original Android Development] ak:
yes ... and also N4UKM supercoding time ..... yessssssssssssssssss ;)
[Nexus 4 Original Android Development] malcho:
Ha ha.

Seriously nexus 4 is great device.

I think only phone with 4gb of ram and 64 bit support can impress me right now;)

So let's enjoy our phones
[Nexus 4 Original Android Development] Hubaqu:
Totally agree with you only a very powerful phone to make me upgrade from the N4. :cool:
[Nexus 4 Original Android Development] iRefleX202:
Settings?

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] TheNerd:]:
I gotta say AK you'll be a blessing wherever you go..... I just hope we'll end up with the same device again! :D
[Nexus 4 Original Android Development] boardlord:
After some time Synapse cannot set the min. Cpu frequency...
[Nexus 4 Original Android Development] gorilla p:
This has happened to a number of people and there's been a number of resolutions. Post the issue in the UKM thread as it isn't an AK issue. Just make sure you're using the latest UKM script.

Sent From My Google NeXuS⁴
[Nexus 4 Original Android Development] Sp_Ark:
I donated some weeks ago, a small amount though, just for a beer. I found your donation link at the site you used to upload some versions, when your server was down. Can you confirm you received something?
[Nexus 4 Original Android Development] THEBANDIT420:
Try going into the general section of trickster mod and turning off frequency lock, works for me.
[Nexus 4 Original Android Development] blusydays:
http://xdaforums.com/showpost.php?p=52665961&postcount=7051
[Nexus 4 Original Android Development] 3n3rg1c:
Hmm my selected tweaks seems to work fine with ak :)

I tried benchmarks wit 6-9 apps apps running in background and got amazing results in interactive governer 1.5 & 1.7 GHz :D
[Nexus 4 Original Android Development] poondog:
you'll hate it. On HTC new flagships, they strip all comments from the kernel source, so it makes patching a pain. For an upstream Linux patch for example there may be 5 rejects sometimes even more because the diffing can't be done due to it not finding the correct places because there are no comments
[Nexus 4 Original Android Development] deani77:
What ROM was that?

Sent from my Mako running CarbonROM + Moob Kernel
[Nexus 4 Original Android Development] 3n3rg1c:
NEXUS 5 Experience rom & same result with cm11 latest nightly
[Nexus 4 Original Android Development] boardlord:
If I set min. cores online to 2,the second core tends to be stuck on 1350Mhz for a long time before going back to 384Mhz... (my min. freq)
[Nexus 4 Original Android Development] karthi89:
Reported 2 days ago. No response
[Nexus 4 Original Android Development] ak:
you can play with tunables for place down cpu after some time.
[Nexus 4 Original Android Development] ak:
interactive

I have rewrite the init.d script for Interactive and added tuning specific for mako.

Can anyone test and report?

thanks

ak

steps:

remove.txt extension

place into init.d folder

chmod 755 /system/etc/init.d/00ak

reboot

View attachment 00ak.txt
[Nexus 4 Original Android Development] boardlord:
We have a winner sir :D The second CPU ramps down fine :)

But you might look at the Hotplug tunabel "Fast Lane Load" since the default setting seems to be 95, and the description says that with the used metric it doesn't go above 78 :)
[Nexus 4 Original Android Development] stavca:
didn't fix slow downscaling of second core for me and weird thing is that it is "stuck" at 1350MHz which I don't have set as some threshold
[Nexus 4 Original Android Development] boardlord:
Try setting "Fast Lane Load" in Synapse under HOTPLUG to around 60...

Edit: Hmmm maybe I was overenthusiastic, second core still hovers on 1350Mhz too long...
[Nexus 4 Original Android Development] PityOnU:
I am having trouble trying to compile and flash this kernel from source (I need to do this as I am making some changes to hopefully add functionality). Here is what I am doing:

1. Go to AK's site and follow the links to the kernel Github

2. Download the .zip file of latest version (243 or something like that)

3. Extract the .zip to a directory on disk

4. Cd to the root of that directory

5. Edit "ak-mako-build.sh" to reflect all the correct system paths and only build the kernel zImage. Ends up looking like:

#!/bin/bash

# Add Colors to unhappiness
green='\033[01;32m'
red='\033[01;31m'
blink_red='\033[05;31m'
restore='\033[0m'

clear

# AK Kernel Version
BASE_AK_VER="AK"
VER=".243.EXODUS.MAKO"
AK_VER=$BASE_AK_VER$VER

# AK Variables
export LOCALVERSION="~Pity"
export CROSS_COMPILE=arm-linux-gnueabi-
export ARCH=arm
export SUBARCH=arm
export KBUILD_BUILD_USER=PityOnU
export KBUILD_BUILD_HOST="kernel"

DATE_START=$(date +"%s")

echo -e "${green}"
echo "------------------------"
echo "Show: AK Mako Settings"
echo "------------------------"
echo -e "${restore}"

KERNEL_DIR=`pwd`
ZIMAGE_DIR=${HOME}/Download/kernel_copy/arch/arm/boot

echo -e "${red}"; echo "COMPILING VERSION:"; echo -e "${blink_red}"; echo "$LOCALVERSION"; echo -e "${restore}"
echo "CROSS_COMPILE="$CROSS_COMPILE
echo "ARCH="$ARCH
echo "KERNEL_DIR="$KERNEL_DIR
echo "ZIMAGE_DIR="$ZIMAGE_DIR

read -p "Press [Enter] key to continue..."

echo -e "${green}"
echo "-------------------------"
echo "Making: AK Mako Defconfig"
echo "-------------------------"
echo -e "${restore}"

make "ak_mako_defconfig"

read -p "Press [Enter] key to continue..."

make -j9

read -p "Press [Enter] key to continue..."

echo -e "${green}"
echo "-------------------------"
echo "The End: AK is Born"
echo "-------------------------"
echo -e "${restore}"

cd $KERNEL_DIR

echo -e "${green}"
echo "-------------------------"
echo "Build Completed in:"
echo "-------------------------"
echo -e "${restore}"

DATE_END=$(date +"%s")
DIFF=$(($DATE_END - $DATE_START))
echo "Time: $(($DIFF / 60)) minute(s) and $(($DIFF % 60)) seconds."
echo

6. Execute "ak-mako-build.sh" with no errors

7. Download the flashing .zip provided in the original post of this thread

8. Extract the flashing .zip and replace the ./kernel/zImage with mine

9. Rezip the files

10. Transfer new flash .zip to Nexus 4

11. Install using TWRP

12. Reboot N4

The device boots absolutely no problem, but completely locks up when it attempts to access the WiFi status (third screen of first boot with AOSP system image). If I wipe the /data and /cache partitions from TWRP (thus breaking WiFi) the device boots up and runs no problem, just without (obviously) WiFi or N4UKM or anything else that has been wiped.

I get these symptoms even when performming a compile of the unmodified source - so it's not any additional code that is breaking anything.

I was curious if anyone here knows if there is something I am obviously missing or doing incorrectly. I'm at a bit of a loss :/
[Nexus 4 Original Android Development] ak:
Can you provide log during the problem?
[Nexus 4 Original Android Development] deani77:
Was this normal for interactive gov on synapse apps?

Sent from my Mako running CM11 ROM + AK Kernel
[Nexus 4 Original Android Development] PityOnU:
I want to but I can't seem to figure out how. My understanding is that the problem is likely at the kernel level, so a dump regarding the problem would be a /proc/last_kmsg.

However, in order to boot into Android on the device after it locks up trying to access WiFi, I need to boot in TWRP to wipe the /data and /cache partitions. TWRP the proceeds to overwrite /proc/last_kmsg with its own kernel logs, so by the time I boot back into functional Android, I can't actually retrieve the system logs from when I was having the problem.

If there is another way for me to get the logs, please let me know and I'll get it ASAP because I, too, really want to know what's going wrong.
[Nexus 4 Original Android Development] xenyz:
Typo on line 43… should be 1026000 instead of 1206000?
[Nexus 4 Original Android Development] ak:
right ... typo ... thanks a lot:

diff --git a/cwm/system/etc/init.d/00ak b/cwm/system/etc/init.d/00ak
index e902a10..f8b1ee8 100755
--- a/cwm/system/etc/init.d/00ak
+++ b/cwm/system/etc/init.d/00ak
@@ -40,7 +40,7 @@ echo "interactive" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
# 200000 uS is used until speed 1.5 GHz, at which speed (and above)
# delay 40000 uS is used. If speeds are specified these must appear in
# ascending order. Default is 20000 uS.
-echo "20000 1206000:40000 1350000:20000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
+echo "20000 1026000:40000 1350000:20000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
[Nexus 4 Original Android Development] ak0r:
Why I get colors darkened after flashing this kernel?
[Nexus 4 Original Android Development] ak:
Mmm probably because pa color inside ... ?

Ak from Dante's Inferno!
[Nexus 4 Original Android Development] ak0r:
Sorry but I didn't get this. Is there any way to change colors?
[Nexus 4 Original Android Development] ak:
Yes trickster or synapse

Ak from Dante's Inferno!
[Nexus 4 Original Android Development] ak0r:
Great!!! Thanks a lot.
[Nexus 4 Original Android Development] iRefleX202:
For some reasons 3 cores are locked at 1.35 ghz. But I set the highest frequency to 1GHz.

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] edilber:
dalvikteak ?

which is the best setting for games dalvik.vm.heapsize if someone can explain to me exactly help lower or raise really appreciate it, even if it affects the battery. excuse my English.
[Nexus 4 Original Android Development] Almayce:
I can confirm that core 3 goes up to 1350 when max is set at 1242. Other than that, kernel works perfectly.
[Nexus 4 Original Android Development] jolas:
Corrected (line 43 typo) and inserted this script and no problems with stacking cores...

...and it feels even smoother!!!

Thanks you [MENTION=3685904]ak[/MENTION] :)

Sent from my Nexus 4
[Nexus 4 Original Android Development] xenyz:
ak's new kernel in one pic. My mako is chillin':
[Nexus 4 Original Android Development] jmtjr278:
@ak

Confirmation number:￼38P95363H1053403D

For you and all your great work my friend. Thanks. Have a drink on me
[Nexus 4 Original Android Development] TheKnux:
What are your settings and are you using Synapse?
[Nexus 4 Original Android Development] xenyz:
Decided to go all ak this time round with the new init.d script. My only change is 162-1512 MHz freqs. Not really using Synapse... yet.
[Nexus 4 Original Android Development] xenyz:
ak has faux's gamma. You have to change kgamma_red to kgamma_r (and green to g, blue to b) and your first script will work. The second script is unnecessary; fsync is on and there's no faux dynamic fsync.
[Nexus 4 Original Android Development] iRefleX202:
What is wrong?

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] TheKnux:
The init.d script that comes with the kernel or a separate flashable one?

Sent from my 1961 XP-755
[Nexus 4 Original Android Development] xenyz:
I bet you have to re-set the governor and cpu_boost settings if you want max freq under 1328 MHz. I'm not sure exactly what happens if scaling max freq is lower than gov settings, but I think you just found out.
[Nexus 4 Original Android Development] iRefleX202:
Ok but how I reset it If I use synapse?

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] xenyz:
I could be wrong but I don't think n4ukm/synapse has governor settings yet, you have to set via terminal or script. Best to try it with default settings before changing things.
[Nexus 4 Original Android Development] Almayce:
Yes it has, you should try it. There is pretty much everything in it if you flash the zip from axel.

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

Would you look at this? So weird. I left the phone overnight with approximately 50% and I wake up to loading screen. When I reboot it nothing happens, so I plug in the charger and voila - 0%. Also the graph looks very weird.
[Nexus 4 Original Android Development] azrash:
Thanks very much for helping out. Will flash the kernel soon.
[Nexus 4 Original Android Development] chewu.pg:
Can anybody help me with these wakelocks... Cant seem to figure out alone.
[Nexus 4 Original Android Development] mimsiroll:
Reverted back to ver 241, previous 241 is much stable for me and not ramping to 1.35ghz everytime and the fast lane is set to 72 by default om latest apx synapse 1.5.
[Nexus 4 Original Android Development] ak:
Default governor is changed ... and a lot of tuning is necessary ...

the best thing and help improve not just go back.

The beauty is that you will go on and on .... then: you contribute.
[Nexus 4 Original Android Development] zorginho:
Hey AK it's possible to add the mohitgalaxy3 kel_glu modded in synapse? It's in app kellscore manager and is perfect.

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] apb_axel:
I'll add it on the next release ;)
[Nexus 4 Original Android Development] ak:
New toolchain is up

http://xdaforums.com/showthread.php?p=52729091

Ak from Dante's Inferno!
[Nexus 4 Original Android Development] stavca:
I tried to UV GPU even more so now it's -100mV and it runs ok!! no problems running benchmarks of "heavy" 3D games, but what's the best is that CPU temp don't want to go over 50°C!! and I have CPU OCed to 1728MHz...it's simply brilliant :)
[Nexus 4 Original Android Development] xenyz:
Tried to smooth things out a bit with everyone's favorite app -- Tapatalk

--- sdcard/Download/00ak
+++ etc/init.d/00ak
@@ -11 +11 @@
-max=1728000
+max=1512000
@@ -61 +61 @@
-echo "90" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
+echo "99" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
@@ -69 +69 @@
-echo "40000 1350000:80000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
+echo "60000 1350000:80000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
@@ -113 +113 @@
-echo "50" > /sys/devices/system/cpu/cpufreq/interactive/up_threshold_any_cpu_load
+echo "90" > /sys/devices/system/cpu/cpufreq/interactive/up_threshold_any_cpu_load

[MENTION=3685904]ak[/MENTION] the docs say:
[Nexus 4 Original Android Development] mimsiroll:
[MENTION=3118524]xenyz[/MENTION]. Hey dude, are u using the latest version??? And btw, ive fixed what you've noticed on the init.d, the 1026000, but I'm still experinceing the ramp of 1.35ghz on 3 cores so i decided to revert back to the previous version..so what have you been doing to prevent that kind of thing??

And can you enlighten me on the u.v'ng the gpu frequency? And the benefits and the downside?? Even the multicore power saving the minimal to aggresive thing? And fast lane load??? Hahah..i hope OP can answer my question although i know he alresdy made it understandable just by reading the description but I'm still kind of having problem comprehending software language.
[Nexus 4 Original Android Development] jolas:
I also have done the same and not having any ramp problems...

Sent from my Nexus 4
[Nexus 4 Original Android Development] Rembi:
Will he return to 1944mhz overclocking option?

Wysłane z Nexus 4 przy użyciu Tapatalk.
[Nexus 4 Original Android Development] stavca:
just look at the CPU load when in idle and you'll see it, one core will run at your min CPU freq and another will run at 1350MHz for a few seconds and then it will go to your min freq...
[Nexus 4 Original Android Development] jolas:
Oh, then I misunderstood what he meant...

Then, I also have this behavior, but don't think it is a real problem since as can been seen in picture, it spend less time in 1350, than e.g.918 or 702...

Sent from my Nexus 4
[Nexus 4 Original Android Development] bart.found:
Hi! I'm giving a try to this kernel.. And till now it seems to be good and stable! Is it possibile to set the default GPU clock?
[Nexus 4 Original Android Development] alivelee6:
Amazing smooth after update to the newest kernel
[Nexus 4 Original Android Development] FrozenLord:
What do you mean by default clock?

You can change the GPU's max clock via the usual programs and especially via Synapse.

The GPU will scale between the max clock (default is 487 MHz) and 27 MHz on its own, similar to the CPU's clock speed.
[Nexus 4 Original Android Development] bart.found:
for default I mean stock 400MHz..
[Nexus 4 Original Android Development] stavca:
if you mean 400MHz...no, it's not possible
[Nexus 4 Original Android Development] clockworkstop:
This is a known bug, yes?
[Nexus 4 Original Android Development] apb_axel:
It happens sometimes, just exit/enter the app the fix it.
[Nexus 4 Original Android Development] xenyz:
It's the input boost from cpu_boost module. You can turn it off if you want:

( [MENTION=5658634]apb_axel[/MENTION], more tunables! )

echo "0" > /sys/module/cpu_boost/parameters/boost_ms
echo "0" > /sys/module/cpu_boost/parameters/sync_threshold
echo "0" > /sys/module/cpu_boost/parameters/input_boost_freq
echo "0" > /sys/module/cpu_boost/parameters/input_boost_ms

Or just comment out the section in 00ak init.d script and reboot.

I don't mind the input boost, I think it helps a lot with making the device more responsive. ak's kernel is definitely one of the quickest around.

I'm not sure about UV on the GPU, I haven't tried it yet. I'll give it a shot this week and see if there's any difference in heat or energy use. I saw another poster said he had good results with the device staying cooler while gaming.

Multicore power saving I'm not sure will work with default ak settings, as he has set 2 CPUs boosted. It could help when the device is idle, though. You'd have to test it by recording CPU time with it on and off.

Fast lane load is new in myfluxi hotplug, if you check his github he recently changed how he calculates load, so 78 max/72 default before, 100 max/95 default now. It onlines all cores if load average remains above the setting for a certain time ( trying to figure out how long , it looks like a weighted average over time, just not sure how much time )

If the CPU governor ramps to max freq, input boost onlines a second core, but it's not enough, the hotplug driver onlines all CPU cores at max freq to deal with the spike in demand.

Anyway give v243 a shot again with the new 00ak script with my patch and you should be happy with performance, or switch back to ondemand -- it's still a perfectly fine option.
[Nexus 4 Original Android Development] ak:
thanks a lot ... all your suggestions will be into the next release .... :good: :good:
[Nexus 4 Original Android Development] ak:
thanks [MENTION=5658634]apb_axel[/MENTION], do you think lock/unlock for bootloader is necessary?
[Nexus 4 Original Android Development] apb_axel:
No problem ;)

---------- Post added at 12:26 PM ---------- Previous post was at 12:23 PM ----------

Well maybe for those who want to return their device for warranty, other than that not really. Just added it for fun and because trickster already had it :)
[Nexus 4 Original Android Development] mimsiroll:
Thanks for the explanation! Never thought I'd get a good response haha..so the script you just gave out is placed on the 00ak script? Can i use your ondemand script?? Ak told me that there's a newer version of governor which is again interactive right?
[Nexus 4 Original Android Development] clockworkstop:
[MENTION=3685904]ak[/MENTION] are you happy with the synapse icon? I'd be glad to make you a few different versions, maybe with the new settings icon or something like that
[Nexus 4 Original Android Development] xenyz:
Can anyone else think of other crappy-coded or non-optimized apps like Tapatalk to help 'stress-test' CPU governor settings?
[Nexus 4 Original Android Development] clockworkstop:
Facebook, youtube, sliding messaging (not crappy coding, but very cpu intensive), a lot of reddit apps... you choose
[Nexus 4 Original Android Development] mimsiroll:
How bout G+?
[Nexus 4 Original Android Development] ak:
Cool ... if you have some ideas post it into the synapse g+ community:

https://plus.google.com/communities/108137360526908770337?partnerid=gplp0

ideas concerning the application should be proposed to @AndreiLux.

thanks a lot for support.
[Nexus 4 Original Android Development] edilber:
dalvik.vm ?

someone please explain dalvik.vm.heapsize? which is better for gaming, more or less.
[Nexus 4 Original Android Development] apb_axel:
I think the default is a pretty good overall setting but you can play with it a little to find the sweet spot, just don't set it too low or your applications will start crashing because of the low memory. In theory it goes like this Higher = more battery friendly but more memory is used, Lower = Less battery friendly (because when it reaches the maximum memory the application will start using more CPU power) but less memory is used. Hope that helps ;)
[Nexus 4 Original Android Development] ernestnwanu:
the latest init.d script bootloops my phone. Should it replace it the one already there, or should I have both scripts in there?
[Nexus 4 Original Android Development] iRefleX202:
How do you Guys get such an awesome battery life? I Get only 2h of sot and even with -100 UV and underclock to 1026mhz

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] The Tox:
What rom are u using ?

Envoyé de mon Nexus 4
[Nexus 4 Original Android Development] iRefleX202:
CM11

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] The Tox:
i would suggest giving mahdi rom a try , best rom IMOP , even [MENTION=3685904]ak[/MENTION] is using it :laugh:
[Nexus 4 Original Android Development] tuilalnvinh:
Hi AK, do you have plan to update kernel to gcc 4.10 as this one http://xdaforums.com/showthread.php?p=52663599 :D
[Nexus 4 Original Android Development] TheKnux:
[MENTION=3685904]ak[/MENTION] I don't know if it's my place to say this or not cause I don't want to offend you guys but if you and [MENTION=2923435]barome[/MENTION] got together and exchanged ideas, you guys could possibly make the best kernel ever for our phones!

I say that because I've been looking through threads and you guy's two kernels are literally the only two that people really use. With his battery performance and your gaming performance, you guys could make the ultimate kernel. ;)

Sent from my 1961 XP-755
[Nexus 4 Original Android Development] ak:
The only solution is a fresh install of the rom. :good:
[Nexus 4 Original Android Development] ak:
Thanks ... @barome is a fantastic developer ... there is already a silent partnership. it's just a matter of feeling the choice of a kernel or another. :good:
[Nexus 4 Original Android Development] TheKnux:
Both of you are fantastic developers. I tend to flash whoevers kernel is the latest until another updates and I was thinking it would be amazing to have just one kernel with both of your ideas, if that happened, our N4's would be untouchable. ;)

Keep up the great work, both of you.

Sent from my 1961 XP-755
[Nexus 4 Original Android Development] xenyz:
@ak, another config to test.
[Nexus 4 Original Android Development] iRefleX202:
[MENTION=3685904]ak[/MENTION] please Help me

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] xenyz:
Did you remember to re-set cpu_boost and interactive settings for the lower freq? Everything is currently set up for 1512-1728 MHz.
[Nexus 4 Original Android Development] iRefleX202:
Where can I reset cpu_boost?

Gesendet von meinem Nexus 4 mit Tapatalk