yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] xenyz:
Hey, no vacation just been away from hackin the mako.

Here, try this script:

/etc/init.d/00ak:

#!/system/bin/sh
#
# AK
#

# set freqs clock at boot
min=162000
max=1512000
echo "$min" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "$min" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo "$min" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
echo "$min" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
echo "$max" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "$max" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo "$max" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
echo "$max" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq

# set governor

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

# ondemand tweaks

echo "0" > /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
echo "0" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
echo "0" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias
echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
echo "30000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
echo "35" > /sys/devices/system/cpu/cpufreq/ondemand/touch_load
echo "1000" > /sys/devices/system/cpu/cpufreq/ondemand/touch_load_duration
echo "25" > /sys/devices/system/cpu/cpufreq/ondemand/touch_load_threshold
echo "95" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

# io scheduler

echo "bfq" > /sys/block/mmcblk0/queue/scheduler

# tcp congestion control

echo "cubic" > /proc/sys/net/ipv4/tcp_congestion_control

# set conservative gpu policy
#echo "conservative" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/policy
[Nexus 4 Original Android Development] mimsiroll:
What can you say about the tripndroid?

And my phone happened to use -100mv but for faux app its -96mv.
[Nexus 4 Original Android Development] ak:
Voltage user fs isnt based on faux ... so the app can report incorrect values.
[Nexus 4 Original Android Development] mimsiroll:
Synapse or trickster then?
[Nexus 4 Original Android Development] ak:
You can use APB_Axel mod for synapse

ak
[Nexus 4 Original Android Development] icu64:
What's APB ?
[Nexus 4 Original Android Development] mimsiroll:
All good ak, thank you.. Can you suggest cpu temp and battery temp and ksm stuffs and

Zram or can i use faux's settings in his g+ ?? https://plus.google.com/109078966818501160423/posts/RQfbY1ViwHf..apologies for asking too much or if ever any other suggestions from members will do and would be highly appreciated. Thank you
[Nexus 4 Original Android Development] lonnieboy:
Check it out:

http://xdaforums.com/nexus-4/general/zip-synapse-script-n4-universal-kernel-t2736986
[Nexus 4 Original Android Development] dEris:
Otg works for me using patched kernels. This kernel doesn't enable otg. Someone also said to use trickster, no option in there either. Any suggestions?
[Nexus 4 Original Android Development] fr3quency:
http://xdaforums.com/nexus-4/general/zip-synapse-script-n4-universal-kernel-t2736986
[Nexus 4 Original Android Development] ak:
You have to use synapse and enable otg.

Nb. Modded ramdisk is necessary

ak
[Nexus 4 Original Android Development] dEris:
OK I enabled it in synapse. Can you elaborate on "modded ramdisk is necessary?" I don't understand. Sorry for being ignorant. Is that something I can enable or do? Thanks!
[Nexus 4 Original Android Development] icu64:
Please tell me there is a thread that explains the different options lol I'm confuses. Like the hotplug option... It has a check mark in the box under it so does that mean mp_decision is turned on or off? Hard to tell what setting is being applied
[Nexus 4 Original Android Development] ak:
you can use sticky mount app ... ore flash before ziddey kernel and then ak.
[Nexus 4 Original Android Development] ak:
you can use - synapse - all options are explained under the toggle.
[Nexus 4 Original Android Development] icu64:
That's what I'm using bro, the explanation under the toggle is confusing because its no telling me if the switch turns on your hotplug drive (that I want to use) or if that means mp_decition is on.... Excuse my stupidity lol
[Nexus 4 Original Android Development] dEris:
I must be doing something wrong. I did what you said, now when I go to storage, settings fc. Blah
[Nexus 4 Original Android Development] nokiagye:
The Franco module of touch control don't working any more on 232
[Nexus 4 Original Android Development] montbazon:
Go and blame touch control's owner.

That's not ak's fault

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] ak:
I know. tc support is disabled.
[Nexus 4 Original Android Development] ak:
Works for me. check your side.
[Nexus 4 Original Android Development] dEris:
1) Flash ROM

2) Flash GApps

3) Flash ziddey kernel (any?)

4) Flash AK

5) Boot up

6) Enable OTG in Synapse

7) Reboot (just in case)

8) Check storage under settings (instant fc)

I'm using crDroid.. That shouldn't matter right.. Since it's CM11 base.

Thanks for helping.

-------------------------------------------------------------------------

[DEVICE : N⁴] [ROM : SLIMKAT] [KERNEL : FK204-OTG]

[LAUNCHER : NOVA] [CARRIER : T-MOBILE]

[SCREENSHOT : APR.13.2014]

​
[Nexus 4 Original Android Development] tvisforme:
Hmmm... not sure if this is the kernel, but I'll put it out there. I've noticed over the past few days that the GPS in my N4 hasn't been working correctly all the time. It appears in Now where locations are off, and in weather apps too. It is as if the system is taking location from the cellular net rather than GPS. I've checked all the settings for Locations and they are the same as before. I'm seeing the issue with AK's 227 and 233 releases. I've just flashed back to v223 (still with the latest nightly) and the GPS is now happy. Thoughts?
[Nexus 4 Original Android Development] ak:
can you post step by step for reproduced the problem?

thanks a lot.
[Nexus 4 Original Android Development] pianistaPL:
Hello, ak, nice to see you! You are doing extremaly great job for mako!
[Nexus 4 Original Android Development] mimsiroll:
@ak, i told you man! This is bromance!! Ak's fans club..told you to wear thst gas mask and don't reveal your awesome look..hahahahahaah.. Ak' fan's club ftw.
[Nexus 4 Original Android Development] nokiagye:
Here is the kernels with otg http://xdaforums.com/nexus-4/development/kernel-patch-hells-core-kernel-otg-t2586524

If you flash Franco you I'll need to flash a su zip I use the hells
[Nexus 4 Original Android Development] montbazon:
Ciao! ak

I have a question. Why did you remove higher freq?

IMHO it was a quite good option for some user like me[emoji14]

It's not forced, just option[emoji6]

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] ak:
Because new gcc 4.9 and math opt not complain with freqs higher than 1728Mhz.
[Nexus 4 Original Android Development] montbazon:
Thanks!

That's simplest and clearest answer[emoji1]

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] apb_axel:
If the toggle is checked it's enabled, if it's unchecked it's disabled.
[Nexus 4 Original Android Development] The Tox:
I don't know if it's only me but if i set brightness to max , turn off screen , turn on , found that brightness reduced , i flached back 227 , all is good now :)

Envoyé de mon Nexus 4
[Nexus 4 Original Android Development] ak:
I have see the same .. You have to set max -1.

AK from N7 world.
[Nexus 4 Original Android Development] The Tox:
i don't understand , i change brightness from QS tiles :)
[Nexus 4 Original Android Development] ak:
If i set brightness to max and then do screen on off I can see the problem ... But if I set 254 max and make the same the problem don't happen. ?

AK from N7 world.
[Nexus 4 Original Android Development] suarez1907:
I use validus rom and ak exodus kernel. I am glad from these. But my phone reboots automatically many times a day. What can I do?

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Nexus 4 Original Android Development] jacomail95:
Sorry for asking, but just for curiosity, maybe the multicore power saving option can be included in a future version? :D

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Original Android Development] chewu.pg:
I kinda liked that option when i had HTC One X ... It really made difference with battery, would be nice to see it but since you can control hotplug mechanism in this kernel , i don't really know if it would be useful ... [MENTION=3685904]ak[/MENTION] what do you think :) ?
[Nexus 4 Original Android Development] lonnieboy:
Love it when I wake up and see my mako sleeping like a baby.

Cheers for all this ak!!
[Nexus 4 Original Android Development] xenyz:
I was hoping ak would comment on this one actually.

What I've found is that deadline, row and bfq are really good actual schedulers, i.e. when lots of IO requests are happening simultaneously. Truth be told, for most of the time, I bet the noop scheduler is the best. Just get it done, ASAP. It's only when your device gets bogged down with multi-tasks that the others are useful, and that doesn't happen too often.

I usually pick row but since ak included bfq, I'm going to run with it for a while.
[Nexus 4 Original Android Development] ak:
you can use the guides into op and post last kmsg
[Nexus 4 Original Android Development] ak:
tripndroid:

http://xdaforums.com/showthread.php?t=2379748
[Nexus 4 Original Android Development] mimsiroll:
Xenyz, have u been experiencing small stutters on your phone.. After i used your script and apb's zip ive noticed small stutters compared to when im using interactive, there's this synapse java problem which indicates that a cetain freq can't be read..(well i totally forgot the real description and i dont know if it's good to tell it to you..)
[Nexus 4 Original Android Development] xenyz:
No, not at all actually, v232 is rockin' for me. Even Tapatalk, which is notorious for stuttering, is running pretty smooth.

Which apps are stuttering for you? Did you make any other changes via Synapse?

You could try increasing touch_load back up to 65 or 75, or lowering up_threshold to 90 and see if it helps. Or go back to defaults?
[Nexus 4 Original Android Development] ivanich:
Sorry, I meant JLS and kernel for cm-10.2 of course:fingers-crossed:
[Nexus 4 Original Android Development] ak:
[MENTION=224418]gnome[/MENTION]

it is a duty and an honor! :angel:
[Nexus 4 Original Android Development] ak:
Tonigh ... i want to update all the mainlines:

jw cm10 and kk
[Nexus 4 Original Android Development] samuelrf:
the same really? you got 4 hours of battery only ?
[Nexus 4 Original Android Development] notbrodie:
I'm sure if I had let mine sit for eight hours, and then used it, I would've had similar stats. We had same screen time, plus I had 10% left

Sent from my Nexus 4
[Nexus 4 Original Android Development] 22sl22:
Been running the kit kat build for most of the day now, really good, no complaints, deep sleeping nicely. Can't really comment on battery because I have been experimenting with a few things
[Nexus 4 Original Android Development] samuelrf:
well...i haven't let it sit for eight hours but ok, stop now, resuming, good battery life :)
[Nexus 4 Original Android Development] ak:
new kernels are UP

[CM10.2 - CAF] KERNELS

ak kernel download: AK.103.CM10

Github Kernel: Link

[JWR - CAF] KERNELS​

ak kernel download: AK.103.JW

Github Kernel: Link

[KITKAT - CAF] KERNELS​

ak kernel download: AK.103.KK

Github Kernel: Link

changelog:

+ merged with cm10.2 branch - only cm10.2 and KK - flicker is gone? for me yes.

+ a lof of fixes from common 3.4 and 3.10 branch

+ added smartmax governor

+ ecc ecc ecc ...

As always thanks button.
[Nexus 4 Original Android Development] saint_cow:
It seems the graphical glitches are gone, thanks :thumbup:
[Nexus 4 Original Android Development] aaronrw:
I'm dumb this kk Linux version is 3.10? Thanks for the new toy :D
[Nexus 4 Original Android Development] 0.0:
Does device administrator work with the v103?

sent from my Nexus 4
[Nexus 4 Original Android Development] notbrodie:
Doesn't look like it. Still can't enable ADM

Sent from my Nexus 4

---------- Post added at 02:55 PM ---------- Previous post was at 02:43 PM ----------

@anarkia1976

Any chance you could make s2sleep aware of orientation? It stays with the nav bar with one landscape direction, but if you flip it 180, you have to sweep through the status bar

Sent from my Nexus 4
[Nexus 4 Original Android Development] dimon2242:
I always get flickering!
[Nexus 4 Original Android Development] notbrodie:
Just disable hw overlays

Sent from my Nexus 4
[Nexus 4 Original Android Development] genkralyz:
AK KK rocks! very snappy and flicker is gone! :D thanks [MENTION=1106390]anarkia[/MENTION] for the awesome update...
[Nexus 4 Original Android Development] saint_cow:
Make sure that CPU speed is up, it's low by default, and use interactive
[Nexus 4 Original Android Development] notbrodie:
Is that meant for someone else?

Sent from my Nexus 4
[Nexus 4 Original Android Development] FalenDemon:
[MENTION=3685904]anarkia1976[/MENTION]

Can you suggest more aggresive settings for hotplug? Like hellscore for example. Or some place where I can find out how to set up it by myself.
[Nexus 4 Original Android Development] saint_cow:
My bad sorry

---------- Post added at 10:34 AM ---------- Previous post was at 10:33 AM ----------

Check the CPU speeds, it was low by default when I flashed the kernel, also use interactive governor.
[Nexus 4 Original Android Development] mistersixt:
Hi AK,

my Nexus 4 running OmniRom constantly reboots after a short amount of time with version 232 (while the previous version 227 is stable), please find here last_kmsg: http://pastebin.com/vRrKdzDw

I am just overclocking the CPU a bit to 1728 MHz, with interactive and cfq. I installed Synapse, too, so that I can activate OTG. The rest is as it comes with your default settings.

Any help is welcome,

kind regards, mistersixt.
[Nexus 4 Original Android Development] sidnoit22:
It is rebooting because you are overclocking it. Try using 1.5 freq.
[Nexus 4 Original Android Development] mistersixt:
My Nexus-4 was (and still is) running absolutely fine with 227, also with other, older kernels, so I am pretty(!) sure it is related to something else...

Regards, mistersixt.
[Nexus 4 Original Android Development] ken_alpha24:
Maybe check the log. I don't think it has anything to do with overclocking. Ak's overclock speeds are pretty stable provided that the user didn't touch anything on IV settings. The kernel didn't panic either. Something related to msm_hsic? I'm not sure.
[Nexus 4 Original Android Development] ak:
The log is inconsistent:

[ 0.000000] Booting Linux on physical CPU 0

[ 0.000000] Initializing cgroup subsys cpu

[ 0.000000] Linux version 3.4.0-Bricked-TWRP-Edition-g27406e9-05626-gc3e7a05 (showp1984@jarvis) (gcc version 4.7.2 20120910 (prerelease) (Linaro GCC 4.7-2012.09) ) #1 SMP PREEMPT Sat Nov 2 21:45:13 CET 2013

[ 0.000000] CPU: ARMv7 Processor [510f06f2] revision 2 (ARMv7), cr=10c5387d

your phone soft-reboot ... probably related to rom.
[Nexus 4 Original Android Development] mistersixt:
Damn, you are probably right: I entered recovery after the crash in order to get installed a working kernel again... and the above last_ksmg is from TWRP. So how do I get a last_kmsg from your kernel when it reboots/crashed? I have no chance to open a terminal and copy last_kmsg as it reboots a few seconds after having unlocked the screen/entered the PIN code.

Regards, mistersixt.
[Nexus 4 Original Android Development] ak:
You can't, because it isnt a kernel crash.
[Nexus 4 Original Android Development] TheKnux:
What app are you using to tune your kernel and what do you have everything set at? I charged my phone to 100%, went to bed and it was at 98%, woke up and it was 38%, WTF.

I checked wakelock detector and it says it was only awake 4% of the time and Google Search woke it 65 times, I would like to find out the culprit if I somehow can.
[Nexus 4 Original Android Development] ken_alpha24:
Check if there were apps runnin in the background. Before you sleep make sure to kill all recents apps and free up the RAM to kill apps. And by looking at it, you have so-so mobile signal which will drain yur nattery but no that much though. Wifi is also turned on all the time, make sure you are connected to a network or it will end up searching for one. Lastly, check your kernel settings and see if you have deepsleep or not.
[Nexus 4 Original Android Development] TheKnux:
I always clear my recent everytime I leave an app (habit). My deep sleep was 52% and I always leave my WiFi on at night and all the time. I just wanted to know what governor and what not you were using and also what app you were using to tweak everything.
[Nexus 4 Original Android Development] lonnieboy:
I use synapse to tune my apps and I flash the Universal Kernel Manager addon by apb_axel.

CPU set at 81 - 1350. Undervolt by -50. Tripndroid set at 1024 readahead.

I also have double tap to wake on.

I greenify some apps and use wakelock blocker to block audiomix, which seems to be the main thing that keeps my phone awake.

Also, I was using liquidsmooth 5/3.

Dont think I've missed anything :p

Hope some of this helps :good:
[Nexus 4 Original Android Development] Gallardo994:
There's a bug with brightness after you enable the screen. It doesn't do its max unless you change the brightness, even if it's running the max one. Dunno which logs to get, tell me if you need.
[Nexus 4 Original Android Development] TheKnux:
+1

---------- Post added at 07:42 AM ---------- Previous post was at 07:41 AM ----------

Where did you find the Universal Kernel Manager add on and did you undervolt everything?
[Nexus 4 Original Android Development] ak:
I have replied before to this question, check thread.
[Nexus 4 Original Android Development] TheKnux:
My bad, I did a Google search and found what I was looking for.
[Nexus 4 Original Android Development] ak:
No problem. ;)
[Nexus 4 Original Android Development] TheKnux:
Ever since I flashed UKM, my phone is acting wonky. I used to have 1.1-1.2 GB free ram, now I have around 5-700 MB free. My phone is acting laggy and and Nova launcher keeps crashing.
[Nexus 4 Original Android Development] ak:
what is UKM?
[Nexus 4 Original Android Development] pianistaPL:
Universal Kernel Manager, i believe :)
[Nexus 4 Original Android Development] TheKnux:
C'mon man, we were just talking about this. You told me that you posted something about it in your thread and I told you I searched for it and found it. :P
[Nexus 4 Original Android Development] ak:
Man ... if you use acronyms, I can not guess what you mean. :good:
[Nexus 4 Original Android Development] TheKnux:
You're a kernel dev dog, I thought you would've figured it out. Lol
[Nexus 4 Original Android Development] ak:
Clean install iyw.

ak
[Nexus 4 Original Android Development] TheKnux:
Now that's not fair, what's iyw mean? Lol
[Nexus 4 Original Android Development] ak:
Is your way

ak
[Nexus 4 Original Android Development] TheKnux:
I thought it meant in your words. I dirty flashed my rom, flashed your kernel, then flashed UMK. Had problems, so I just flashed my rom, your kernel without UMK, and everything is fine.
[Nexus 4 Original Android Development] mimsiroll:
The GEL ..and what's your SOT on your ondemand script? Mine's around 3.4 hrs but before, using interactivr and tripndroid..I'm getting 5hrs SOT and 16hrs standby time
[Nexus 4 Original Android Development] xenyz:
That's wild, I've never had one hiccup with the GEL. Do you have 500 apps installed? :)

Try using System Monitor and ensure your phone isn't stuck in some high freq for whatever reason. It should look something like this with moderate use:

As for SOT it's all over the place lately as I've been moving a lot and it's pretty sunny here now. So more location updates and brighter screen. I'll check it later.
[Nexus 4 Original Android Development] mimsiroll:
Okay pal, thanks for the reply.. Maybe it's just a placebo effect, me complaining about sudden sttutter all of a sudden hahahah

Anyway, what's with the status bar?? Thought your using stock?? Are u using CM?
[Nexus 4 Original Android Development] xenyz:
It's stock with a bunch of Xposed modules. Mainly Gravity Box and Tinted Status Bar you're seeing in that screenshot.
[Nexus 4 Original Android Development] iRefleX202:
How can I improve the stand by time?

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] TheKnux:
Here is my System Monitor stats. I was wondering if the whole 19% @ 1.1GHz frequency was normal. Using FauxClock with all of the kernel defaults.
[Nexus 4 Original Android Development] acejavelin:
Giving this a shot with Beanstalk, seems rock solid so far... Thanks and keep up the great work!
[Nexus 4 Original Android Development] xenyz:
It's the default touch boost freq. You can lower it by changing ondemand setting touch_load. Try 35 for 702 MHz or 50 for 918 MHz.
[Nexus 4 Original Android Development] TheKnux:
I'm going off of what [MENTION=5096930]lonnieboy[/MENTION] said and using interactive gov, min 81, Max 1350, tripndroid 1024kb, undervolted -50. How would I change it using interactive governor?
[Nexus 4 Original Android Development] gorilla p:
You have a lowered max freq, undervolting, and want to lessen the touch boost, but you're using the interactive governor, the least battery friendly of all (other than performance). Also keep in mink, AK has said himself that battery life isnt the primary goal of this kernel, but performance. I'd probably just go with OnDemand. I'm using intellidemand, undervolted and have no stuttering or negative effects. Just awesome battery life.

I saved my optimal battery life document in bit.ly/makostuff.

Sent From My Google NeXuS⁴
[Nexus 4 Original Android Development] xenyz:
I thought you posted that you're using kernel defaults?

OK, here it is from today:
[Nexus 4 Original Android Development] TheKnux:
I was using defaults when I posted that screenshot. After posting that, I thought I'd give [MENTION=5096930]lonnieboy[/MENTION]'s setting a try.
[Nexus 4 Original Android Development] mimsiroll:
[MENTION=3118524]xenyz[/MENTION], nice for the ondemand script!..i like it...kinda bored now on n4 whatnots... any update for 4.4.3 hahaha off topic. but before that..ak kernel's a lot better using cm?? or just pure stock based or aosp I mean cm is also aosp build right,...just don't know what term to say on other aosp rom...whatever making myself confused. =p
[Nexus 4 Original Android Development] gorilla p:
CM is the opposite of AOSP...

Sent From My Google NeXuS⁴
[Nexus 4 Original Android Development] ak:
:D true.
[Nexus 4 Original Android Development] acejavelin:
dt2w (Double tap to wake) does not seem to stick after a reboot when set with Synapse. Is that normal or am I doing something wrong?
[Nexus 4 Original Android Development] ak:
I have always on touch2wake and set on boot work without problems, check if you have another app/script that change the status after boot.
[Nexus 4 Original Android Development] acejavelin:
Stupid question... Where is the set on boot option?

I don't have any scripts running at boot I'm aware of, its just stock Beanstalk with the AK 232 kernel, unless Android Tweaker 2 auto optimization is doing something weird. Maybe this weekend I'll try a clean flash of ROM, Gapps, and kernel and leave it Android Tweaker out of the mix and see what happens.
[Nexus 4 Original Android Development] scarcry:
I got the exact same question. dt2w doesn't stick in synapse.

trickster doesn't even show dt2w so I'm hoping it's not interfering with synapse.

I got a clean flash of LS with only @AK's 232 and no mods/scripts.

Mako running LS on AK Exodus kernel
[Nexus 4 Original Android Development] Swords.Grizzlebee:
If you flash the zip from earlier in the thread that allows for more options to show up in synapse, dt2w will stick after reboot.