yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] xenyz:
Looks alright to me. Using defaults except sampling_down_factor 1, sampling_rate 10000, touch_load_duration 0 & up_threshold 95:

Edit: watched your video, here's 2 things: Synapse uses a lot of resources monitoring the CPU frequencies, and actually recording the video takes resources as well.

Don't look at 'live' CPU readouts, things are happening every .01 seconds and you get a meaningless average. Instead, look at total CPU time spent at each frequency for a better picture of what each governor is doing.
[Nexus 4 Original Android Development] veeholics:
Isn't smartmax a bit choppy in 311? ?
[Nexus 4 Original Android Development] gorilla p:
I'm aware of the resources uses by the recording so I don't expect it to drop to 81, but I do expect it to ramp down as much as possible.

Sticking at 1512 isn't normal.

and the other governors sticking at higher freqs isn't normal either. you can see as soon as its switched to conservative, it drops to normal levels.

Sent via Mental Telepathy
[Nexus 4 Original Android Development] ak:
I have changed sample time to 50000, can you try to set 10000?
[Nexus 4 Original Android Development] ak:
can you record a video with pefmon for monitoring the cpu?

nb:

81mhz is so low, can you try to set 384mhz and verify if scale correctly?

please dont use synapse.

thanks a lot my friend.
[Nexus 4 Original Android Development] zorginho:
synapse reads CPU freq wrong.

use system monitor by chainfire, open it and compare the synapse reads and the the system monitor ones.

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] xenyz:
Post your CPU frequency utilization of at least 5 - 10 mins using free version of Trickster MOD and we'll see if it's normal or not.

Edit: you can do this with UKM / Synapse as well, but cannot reset the counters unless you reboot. Look under Status, Time in States.

A counter-intuitive reason you may see higher frequency utilization is because you are using lower frequencies as [MENTION=3685904]ak[/MENTION] just posted.

---------- Post added at 01:39 AM ---------- Previous post was at 01:10 AM ----------

With smartmax, you have to watch out for the up_rate and down_rate to be multiples of sampling_rate or those timers won't fire. i.e. if sampling_rate is 50000, up_rate has to be 50000, 100000, 150000, etc

I've found that sampling 10000, up 20000, down 40000 and min_cpu_load 30 alright but smartmax will never be as smooth as ondemand. Battery saving is negligible as well... I'd rather have 6 h of smooth ak screen time than 6 h 20 m of rough. :)
[Nexus 4 Original Android Development] FrozenLord:
Are you actually getting near the 6 hour mark?

I am struggling to get past 4 hours - sometimes running out of battery with just barely 3 hours of Screen-on-time. [emoji29]

Would you mind sharing your settings?

Thanks a bunch [emoji4]
[Nexus 4 Original Android Development] veeholics:
I'll try next cycle, currently testing battery with interactive. Thanks ak! :D

6 hours of sot is possible on wifi with super light usage. I usually get 5-6 hours on previous versions if the usage is only doing IMs and social medias with a very little time of web browsing (< 1 hour).

That's achievable stock settings with -100mv on all frequencies and -50mv on 81mhz (if you use that freq, but I set them anyway).

Maybe should be mentioned that my mako is on slow binned cpu as additional information.
[Nexus 4 Original Android Development] FrozenLord:
That's still pretty impressive for a mako.

I have a fast binned CPU, undervolted every frequency by 75mV and some, like 81 MHz, even further but am nowhere near that sot [emoji20]

Do you use all frequencies - i.e. 81-1728 - or have you set a different maximum frequency?

I am completely crash free and it idles pretty well, going down to 95% after 8 hours of sleeping at night, but I am nowhere near 5 hours...

I usually manage somewhere between 3:15 and 3:50, with 4:00 being the absolute exception that I only achieve very rarely.
[Nexus 4 Original Android Development] kevinnol:
Also fast binned here getting 6 hours+ with smartmax and almost 6 hours using ondemand on wifi that is

Mostly stuff like facebook, whatsapp, chrome and a 'few' minutes of gaming

270-1512 + undervolted gpu

ak magic battery life + performance
[Nexus 4 Original Android Development] Almayce:
Well it really depends on the usage. Not just how long have you had your screen on. Once I had 7hours+ of sot on velocity and AK, but I managed that by simply setting the screen off time to 30 mins and doing the bare minimum on the phone. Like occasional browsing, messaging etc. Now if I browse all the time, play a game in between I'm glad for 3 hours :D so it's not just kernel, it's Rom as well and bunch of other things to consider. Tbh if you use your phone, around 3 hours is decent result.
[Nexus 4 Original Android Development] veeholics:
As said, that depends a lot on your usage, your network and network quality.

For freqs, I usually use stock settings on cpu, while in some times I tried to change it to 270-1512. Gpu is always set on 320, I don't use my phone for heavy games because I really need mobility.

Governors don't matter much, so I stick to anything that is recommended / lagfree at the moment.
[Nexus 4 Original Android Development] poondog:
Screen brightness is the biggest killer for battery
[Nexus 4 Original Android Development] GFXi0N:
On carbon rom, this is the message I get when i try to enable 2w via init.d script.

Maybe this means the rom does not support init.d?
[Nexus 4 Original Android Development] veeholics:
It is. I have been getting those battery life without going any further than 50% brightness. I use lux and keep my screen always < 25% indoors daytime (1% if not in a bright room), and < 15% indoor nighttime (-20% in darker room).
[Nexus 4 Original Android Development] ak:
See this:

http://xdaforums.com/showpost.php?p=53466515&postcount=680
[Nexus 4 Original Android Development] Nekator:
change permissions of the folder so that group root has read and write permissions.

then it worked for me.

sent from my paranoid N4
[Nexus 4 Original Android Development] veeholics:
311. Back to the performance on 4.4.2 days :D
[Nexus 4 Original Android Development] ak:
Thanks man . I have a surprise into new kernel. Stay tuned.

ak@n4
[Nexus 4 Original Android Development] xenyz:
I get 6 h on wireless and little or no calls, just browsing, email, forums and reddit.

Standby time can be a factor, as I get 4 h screen time if it's been off the charger for 18-24 h.

I use Gravity Box and adjust the auto brightness levels to keep the screen dimmer than stock levels. As for kernel settings, I've only changed the CPU voltages, and ondemand settings to MiRaGe defaults:
[Nexus 4 Original Android Development] Gallardo994:
How do you get 6h sot? 3 hours is a real problem for me, hsic wakelock is eating up the battery like mad. Is that related to my radio module? I tried switching to hybrid, can't say if it's better or not though.

Sent from my Nexus 4 running Temasek ROM and AK kernel.
[Nexus 4 Original Android Development] Nekator:
saw it in UKM thread. :p

sent from my paranoid N4
[Nexus 4 Original Android Development] xenyz:
Instead of saying the wake lock is eating your battery, say data usage is eating your battery. Now figure out which apps are using background data and Greenify them.

Blaming the wake lock is like blaming the backlight for screen energy usage; it's a byproduct and not the cause.
[Nexus 4 Original Android Development] TheQuarterMile:
Synapse settings don't stick when I update ROM or kernel.. Anyone else have this issue?
[Nexus 4 Original Android Development] Gallardo994:
Just save your profile and restore it after each upgrade.

Sent from my Nexus 4 running Temasek ROM and AK kernel.
[Nexus 4 Original Android Development] TheQuarterMile:
Things like d2w, vibration intensity, screen profile and sound don't stick
[Nexus 4 Original Android Development] Gallardo994:
It's less than 1 minute to reapply manually, lol

Sent from my Nexus 4 running Temasek ROM and AK kernel.
[Nexus 4 Original Android Development] gorilla p:
yeah I checked the performance with Perfmon and there was a significant difference in the way the freqs were reporting. Synapse isn't reporting the rampdowns, especially if it is brief.

Stock demand does seem a bit quick to ramp up to max frequency but it doesn't necessarily stick there as Synapse shows.

Updated AK 311 battery saving profile and uploaded new SuperSU 2.0 (be sure to thank Chainfire on his thread) to bit.ly/makostuff

Sent via Mental Telepathy
[Nexus 4 Original Android Development] gemj95:
AK311 still breaks wifi after a clean flash on C-Rom v7 F2FS, meanwhile HD r17 is fine :S
[Nexus 4 Original Android Development] Gallardo994:
Remove WiFi fix if it's 4.4.3 or install it if it's 4.4.2

Sent from my Nexus 4 running Temasek ROM and AK kernel.
[Nexus 4 Original Android Development] gemj95:
As I said it's a clean install so i didn't applyied any fix...
[Nexus 4 Original Android Development] Gallardo994:
It might be inside the ROM, who knows. Ask the developer.

Sent from my Nexus 4 running Temasek ROM and AK kernel.
[Nexus 4 Original Android Development] Pollie81:
311 working fine here on latest mahdi.

Verstuurd vanaf mijn Nexus 4 met Tapatalk
[Nexus 4 Original Android Development] Calinho:
TARDIS WORK with AK kernel? If works, what sequence should I install?

1ª - Ak kernel

2ª - UKM

3ª - TARDIS?

On PA 4.4 RC2 I must choose AOSP kernel and Dalvik?
[Nexus 4 Original Android Development] XsceneXhippieX:
It works, but like the only useful thing in it is the graphics drivers at this point, I stopped using tardis when 4.4.3 came out and I don't see any difference in performance, unless you like the boot animation and font in it

Sent from my LGOG converted to a n4 on C rom with AK kernel on ART
[Nexus 4 Original Android Development] gorilla p:
Tardis is useful if you are using dalvik rather than ART runtime. Some people have trouble with ART on their current roms.

Tardis includes the latest QC optimized dalvik patch which will help to improve performance significantly. No Roms include this. It also includes the latest adreno GPU drivers which are useful.

This is especially useful if you're using a slim or CM based ROM as there are dalvik patches for AOSP, slim and dalvik. [MENTION=2923435]barome[/MENTION] also keeps up with the latest dalvik libs available and Adds them to Tardis.

There are additional tweaks as well.

Currently the HTC One M8 libs seem working best for the N4, but only work with AOSP.

The OnePlusOne dalvik libs are working well and are available for slim based Roms.

So bottom line is yes, Tardis works with AK.

flash ROM, kernel first (UKM or tardis next. It doesn't matter which order)

Sent via Mental Telepathy
[Nexus 4 Original Android Development] Devoct:
msm_hsic_host wakelock is the real culprit if you stay on 3G, don't know if it's fixed on the AK.

if i'm on 3G data, can barely get 3 hours SOT, but when i'm on wifi, i can get 2 hours SOT for only 20%~25% drain easily, so if i use my phone the same way then is it 2 hours x 4 or 5 = 8 or 10 hours SOT?! :eek:

it's ridiculous!
[Nexus 4 Original Android Development] CallMeAldy:
The msm_hsic_host wakelock is a known wakelock which every n4 user is aware of and is triggered by switching over to 3G, I don't think there's anything you could do as of now other tha using 2G only or LTE.
[Nexus 4 Original Android Development] spupuz:
which are the best settings for battery ? where do i take tardis?
[Nexus 4 Original Android Development] ak:
go here

[TUNING AND RESOURCES]

Thanks a lot to [MENTION=4362467]gorilla p[/MENTION] for sharing files and doc for tuning battery/performance

Link
[Nexus 4 Original Android Development] krystyuc:
[MENTION=3685904]ak[/MENTION] I whant to thank you for the support on the Nexus 4.Today they called me with my dead N4,and replace it with a N5,if you ever decide to come with your kernel to N5 :).Good bye, and keep up the good working.
[Nexus 4 Original Android Development] Maustin96:
When I flashed this on purity it didn't work for me. When I entered my pass code on the lock screen the system ui process stopped. Had to flash my old kernel.

Could be down to 3 reasons.

1) because I flashed it while on ART

2) I have trickster mod installed/don't have synapse

3) I should've downloaded the CM kernel. I thought purity was based on AOSP
[Nexus 4 Original Android Development] Almayce:
4)u should've flashed your rom/stock kernel in between

5)purity is indeed aosp
[Nexus 4 Original Android Development] ak:
Thanks man. are lucky to have you in the new forum N5, you're a big supporter.
[Nexus 4 Original Android Development] Maustin96:
I flashed the stock kernel first, rebooted then flashed this.
[Nexus 4 Original Android Development] theelle:
Another reboot after kernel panic. http://pastebin.com/qg2hAkqX

I'm the only one?

Ak v311, flashed after reflashed stock kernel....

Edit. After this random reboot, i reboot my phone manually. The phone reboot, but it doen't start, it shutdown and never goes up. After few minute, it starts. There is a STRANGE log (i can't upload it on pastebin, i don't know why sorry):

https://onedrive.live.com/redir?res...307&authkey=!AKJ6zyHZoKzmk10&ithint=file,.txt
[Nexus 4 Original Android Development] ak:
Modem rom related.

[58066.606015] wcnss_8960: crash shutdown : 0

No problem with kernel:

Boot info:

Last boot reason: hw_reset_or_poweron
[Nexus 4 Original Android Development] theelle:
so the problem is the 4.4.3 version?
[Nexus 4 Original Android Development] ak:
I dont know.

Im using madhi rom without problems.
[Nexus 4 Original Android Development] Rohit02:
Beat this..:D

Sync always on.

2g/3g ,no wifi

Half a day vibration profile other half Ringing..
[Nexus 4 Original Android Development] 21plays:
Will this kernel work with 4.4.4? Thanks
[Nexus 4 Original Android Development] Rohit02:
Yes it is working. :)
[Nexus 4 Original Android Development] 21plays:
yup, it sure is [emoji2] is it because 4.4.4 doesn't have a new kernel or what?

---------- Post added at 09:40 AM ---------- Previous post was at 09:37 AM ----------

Anybody else notice that the nav buttons got a bit smaller on 4.4.4?
[Nexus 4 Original Android Development] Nekator:
4.4.4 contains nothing bigger than bug fixes.

sent from my paranoid N4
[Nexus 4 Original Android Development] 21plays:
that and a newer radio build.
[Nexus 4 Original Android Development] Nekator:
yeah forgot about that. ;)

sent from my paranoid N4
[Nexus 4 Original Android Development] gorilla p:
yeah for them to come out with a new radio that quick there must be a bug in 02

Sent via Mental Telepathy
[Nexus 4 Original Android Development] cpanos:
what is the build date on the stock kernel?
[Nexus 4 Original Android Development] 21plays:
I do not know. I flashed Ak Kernel right after flashing 4.4.4 so i didnt get the chance to see that info under settings>about phone.
[Nexus 4 Original Android Development] spider623:
What rom?
[Nexus 4 Original Android Development] cpanos:
thats ok. I saw a screenshot from a nexus 5 and the build date is from march, so most likely no new kernel build on 4.4.4.
[Nexus 4 Original Android Development] 21plays:
Couldn't have been march, 4.4.3 had a new kernel
[Nexus 4 Original Android Development] Rohit02:
Rastakat by [MENTION=4770534]snak3ater[/MENTION]
[Nexus 4 Original Android Development] cpanos:
THe stock kernel that came with 4.4.3 was build in march.
[Nexus 4 Original Android Development] 21plays:
Oh, my bad then
[Nexus 4 Original Android Development] chewu.pg:
I dont know or you, but my battery life sucks on newest builds and there are no apps that eat battery... On the other side performance went crazy good, i tried most power saving settings, still didnt get 3.5h sot and when data is on, battery drains extremely fast :( ... Still, best battery screenoshots come from this kernel. Anybody having the same?
[Nexus 4 Original Android Development] gorilla p:
Try using my battery saver synapse profile and follow instructions in the optimal battery life document.

All available on bit.ly/makostuff

Sent via Mental Telepathy
[Nexus 4 Original Android Development] spupuz:
is logcat disabled in ak311?
[Nexus 4 Original Android Development] ak:
Yuo can use synapse and enable it.
[Nexus 4 Original Android Development] spupuz:
Sorry Stefano in which section?
[Nexus 4 Original Android Development] poondog:
the build date on the kernel is ages ago. Its a prebuilt kernel, its not compiled inline at the time of rom compile like some AOSP projects here
[Nexus 4 Original Android Development] 21plays:
understood, thanks. i did not know that

---------- Post added at 05:16 PM ---------- Previous post was at 05:13 PM ----------

Has anyone given smartmax a go? How is it? Thanks

---------- Post added at 05:18 PM ---------- Previous post was at 05:16 PM ----------

so what if i flash ukm and use trickster, would i still not get the "full" control?
[Nexus 4 Original Android Development] cpanos:
Actually i was mistaken, stock kernel is not march, it was build in april :D

Im using smartmax and I find did it exellent. I get the smoothness of ondemand, but without touchboost and the related battery consumption. So far its the perfect balance for me in terms of performance and battery life. I also run underclocked with max 1.35 Ghz.
[Nexus 4 Original Android Development] 21plays:
Much oblige
[Nexus 4 Original Android Development] spupuz:
Sorry can't find where to enable logcat in synapse ?

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] ksenhuck:
Maybe for some of you guys it could be interesting....

But just want to confirm that this kernel works(wifi included) with the new KK 4.4.4 and the radio 1.03 ....

Tested on the Liquid Smooth ROM

Cheers
[Nexus 4 Original Android Development] apb_axel:
In Tools -> Log Mode.
[Nexus 4 Original Android Development] spupuz:
umh it is strange but i don't have log mode in Tools.
[Nexus 4 Original Android Development] apb_axel:
Oops I forgot v.311 doesn't have that option. Don't worry it will come soon. ;)
[Nexus 4 Original Android Development] defconoi:
apparently my device can't handle the 1.7GHz overclock, i get instant reboot when android is upgrading, it overheats and shuts down, any way to force 1.5ghz on boot?
[Nexus 4 Original Android Development] gorilla p:
wow, that's a quick overheat. Typically it takes a bit of time for that to happen.

Sent via Mental Telepathy
[Nexus 4 Original Android Development] kalpik:
I'd request 1.5GHz as default max frequency too! I live in a hot country, those who want to overclock can do that manually!
[Nexus 4 Original Android Development] defconoi:
ya, crazy...

1.5 default would be nice, with option to overclock still, 1.7 is rediclous lol
[Nexus 4 Original Android Development] montbazon:
My country is in summer but there is no heat problem.

You'd better refine your own settings.

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 4 Original Android Development] ak:
All bin can handle 1.7Mhz, probably the problem is the voltages.

Into the next release the max freq will be 1.5Mhz.
[Nexus 4 Original Android Development] defconoi:
thanks ak absolutely love your kernels, got a few friends running it as well, never had a problem before, using stock voltages, my device may be extra sensitive. This happened on initial flash rom(cm) + kernel so no settings touched
[Nexus 4 Original Android Development] stavca:
do you mean max boot freq?? I hope OC possibility will remain in your kernel ;)

---------- Post added at 09:48 AM ---------- Previous post was at 09:46 AM ----------

UV your CPU ;) lower voltage @1.7GHz, my CPU can handle 1125mV at this freq and trust me, it's a big difference in temperature
[Nexus 4 Original Android Development] defconoi:
i think he means max boot freq(at least I hope) so you guys can oc ;)

ya, when I UV, i dont have heat or crashing problems, but on initial flash/boot without UV settings my phone feels like its gonna melt lol
[Nexus 4 Original Android Development] spupuz:
AK 311 works with android 4.4.4?

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] Pollie81:
just a quick search on 4.4.4 gives you the answer it's working.

no new kernel in 4.4.4, same as 4.4.3
[Nexus 4 Original Android Development] ak:
yes ... at boot ... oc to 1728Mhz will remain into kernel. :good:
[Nexus 4 Original Android Development] cimdrap:
[MENTION=3685904]ak[/MENTION] i just need your experience here: i'm trying to solve a strange problem and i wonder if it is software (ROM or kernel) related or hardware related. When i reach a low battery level (about 18%) my phone goes crazy auto-tapping aroud very fast and starting apps randomly (torch, camera, screenshots and very casual apps around...), when i succed to hit the reboot button, the device shut off and i'm not able to start it again till i use the wall charger. In that moment i realize that the battery was at 0%, so i leave it charging and it works again normally. I suppose it is battery (voltage) related, but not sure. I'm searching for answers around but i found several and not satisfing different answers. Thanks in advance!
[Nexus 4 Original Android Development] ak:
I think you have to replace the battery, but only your technical center can understand the righ problem.
[Nexus 4 Original Android Development] stavca:
on latest version it sometimes happen that my device won't wake up, screen stays off and I can do nothing except restarting phone by holding pwr btn, but strange thing is that when I press and hold it for the first time it won't reboot, I have to push and hold pwr btn again and then it reboots

I'd enclose some log but there is no last_kmsg in /proc, there is only kmsg and there is nothing in it, also Synapse shows last ksmg as empty string

problem is there no matter if dt2w is enabled or not
[Nexus 4 Original Android Development] ak:
i dont know where is the problem, but i never see SOD from long time ago. what rom? do you have flashed from clean install?
[Nexus 4 Original Android Development] gorilla p:
Can you provide a screenshot of where your voltages are at in Synapse?

Make sure 81MHz=700mv or higher

Also make sure your maximum screen off frequency is at 702MHz

If that doesn't work, try setting minimum frequency at 162MHz instead of 81MHz.
[Nexus 4 Original Android Development] HTCTOUCHPRO91:
New f2fs commits. What do you think about? @ak

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] silvbm:
Same problem here. 384mhz at 800mv. Version 268 was the last one without this problem, started afterwards.
[Nexus 4 Original Android Development] ak:
Do you have link to source?

ak@n4
[Nexus 4 Original Android Development] :
I've tried this kernel out for about two days and I've gotta say, my battery life and performance have increased by so much that I just had to post here! Very clean, stable and fast kernel you've mgot yourself here [MENTION=3685904]ak[/MENTION] ... If I might make a suggestion, the naming of your kernels is a little confusing and not simple enough for the average user to say "oh, that looks nice and easy to use". But anyway that's just my opinion.
[Nexus 4 Original Android Development] HTCTOUCHPRO91:
sorry [emoji16] https://github.com/bedalus/nexus4/commits/maKKo_20

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Nexus 4 Original Android Development] stavca:
I use PAC and I just dirty flashed it as always before, v311 is the only one where this happens

---------- Post added at 07:30 PM ---------- Previous post was at 07:28 PM ----------

lowest freq I use is 270MHz and 725mV on it, but this setup is stable, I use it for many months :) but I'll try to increase max screen off freq, now I have it set @ 486MHz
[Nexus 4 Original Android Development] ak:
311 dont have max screen off, how do you increase it?

.. i have reverted some commits into new release, i hope this help with your problem.
[Nexus 4 Original Android Development] stavca:
yes, figured it out right now that it lacks this feature...