yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] ctfrommn:
Im using ondemand fwiw....Ive never liked interactive. Heat was a bit of an issue till I underclocked now its cool. I think 4 cores@1026 no hotplugging is better than 1-2@1512 as all 4@1512 never happens unless youre gamming/benchmarking.

---------- Post added at 08:25 AM ---------- Previous post was at 08:24 AM ----------

I think its 4 on all time actually as youre forcing it, my device sleeps as well as it did before though so not sure. I still get flatline at night.
[Nexus 4 Original Android Development] Spec-Chum:
Not exactly a thorough test but I've been doing usual things on my phone and I've not noticed any difference between 4 cores and 1 core on.

Saying that I've (touch wood) not had any stutter issues at all...
[Nexus 4 Original Android Development] hoangtungst:
I have tried nova launcher with nova animations. App drawer become smoother than stock launcher . How can i make animation of stock launcher like this ??
[Nexus 4 Original Android Development] chrone:
By set the animations on dev option to 0.5x and reboot. There's bug on stock launcher if you change the animation multiplier, the app drawer still left intact until a reboot is done.

Sent from my Nexus 4
[Nexus 4 Original Android Development] hoangtungst:
I have tried and reboot but it dosen't effect to app drawer
[Nexus 4 Original Android Development] chrone:
That's strange, works everytime on stock launcher for me.

Btw, perhaps this discussion should be put in another thread since it's not kernel related, and i'm sorry for bragging the micro stuttering here at first place as i thought kernel tweak will solve it and i was wrong. :)

Sent from my Nexus 4
[Nexus 4 Original Android Development] mundixx:
Hey, thanks for the advice. I did this and to my surprise, i am getting the same consumption rate at the battery. I feel this is smoother as well. I'll need to try this with a full battery cycle.

For the short test i did, i lost 19% battery with 1 hour screen time. Seems like the average battery life for me. This is done via HSDPA and doing Tapatalk, flipboard, twitter, instagram and general browsing.. :D

Tapatalked from my AOSPA Nexus 4
[Nexus 4 Original Android Development] ctfrommn:
Are you underclocked as well?
[Nexus 4 Original Android Development] baza14:
Force close launcher in settings is enough though.
[Nexus 4 Original Android Development] tlongren:
Anyone heard from motley lately? I think I read that he was sick and was starting to get back into the swing of things, but I haven't seen anything since. He's usually very fast about replying to my emails, but I haven't heard from him. Getting a little worried about him.

Anyone?
[Nexus 4 Original Android Development] ctfrommn:
He was online on the 1st, but hasnt posted since the 13th....heres to hoping all is well with him.
[Nexus 4 Original Android Development] hoangtungst:
Chrone, what rom are you using?
[Nexus 4 Original Android Development] mundixx:
Yes, 825mv at 1026 mhz..

Tapatalked from my AOSPA Nexus 4
[Nexus 4 Original Android Development] chrone:
I'm on all stock now except for the cwm recovery. :)

Sent from my Nexus 4
[Nexus 4 Original Android Development] JmPTaz09:
49 is still one of, if not the smoothest kernel around. Running it with the most recent Liquidsmooth and the phone runs just fantastic! Just wanted to mention it :beer:
[Nexus 4 Original Android Development] :
Hi all,

Little feedback (very little because I have not enough time today :( ) about running with all cores online. The phone runs a little hotter but nothing dramatic (about 3 / 5 °C more for the CPU) so for for me nothing to worry about. In general use the phone seems a little smoother and faster. In fact battery life seems almost the same as running with 2 cores online minimum (like for me before), I'm surprised about the battery that all cores online consumes not too much.

Always the same settings as before for Interactive governor (agressive), no undervolt / underclock.

So in short it's a good setting :D

Sorry for my English I'm far away from Google translation :p:D

:)
[Nexus 4 Original Android Development] ctfrommn:
I was too.....its very counter intuitive. Mine ran hotter too till I lowered the max to 1026....no lag and no heat!
[Nexus 4 Original Android Development] z3r0_x:
I'm running 2 cores (always on, 2 core minimum without hotpluging) at 1620 Mhz, as I feel single-threaded performance is much more important in Android than having as many cores as possible - seems to work very good for me so far, very smooth (even with the conservative settings for interactive put in by motley as default) and great battery life.
[Nexus 4 Original Android Development] Spec-Chum:
Hi Viking, apologies if I've missed them in this thread but could you possibly just post your governor settings and what impact you noticed on battery life, if any?

Thanks :)
[Nexus 4 Original Android Development] hoangtungst:
how can i make it ?
[Nexus 4 Original Android Development] :
Hi,

Definitely not battery friendly but here they are if you want to test:

http://xdaforums.com/showpost.php?p=39543135&postcount=2777

http://xdaforums.com/showpost.php?p=39818796&postcount=2946

And actually with all cores online.

An example of my battery life: http://xdaforums.com/showpost.php?p=39773273&postcount=2900

And why these settings: http://xdaforums.com/showpost.php?p=39739812&postcount=2865, my goal is not battery life, these settings are MY settings, maybe not YOUR settings ;)

If I remember right there is also some other settings, check my other posts in this thread...

Hi,

In Trickster Mod for me, Hotplug Control / min_online_cpus set to 4 or with init.d script:

:)
[Nexus 4 Original Android Development] :
Re,

I reread (?) the thread and what you mean about "I was too.....its very counter intuitive", I'm sorry but I don't understand :crying:. It's about battery life that you said that? "Counter intuitive" = "Counter productive" ?

Because about battery life there is a little impact, it's right, but at least for me it's not something important. With my settings compared with now with the 4 cores online in idle nothing changed (I tested during the night same battety stats as before) but I agree in use (screen on time) I loose about 30/45 minutes (really "approximately") maybe less or more.

So for me the impact is negligible about battery life. But it's for me.

The whole system seems more responsive, "fast", "smooth", etc... I can't describe how exactly but there is something "more"...

For now I keep my Interactive governor settings with the 4 cores online, these settings suits my needs, that's all.

In any case thanks to point out the fact we can run with 4 cores online without any negative impact, for me. Like I said I never thought about it because I did not play too much with the Hotplug Control.

Maybe my general idea is here:

;)

EDIT: since there have been major changes at my work (unfortunately), I would be much less present here :crying:. But work is life... :rolleyes:

I will always follow the thread, but less often and I could not certainly answer as before (would still have my answers have helped or were interesting... :D).

Great thread, awesome kernel, nice users, keep it all like this ;):cool::angel:;););)

@ _motley: I hope you are fine, thanks for your work on this kernel ;) and give us some news about you ;)

@ chrone: I like your answers and your researchs (I mean your links) here ;)

@kszaq: check your PM's... :)

@ hoangtungst: I hope your lags will disappear :D

@ trillo69, copi, IAmAN00bie, ctfrommn, thracemerin : :good::good::good:;)

Soon everyone :good:
[Nexus 4 Original Android Development] chrone:
Good luck on your new job, dude! :)

Sent from my Nexus 4
[Nexus 4 Original Android Development] ctfrommn:
Indeed... Hope to see you from time to time. Your the type of user we need more of on here. Be well :)

Sent from my blazing bionic Nexus 4
[Nexus 4 Original Android Development] trillo69:
Good luck mate!
[Nexus 4 Original Android Development] karanrajpal14:
Good luck mate. Thank you for all the help!
[Nexus 4 Original Android Development] iamhacked:
Max 1024, interactive for CPU has been lagging significantly. What's the default max again?
[Nexus 4 Original Android Development] ctfrommn:
1512....1026 will lag unless you have 4 cores online all the time, in which case it doesn't get any smoother.

Sent from my blazing bionic Nexus 4
[Nexus 4 Original Android Development] mko000:
Good luck to you! You have been a great help in this thread since _motley has been away.
[Nexus 4 Original Android Development] casper312:
I just made the switch from franco.kernel. How do I access/tweak the sound control options? I searched but couldn't find the answer. Thanks!!
[Nexus 4 Original Android Development] yurilebbie:
Look at the second post, it details how to change the kernel settings
[Nexus 4 Original Android Development] pitjago74:
Thanks viking37!!!good luck :D:D:D
[Nexus 4 Original Android Development] casper312:
I did but I don't see anything regarding sound control or volume. :(
[Nexus 4 Original Android Development] trillo69:
Since it uses faux sound module, you'll probaly need his app.
[Nexus 4 Original Android Development] ctfrommn:
Yea, its not there. You would have to search the thread....try post 2518 http://xdaforums.com/showpost.php?p=38975060&postcount=2518
[Nexus 4 Original Android Development] iamhacked:
Apparently the new trickster mod version is supposed to bring Franco's sound control but I don't see it.
[Nexus 4 Original Android Development] thracemerin:
Has to have kernel side support, I think motley only supports faux sound.
[Nexus 4 Original Android Development] :
Hi,

Check also this post: http://xdaforums.com/showpost.php?p=39024054&postcount=2558

There are some init.d scripts here and there..., for example here: http://xdaforums.com/showpost.php?p=39029088&postcount=2559, there are some others, with a little search you'll find them ;)

Otherwise Faux's apps works perfectly.

Yes, you're right ;)

Thanks guys for your encouragements, greatly appreciated :good: ;)

Bye :)
[Nexus 4 Original Android Development] Franklin Bernard:
Hi,

Anyone have Init.d for contrasty colors? Just want to try it out

Thanks.
[Nexus 4 Original Android Development] :
Just install trickster mod app and select the preset for contrasty colors... Motley has built in presets....

Sent from my Nexus 4
[Nexus 4 Original Android Development] thetinguy:
What happened to motley? Is he alive?
[Nexus 4 Original Android Development] iamhacked:
It takes like 5 seconds to apply upon boot so I'd prefer the init.d script. Besides I wanna see the nexus boot animation in better colors :D
[Nexus 4 Original Android Development] efan3719:
well he was last active april 1st. he probably just has stuff going on.
[Nexus 4 Original Android Development] dhurk:
Which version has new wifi drivers i cant remember but prima or something like that,im searching that because connecting to 802.1x networks is buggy,i hate google this problem was exist since ICS,please help me if you have any knowledge about how to connect that kind of networks,802.1x peap mschapv2 is the configuration..Thanks
[Nexus 4 Original Android Development] mko000:
http://xdaforums.com/showthread.php?p=39244058
[Nexus 4 Original Android Development] chrone:
here's jazzboyrules' init.d script for PA presets:

http://xdaforums.com/showpost.php?p=37673702&postcount=1546
[Nexus 4 Original Android Development] efan3719:
so umm does this kernel have the deeper sleep that Faux was talking about in his thread? or is that special to his kernel atm?
[Nexus 4 Original Android Development] iamhacked:
IAmAN00bie says it does.
[Nexus 4 Original Android Development] efan3719:
yeah that was what i saw as well. is there a way to check? or does someone here know for certain?
[Nexus 4 Original Android Development] IAmAN00bie:
Well, using Faux's app I know that the C0, C2, and C3 states work. I could enable/disable those 3 and I would let my phone sit and the counts for each would increase. The only one that didn't do anything was the C1 state.

edit: unrelated, but does anyone know how to translate/use Faux's gamma interface on this kernel?
[Nexus 4 Original Android Development] kszaq:
Stock kernel allows every (so-called) C-state: WFI, Retention, Standalone Power Collapse and Power Collapse. By default, only WFI is turned on (see this file).

Stock ramdisk enables Power Collapse ("C3") for every core (see here). The same applies for Motley's kernel. Thus for stock Nexus 4, "C0" and "C3" are enabled and you can turn on "C2" if you want.

To be able to use Retention ("C1") you need to compile kernel with two patches from CodeAurora and one from Faux/Franco that introduce support for Retenetion mode for APQ8064 in Mako (these are the patches).
[Nexus 4 Original Android Development] Kaffeekranz:
Nice, I just had my first run-in with compiling kernels and since I've always wanted GPU OC on motley's.. well.

Overclocking the GPU to 487,5mhz does need a little more voltage to be stable though.
[Nexus 4 Original Android Development] IAmAN00bie:
Damn, thanks for the info. If only I knew how to compile kernels, then I could add that in.
[Nexus 4 Original Android Development] kszaq:
It's quite easy, there are many guides! For example here and here.

Attached you can find Motley's kernel with retention enabled. :)
[Nexus 4 Original Android Development] Remoteconcern:
Interesting. With these newly enabled powerstates is the device using them while awake with screen on? Ezekeel wrote a function like that for the galaxy nexus and I found it worked well.

Also, after flashing your kernel with the extra commit, how we enable the usage of these states?

Thanks!

EDIT: did some digging, cross posted in Faux's thread. Its good work on his part.

Seeing as no one seems to have the sysfs pathways for the new retention state, I did some digging. These would appear to be what the app does when you change the toggle.

echo 1 > /sys/module/pm_8x60/modes/cpu0/retention/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu1/retention/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu2/retention/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu3/retention/idle_enabled
[Nexus 4 Original Android Development] odoto:
I just installed this kernel on my N4 (replacing CM stock kernel)... and observed some improvements I can't quite believe at the moment...

I did an IO benchmark (AndroBench) and got 171 mb/s sequential writing (was 10 mb/s with old kernel) and 150 mb/s (40000 IOPS; before: 1mb/s and 258 IOPS) for random writes...

that seems a bit much... also writes are a lot faster than reads... and according to AndroBench the write values are better than those of any other devices in their database...

any idea what's going on here? is there some sort of low-level caching going on in the motley kernel?
[Nexus 4 Original Android Development] IAmAN00bie:
Yep, those are it. Franco mentioned it in one of his posts and I was just about to post that! Seems you beat me to it.
[Nexus 4 Original Android Development] chrone:
It's because of dynamic fsync. Screen on fsync is off and screen on fsync is on. The fsync is still off though disabling the dynfsync and leave fsync enabled, test with androbench get same results more less ~ up to 140mbps sequential write.

With fsync off, all data is written to ram then written to emmc later on, that explains the jump on write throughput. While the original sequential write throughput on nexus 4 emmc is around 10mbps ~ flashdrive class 10.

There's a risk when fsync is disabled that somehow your system crashes, the data might not completely written to emmc and you mighy get corrupted data or even soft brick your phone.

Sent from my Nexus 4
[Nexus 4 Original Android Development] shadowcaster31:
If i am using ParanoidAndroid 3.15 and i wish to flash this kernel, which one should i choose first before flashing b49?

There are 2 b37 zips:

Stock/AOSP with init.d support

-or-

CM 10.1

Kindly clarify. Thanks!
[Nexus 4 Original Android Development] batman368:
build 37 AOSP
[Nexus 4 Original Android Development] AcmE85:
Thanks! Did you include prima WiFi updates?
[Nexus 4 Original Android Development] kszaq:
Nope, sorry. That'd have to be yet another build. I'll post one for you this evening.
[Nexus 4 Original Android Development] akira.pwr:
What happened to Mothley? :(
[Nexus 4 Original Android Development] kszaq:
There you go: Motley's b49 kernel with Prima v3.2.2.2 drivers and Retention patches. I've also attached a reset kernel in case anyone wants to go back to stock Prima drivers (it includes stock kernel).
[Nexus 4 Original Android Development] azrash:
Hi thanks for the patched kernels. I have tried reading what the retention does in the previous posts, but I am a bit lost with the technical terms. May I know what it does, in a simpler explanation? Thanks, appreciate it!

Flowed from my Nexus⁴
[Nexus 4 Original Android Development] IAmAN00bie:
It's basically another sleep state that your CPU cores go into when they go idle. We used to only have C0, C2, and C3, and I think C2 and C3 were only used when the screen was off and C0 used when the screen was on. With C1 and screen on, the cores can idle using less power so your screen on time should improve if you enable C1.

Correct me if I got the basics wrong.
[Nexus 4 Original Android Development] superleeds27:
So do we need init.d to enable this?
[Nexus 4 Original Android Development] Remoteconcern:
Yes, you do. I posted the pathways a page or two back, I'd link you but I'm on my tablet.
[Nexus 4 Original Android Development] superleeds27:
Guessing we could use FauxClock too?
[Nexus 4 Original Android Development] Remoteconcern:
Yes sure, assuming that he has exposed the option in that (which I guess he has, but I don't have the app)
[Nexus 4 Original Android Development] j3di:
Yes.

Also well worth using the app with this kernel anyway, new updates include individual frequency voltage control rather than just global adjustment.
[Nexus 4 Original Android Development] .psd:
Thinking about flashing the 13April nightly, but before I do can someone please confirm that there's a "0.5 Sec" option in...

System Settings > CarbonRom > Navigation > Hidden Navbar Timeout
[Nexus 4 Original Android Development] sMtt:
wrong thread? :)
[Nexus 4 Original Android Development] brian88:
Are they different?? If yes, could someone show me what the different is? And which one I should flash? For a long time I've not come back this thread and I dont know what "retention" or "Prima v3.2.2.2" are :(
[Nexus 4 Original Android Development] .psd:
Lol...oops!:angel:
[Nexus 4 Original Android Development] IAmAN00bie:
Retention refers to the new sleep state that I mentioned in the last page while prima refers to the newest WiFi drivers that are supposed to fix the delayed screen off notifications for some people.
[Nexus 4 Original Android Development] brian88:
Thanks!!! So, if I want my battery life is better in idle time I flash Retention, if I have trouble with wifi or delayed screen off notifications I flash Prima, is it wright?? And after flashing, do I have to set anything else to enable??
[Nexus 4 Original Android Development] karanrajpal14:
There is a single kernel that has both the goodies. Flash that. The new drivers are great. The range is a little better. Earlier I used to get only a single bar in my room but now I'm getting 3. Try it out you won't regret it. There is a reset kernel posted too. Just in case you need it.
[Nexus 4 Original Android Development] brian88:
I just flashed that a moment and test it :D hope no need to use the reset kernel :laugh:

But, I have one more question that do I have to set anything else to enable it. How about this

echo 1 > /sys/module/pm_8x60/modes/cpu0/retention/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu1/retention/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu2/retention/idle_enabled

echo 1 > /sys/module/pm_8x60/modes/cpu3/retention/idle_enabled (#3037)

Need to change these, sir??
[Nexus 4 Original Android Development] iamhacked:
Reception seems more stable with the prima drivers, bars used to jump anywhere from 2 to 4 bars for no reason. But I'm only getting around 10mbps download, and high ping around 100ms. my internet is 50mbps download.
[Nexus 4 Original Android Development] IAmAN00bie:
Yes, you have to run those lines in terminal or put them into an init.d script because Retention isn't enabled by default.
[Nexus 4 Original Android Development] kszaq:
Actually you may want to put only that one line:

echo 1 > /sys/module/pm_8x60/modes/cpu0/retention/idle_enabled

because for APQ8064 retention may be enabled only for cpu0. The other command will be ignored.
[Nexus 4 Original Android Development] meangreenie:
Is it possible to re-enable mp decision on these kernels?
[Nexus 4 Original Android Development] thracemerin:
No, _motley uses thalamus' hotplug, mpdecision is completely removed.
[Nexus 4 Original Android Development] TheDarkDefender:
Oh, what's the difference?

Sent from my Nexus⁴
[Nexus 4 Original Android Development] thracemerin:
mpdecision is the closed source hot plug driver that ships with the stock N4 kernel.

thalamus' hotplug is an open source hot plug driver written by thalamus.

Both control how the CPUs behave, they do it in different ways.
[Nexus 4 Original Android Development] ashishv:
Can it be enabled using fauxclock?
[Nexus 4 Original Android Development] TheDarkDefender:
Ok thank you. Imo, mpdecision is a pain in the neck. Keeps changing your cpu's frequency. Sometimes it happens even when I've set it off. Using faux kernel right now.

I'm kinda new to the n4, not new to motleys kernels. I would like to try motleys on n4. There are a lot of kernels in the thread. Motleys own and some patched ones I came across. I'm a bit confused on which one to flash. My primary requirements are battery and stability. I never OC. In fact I underclock often to save battery. Could you please help me out?

Thanks

Sent from my Nexus⁴
[Nexus 4 Original Android Development] iPwn_:
motley_'s own is a good choice for now. The patched ones are just for testing.

You can mimmic mpdecision on motley's kernel by setting the boostpulse duration in the Intractive governor to 2000000. This won't change your min frequency like mpdecision does but it will allow the CPU to hit a frequency of your choice for 2 seconds (default 1026 MHz) when you are interacting with the UI. This will eliminate the stutter.
[Nexus 4 Original Android Development] iamhacked:
Okay this is just temporary.
[Nexus 4 Original Android Development] TheDarkDefender:
Alright, thanks. Btw, I hate mpdecision. I definitely wouldn't try mimicking it. :)

Sent from my Nexus⁴
[Nexus 4 Original Android Development] brian88:
Hmmmm, after a night with Motley's b49 with Prima v3.2.2.2 drivers and Retention patches, I set airplane mode all night. Dont know this terrible drain relate to the new Prima and Retention version?? :(
[Nexus 4 Original Android Development] meangreenie:
Running the same driver and mine seems to be OK, but haven't run them for as long yet.

Just for info.. I didn't activate the retention settings and I installed on top of the stock kernel which I know isn't correct but as I said, seems ok so far.

Edit.. after leaving in airplane mode overnight I have a flat line on my battery usage graph.. Note again, I didn't set any retention settings, just left them at default because I only wanted the Wi-Fi fix.
[Nexus 4 Original Android Development] brian88:
haizzz, maybe I'll test in a couple days with it :rolleyes:
[Nexus 4 Original Android Development] iPwn_:
What exactly does retention do that the other power states don't?
[Nexus 4 Original Android Development] superleeds27:
Be nice to see the Wheatly Gov added!