yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] kong:
Dunno if it’s placebo but Chaos-Kernel_v11.1-[04-28]-[23-27] has the smoothest UI since the last few weeks.

IMHO, Chaos always provides significantly better CPU performance than other kernels but the UI is not as smooth as, say ElementalX’s… This release brings it really close to what ElementalX provides in terms of UI smoothness :fingers-crossed:

Another random observation is, sometimes when I first flashed the kernel, it was super smooth until I open NXTweaks and gave it root permission. After that the UI started to stutter, microlags here and there, etc. :eek:
[Nexus 5 Original Android Development] Meakii:
Mine was always set to conservative and I had glitches on all nighties until I switched screen off gov to interactive. No problems now.
[Nexus 5 Original Android Development] neobuddy89:
Thanks for heads up. Will experiment.

AFAIK, its not audio updates causing this glitch.
[Nexus 5 Original Android Development] topgeardave:
Jumped back on cm yesterday night and I've tested this now. It looks like the same bug from AOSP that only Google can fix in 4.4.3 because it's a dsp issue where the only workaround is to use interactive governor with screen off at 2.3ghz.
[Nexus 5 Original Android Development] neobuddy89:
Most easy way to test this will be ... TURN OFF "Morpheus Mode" via NXTweaks.
[Nexus 5 Original Android Development] topgeardave:
Should this remove all stuttering or create stuttering? I can't test it now, but I will test this in the evening.
[Nexus 5 Original Android Development] kong:
It will disable the screen-off governor so if your theory is right then the stuttering should disappear.
[Nexus 5 Original Android Development] mo976:
Neobuddy I don't know what you did in the last official nightly from the 27th but battery is amazing. After 16 hours on, 2 hours of screen time and an hour of talking I was at 57% left. Using battery profile in NXT, and phone settings are; wifi always on, screen brightness on auto, 3G always on (no LTE here) and BT/NFC off.
[Nexus 5 Original Android Development] magnamentis:
just brainstorming a bit :)

hi there,

good to see that some of you are getting aware of a very logical point. while screen off, even in some of my

self-made tasker scripts, is in most cases ( conditions ) a very valid criteria to switch from power to power-saving

settings, this is throughout android a problem as soon as media or i don't know which other permanent tasks

would run in the background with screen off of course, since it would not make any sense to have screen on

to listen to the music, would be much more powerconsuming.

no there a few solutions, at least attempts for solutions:

a) would be to make a script that changes governors as soon as music app is running, or, depending on

the personal use, could be when bluetooth is connected or whatsoever.

b) would be to use something like t2w, dt2w or daydream to see to it, that the screen remains on, but dark so to

not switch to power-saving conditions. this works very well, for example, if s2w or similar features are set to

off with the power button, means no power button equals no screen of but dark and thus a bit of battery drain

but therefore no change of the governor from i.e interactive to conservative.

these are only 2 examples to give a rough idea how these 2 interests can be brought together without

totally sacrificing the advantages of the screen off triggered battery juice gain.

however, i think it's clear, that since a) is more precise and can be extended to as many apps and/or conditions

as needed, is the better workaround, albeit not everyone is familiar with tasker yet.

Current Devices:

I9100, PAC-ROM 4.3.1 ( Formerly Omni, PA, Dorimanx, etc. )

N7000, 4.1.2 TouchWizz All Stock ( very motivating to continue flashing custom roms further haha.... )

N7100, Cyanogenmod 11, Xposed Framework ( Formerly AOSNP, PAC, Omni, PA, Devil, Thor, AGNI up to 2.7.6, etc. )

Nexus 4, Cataclysm 4.4.2, Franco Kernel r203, Dalvik & Bionic Patched, Xposed Framework ( Formerly PAC, PA, Cataclysm, Faux, etc. )

Nexus 5, Cyanogenmod 11, ElementalX & Chaos, Xposed [intermittent use], ( Formerly Cataclysm, Franco & FKU Color Control, Dalvik & Bionic, Faux, Bricked, etc. )
[Nexus 5 Original Android Development] Phillis:
Thanks for the info. What is the cause of the bug in the DSP?

I will test disabling Morpheus Mode today.
[Nexus 5 Original Android Development] topgeardave:
Dodgy Google code mate, Google have supposedly fixed it in 4.4.3
[Nexus 5 Original Android Development] oo0:
graphical issue is gone with latest nightly, but now i have wake up problem.

dt2wake doesn't work sometimes if phone was in deep sleep state for too long.
[Nexus 5 Original Android Development] DenyDarko:
[MENTION=3795148]neobuddy89[/MENTION]

Is possible to add an fstrim command inside crontab schedules?

:)
[Nexus 5 Original Android Development] neobuddy89:
Do you have particular script for that?

Are you using S2S Only or Wake Timeout?

Here is Test Build #2:

http://www.androidfilehost.com/?fid=23329332407590151

Chaos-Kernel_v11.1-[04-30]-[00-27]

* Minor fix for CPU Freq driver

* Set both screen on and off governors to Interactive

* Fixed VIDC playback for HD Videos

* Re-enable Async Suspend for MMC

(which is already part of last nightly but removed from test build; should help with power save)

Thanks to all for feedback.
[Nexus 5 Original Android Development] Phillis:
Ok, I tested with morpheus pill off, then set sleep gov to interactive, audio didn't stutter once.

What I also noticed recently is when I turn off my car, bt disconnects from phone but play music still plays and still believes the BT device is active. I have to completely turn off Bluetooth for it to go back to speaker or headset (if I plug it in). Else it stays in Bluetooth mode. Weird.
[Nexus 5 Original Android Development] topgeardave:
I can share the same experience here. With Morpheus pill off I had no stutters over a period of 1.5 hours. Looks like my theory was right :) Now I just wish Google would release 4.4.3 right now so we can actually utilise the fix at hand instead of waiting around looking at leaked screenshots of the 4.4.3 update used by Google employees.
[Nexus 5 Original Android Development] eak1080:
No need. As of android 4.3 fstrim is implemented hardcoded within android code.

My N5
[Nexus 5 Original Android Development] oo0:
s2s off, wake time out disabled.

i guess the problem is im still using old fashioned trickster, while bx is so much better. will test without trickster.

edit: seems like happening again. from default i only lower max frequency, gpu to 320, enable dt2w and fsync. something in prefereneces i guess.
[Nexus 5 Original Android Development] neobuddy89:
Isn't that CM11 issue? I read same prob with a user in CM11 topic.

I think its due to Louis Cache implementation done by cyanogen in kernel.
[Nexus 5 Original Android Development] topgeardave:
Hey, could I ask for one feature request: could you include the Motorola modem drivers as Franco did in his kernel? I've noticed that is much more efficient on 4G
[Nexus 5 Original Android Development] Phillis:
Very probable. Hopefully it gets fixed soon.

Thanks for helping identify all the problems! At least now I know :)
[Nexus 5 Original Android Development] topgeardave:
Hey guys, thought I'd share my battery/performance settings so that it can last you a working day.

In NXTweaks

-20mv uv

200mhz min/max gpu

CAF Sound: Quality

Pireligio v7 display

Fast charge: 2000mah

People who don't get audio glitches can use conservative governor at 1.2ghz for screen off. I've noticed these audio glitches happen when changing from 4G to H+ or when masts have changed when streaming music.

Everything I've changed I've attached in screenshots as well as battery life.

Everything else I've not included in pictures is left stock:

Anyone wants to add to it and change anything, please share :)
[Nexus 5 Original Android Development] kronflux:
I really have to ask - what is it, exactly, that you do on your phone? like. do you ever look away from it? and are you doing nothing but high-end gaming and graphics intensive work? and not having a single moment go by that you're not listening to music over bluetooth or something?

And this is entirely serious. I'm not trying to insult or make fun(I did add a little sarcasm, but I really don't intend it to be taken negatively :P ). I just literally cannot kill my phone in a single day period with average use. I can come fairly close, but that's a really slow day where I'm doing nothing but playing with my phone all day.
[Nexus 5 Original Android Development] mo976:
I have to second your opinion!

A whole day is 16-18 hours and depending on how much time wasted or using GPS and streaming music I'm anywhere between the mid teens and 50%+ of battery left. Running down the battery in a short period and saying hey I got x hours screen on time is hardly proof of staying power. Not looking for a charger after a whole day at work, before you go out at night is.
[Nexus 5 Original Android Development] topgeardave:
For me it's apps like tunein radio and Spotify which are the biggest battery drainers. Also 4G is another battery killer. In a day I usually get around 4-5h SOT whilst surfing the net, Instagram and twitter in the evenings.

If you guys want to kill your battery, you just have to leave mobile data on all day.
[Nexus 5 Original Android Development] mo976:
Absolutely correct mobile data and continues GPS use will kill the battery faster then anything else.
[Nexus 5 Original Android Development] oo0:
neobuddy89, still having minor dt2w issue. it could work flawlessly for some time - like every fifth dt2wake attempt fails.

pretty strange, because everything else works great. have no sound issues/graphical glitches, battery life is great.

please advise which settings i should revise for better dt2w
[Nexus 5 Original Android Development] neobuddy89:
A new nightly build is available:

Chaos-Kernel_v11.1-[05-02]-[16-28]

* Merge test build updates (re-adding audio driver updates + VIDC playback updates)

* Improve hotplugging + Tune defaults for same in NXTweaks

* Camera driver updates from CAF

* Fixes for DT2W/S2W/S2S/PWR_KEY_SUSPEND.

* Misc CAF and Google kernel common branch updates
[Nexus 5 Original Android Development] topgeardave:
Latest build:

http://www.androidfilehost.com/?fid=23329332407590785
[Nexus 5 Original Android Development] odavans:
What that fixes for DT2W... do?
[Nexus 5 Original Android Development] Phillis:
Update for people on CM, looking at changelog, coming into next build:

http://review.cyanogenmod.org/#/c/63223/

A2DP HAL: Update maximum Audio buffer size

Due to Audio buffer equal to socket buffer size observed A2dp

Chopiness randomly because of socket write blocking for long

time. Update maximum Audio buffer size to 3072 bytes.

CRs-Fixed: 648712

Conflicts:

audio_a2dp_hw/audio_a2dp_hw.c

Change-Id: I506081e906a7539aff27895368b30171bea871c3

Could this be the answer to our a2dp stutter?
[Nexus 5 Original Android Development] topgeardave:
Guess we'll have to wait and find out ?
[Nexus 5 Original Android Development] neobuddy89:
I have made dt2w implementation more robust i.e. Values are reapplied most times via morpheus mode. This should fix complains like dt2w fail to work 5th time and so.

Additionally, power key toggle code is improved so that it always return correct value... And no false detections... :)
[Nexus 5 Original Android Development] neobuddy89:
I think recent hotplug improvements should help with audio stutter!!

Because I am experimenting new hotplug drivers for chaos 12.0 and they give no stutter at all.

Edit: thanks for sharing that info... :)
[Nexus 5 Original Android Development] myfluxi:
You are looking in the wrong direction.
[Nexus 5 Original Android Development] neobuddy89:
Enlighten please.

I think I had replied earlier why I was previously rebasing git. :)

And adding a hotplug driver, not changing default one.
[Nexus 5 Original Android Development] neobuddy89:
Last 11.1 nightly has been released as stable 11.1.

12.0 first nightly release:

Chaos-Kernel_v12.0-[05-03]-[00-13]

* Add Alucard Hotplug driver: Initial implementation is more load sensitive.

CPU core switch online in ascending sequence (like stock) and attempts to maintain similar frequency level.

* Add option to switch between Cyanogen default (mpdecision), MSM Hotplug (myfluxi's driver, default) and Alucard Hotplug driver under new tab HOTPLUG CONTROL in NXTweaks.

There are not much of controls under Hotplug Control, however, they will be added sooner.

Try it and let us know if any different experience. :good:
[Nexus 5 Original Android Development] topgeardave:
Newest kernel for people who are lazy to find it:

http://www.androidfilehost.com/?fid=23329332407590885

Edit: Tested all three hotplugging methods, it seems like mpdecision is the least aggressive of them all.

Kernel is rock stable on all three settings. Looks like msm hotplug is most aggressive, followed by alucard then the cm stock.

One question, why is the gpu idling at 320mhz as it states in trickster mod? I've set 320mhz as max freq, so it seems to idle on 320mhz even if I increase the max gpu to 450mhz.

Also just a suggestion could you add a 150mhz gpu step so that it can save juice whilst the screen is static such as when you're reading. Thanks for all the work you've put in!
[Nexus 5 Original Android Development] neobuddy89:
I have never played with GPU frequencies, let me check.

Will integrate intelli hotplug as well if possible.:good:

EDIT: I enabled Bass Boost via DSP Manager after 2 hrs playback and that gave me audio glitch for second.
[Nexus 5 Original Android Development] Android 17:
Just a suggestion, but the Charizard kernel apparently has a GPU sleeper feature which lets it sit at 27mhz when not in heavy use, it sounds like an awesome feature and could potentially conserve a lot of battery, if you have the free time, is there a way you could take a look at it? Thanks!
[Nexus 5 Original Android Development] kong:
[MENTION=3795148]neobuddy89[/MENTION], I read somewhere in CM11 thread and believe [MENTION=4152171]myfluxi[/MENTION] has some tweaks with Interactive governor that apparently makes the UI feels smoother. I’m a git noob buy maybe you know where to look in his commits :fingers-crossed:

Or maybe it’s the msm-hotplug you just added?
[Nexus 5 Original Android Development] neobuddy89:
That tweak is already added. :)
[Nexus 5 Original Android Development] neobuddy89:
Which modems are you talking about? I can't find any modem in his kernel zip or git.
[Nexus 5 Original Android Development] neobuddy89:
Will check what we can tweak with GPU once I am done with hotplug merges.
[Nexus 5 Original Android Development] EnginEAR:
Sir, you rock!!!
[Nexus 5 Original Android Development] antypas:
Nothing to worry about. Nothing special with Charizard kernel. In every kernel, even the stock one, GPU sleeps when not used (=27 Mhz)

In this kernel (and many others) it just doesn't show that correctly through the sysfs interface.

It needs a fix in the sysfs interface to show in various tweak apps. Myfluxi commits:

https://github.com/myfluxi/kernel_msm/commit/4f84223a221a85ac4b8ed9508081d3e0bf645fb9

and maybe:

https://github.com/myfluxi/kernel_msm/commit/fdc380244e96b6842fa1cb3379b07320bf5b940d

ps.: Did we finally find out which commit fixed the red border flashing?
[Nexus 5 Original Android Development] willybarca:
the gpu is power efficient, even with cpu what ever tweaks you do at the end of the day you will lose or gain 1 hour less or more out of battery, but 3g and display sucks the most out of battery, so if there are any tweaks to decrease power from the panel or make 3g more efficient would be good, other wise its not wise to underclock cpu and gpu for a little extra and sacrifice performance, I mean you have high end phone why make it work like a low end
[Nexus 5 Original Android Development] topgeardave:
I've also been trying to find the commits for it but I can't. It could be just snake oil as here was his changelog on the 2nd April r38 build.

Asked franco for the commits, here they are:

https://github.com/franciscofranco/hammerhead/commit/a8d152c93076fce221506bf4e8690e574edad6e2

https://github.com/franciscofranco/hammerhead/commit/e6c72d47695e45aacbc56c0c9700654a623e9d80

https://github.com/franciscofranco/hammerhead/commit/c28a1b666662025060297665f5fae4892bba6182

https://github.com/franciscofranco/hammerhead/commit/f6c546a9cc09a58ab9ffa988c37d7d8e4b5f21b2
[Nexus 5 Original Android Development] neobuddy89:
New nightly available:

Chaos-Kernel_v12.0-[05-03]-[23-39]

* Add Intelliplug Hotplug Driver

* Add few controls to Hotplug Control

* Misc CAF updates

Please download from Mediafire mirror, there seems some issue with AFH server.
[Nexus 5 Original Android Development] neobuddy89:
Check sign-offs in those commits. :good:
[Nexus 5 Original Android Development] neobuddy89:
Is anyone using following features:

1. ZRAM

2. Ultra KSM

If yes, what improvement you find?

I am planning to trim kernel next version with these two removed if not being used.
[Nexus 5 Original Android Development] prosive:
I'm using ART with no issues
[Nexus 5 Original Android Development] davwman:
Works for me with art
[Nexus 5 Original Android Development] meatlocker:
Just enabled 200BM ZRAM. Will let you know what I find.
[Nexus 5 Original Android Development] ftarules:
I flashed this kernel with the 12/09 build of official Beanstalk. However the device was bootlooping. I let it sit for fifteen mintues. Can anyone tell me if this works with Beanstalk? I had to reset the whole device to get it to work again. Just reflashing the rom didn't fix the problem. I had to reset the whole device. I want to ask others if they have tried this with Beanstalk, because I don't want to have to go through that exercise again. THanks.
[Nexus 5 Original Android Development] m52 power!:
Do you have frandom, lower dimming, or fast charge enabled?

---------- Post added at 09:38 PM ---------- Previous post was at 09:36 PM ----------

What could I be doing wrong then? I have a vanilla 4.4.2 install with no extras or anything special. Very familiar with android "modding" over the years.
[Nexus 5 Original Android Development] prosive:
No I am running everything at default ATM. Trying to isolate battery issues to see if this is just 4.4.2 or if it's something else since my battery seemed to get much worse after upgrading.
[Nexus 5 Original Android Development] s3ct0r:
I have art issue too, but I have screen dimming on. I did dirty flash the latest cataclysm but I'll try to sort it out tonight.
[Nexus 5 Original Android Development] davwman:
Running chaos with art enabled on hellkat, hands down, fastest ROM experience to date. No not quadrant fast, seat of the pants fast.
[Nexus 5 Original Android Development] Phazmos:
Ksm no, zram yes. No performance benefits using zram, I just like maximizing ram - and have used it forever.
[Nexus 5 Original Android Development] meatlocker:
Not seeing any appreciable difference here after a few hours if heavy usage.
[Nexus 5 Original Android Development] Guti1977:
Just flashed this kernel however when trying to load the NXTweaks I get an unexpected error and it won't allow me to use it. Any ideas?
[Nexus 5 Original Android Development] neobuddy89:
1. Install Busybox

2. Flash Kernel

3. Reboot. Dont install busybox again.
[Nexus 5 Original Android Development] m52 power!:
I'd love to use this kernel but not without ART.
[Nexus 5 Original Android Development] Infinity02:
Same here on cm11

I guess this kernel is ART suppoted but due to some of the setting that keeps reverting runtime back to dalvik.
[Nexus 5 Original Android Development] amphi66:
Conversion to ART seems to work OK (takes a while to rebuild cache after the reboot) and phone runs really great, but I've seen it will revert back to Dalvik after a reboot that wipes Dalvik.
[Nexus 5 Original Android Development] reaper000:
I'm used to seeing antutu scores in the 37k range with Trinity and Rastakat. Very impressed to see the same numbers on a CM11 ROM (hellkat v005) and this kernel (v4).

Terrific work, N3obuddy
[Nexus 5 Original Android Development] Guti1977:
Thanks, would it affect that Busybox was already installed before flashing Chaos Kernel?

I have already tried installing it again and flashing the kernel but still no luck with NXTweaks :(
[Nexus 5 Original Android Development] neobuddy89:
Are you using ART? I hardly believe in scores but max score I got without ART is 28k.
[Nexus 5 Original Android Development] neobuddy89:
You seem to be using stock Android. Is it rooted properly with SuperSu or Superuser?
[Nexus 5 Original Android Development] topgeardave:
I don't understand? Haha. They've been signed off by Motorola? Lol. Will you include these commits in your next nightly?
[Nexus 5 Original Android Development] desmoloch:
Signed by neobuddy ;)
[Nexus 5 Original Android Development] topgeardave:
Ohh haha, I must have overlooked that
[Nexus 5 Original Android Development] neobuddy89:
Let me be more specific.

They are already part of Chaos Kernel month back.

https://github.com/neobuddy89/hammerhead_kernel_caf/commits/kitkat-caf/arch/arm/mach-msm/bam_dmux.c

However, they are reverted back by franco:

https://github.com/franciscofranco/hammerhead/commits/nightlies/arch/arm/mach-msm/bam_dmux.c

I didn't see any shortcoming of motorola updates, so kept them.
[Nexus 5 Original Android Development] Phillis:
Update for those on CM, new nightly DOES fix the audio stutter. Running on 11.1 stable.

If running interactive sleep gov, no stutter at all. Stutter occurs on conservative. I tired intelliactive for a few minutes, did not seem to stutter, but test wasn't long enough IMO.
[Nexus 5 Original Android Development] Android 17:
So what hotplug are most of you guys using/having the best performance with?
[Nexus 5 Original Android Development] topgeardave:
Basically:

Raw Performance: Msm hotplug

Battery/performance: Alucard and intelliplug(without eco). Although Alucard is slightly more aggressive.

Battery: Cyanogenmod default

Hope that helps :)
[Nexus 5 Original Android Development] montbazon:
Finally! Intelliplug is coming!

Thanks!

Gesendet von meinem Nexus 4 mit Tapatalk
[Nexus 5 Original Android Development] daniel84cs:
[MENTION=3795148]neobuddy89[/MENTION] thanks love your kernel and your app....The best combo on xda...;)

Inviato dal mio Nexus 5 utilizzando Tapatalk
[Nexus 5 Original Android Development] antypas:
If I may, why was this one reverted?

https://github.com/neobuddy89/hammerhead_kernel_caf/commit/61f060492c36eddb88313ee37de1f88129af1df5
[Nexus 5 Original Android Development] trungquan_it:
Hello, I'm sorry if my issue is not related on kernel. But when I use Chaos kernel 11.1 with AICP, the app called Call Master (sms & call blocker) doesn't work for me anymore. I reverted to stock AICP kernel and it work flawlessly. It's strange and I don't know if it's related to kernel or not. Other than that issue, Chaos kernel give me best performance and great battery life. Thanks for the great work :)
[Nexus 5 Original Android Development] neobuddy89:
Using power-efficient workqueues for powering down caused bam_dmux to wait too long and thereby dmesg showed errors.

Too many such errors may cause watchdog bite and random reboot.
[Nexus 5 Original Android Development] neobuddy89:
Some personal analysis/opinion for hotplugging options:

Antutu scores may not reflect true virtue but here are some results tested under same environment -

MSM Hotplug - 31k

Intelli Hotplug - 30k

Alucard Hotplug - 27k

Intelli Hotplug with Eco Mode - 23k

Anyone wishing for great battery life with really good performance can try this combo and post back result:

Governor - Intelliactive. Hotplug - Intelli Hotplug (without Eco Mode)

Again, this is my personal liking and test review. You may or may not get same experience. :)

May the fourth be with you.
[Nexus 5 Original Android Development] daniel84cs:
Alucard Hotplug is The best for battery life....???

The best combo for battery life is battery profile with Intelli hotplug and intelliactive governor...???

Inviato dal mio Nexus 5 utilizzando Tapatalk