yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] _motley:
Great to hear, thanks for sharing! I am running two cores today with max_online_cpus = 2. I can definitely tell that it will help save battery. BTW, the lge touch core driver you are changing the debug mode from 1 to 0 in your script won't do anything after a quick glance at the source. There is a higher level debug variable that is not compiled in. The setting that you edit is the debug level when the higher level debug variable is un-commented and built into the kernel. I may change the default to 0 (off) and then turn on the higher level debug so that it is available to turn on if we want to. I think I may have commented this out awhile back to stop the kernel log spam.

Yes, the saying "you never step in the same river twice" comes to mind when it comes to benchmarks. There are some things you can tweak to get higher scores (throttle temp, auto_plug settings, CPU governor etc.) Sometimes it is just some app waking up in the background that screws up your score. Right now I am tuning for a happy medium of performance and battery savings. It has to be tuned from there. Pretty soon I will try to put some scripts together (battery saver, performance etc.) that we can flash to init.d using zip files.

The default in b17 is 1242MHz, but the good news is that it is configurable in the interactive governor settings (Trickster MOD etc.). Still trying to decide what the default settings for boostpulse should be, but perhaps we will try 1024Mhz to match stock project butter for the N4.

I have been thinking the same thing. I will likely boost it up to 68C. I have been doing some testing and the throttling works very well.
[Nexus 4 Original Android Development] whittikins:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

Motley with b17, can touch boost be disabled with a setting or do I have to flash inert powerhal?
[Nexus 4 Original Android Development] lazer155:
I checked system tuner pro in the cpu area and don't see anything relating to changing the project butter ramp up frequency.
[Nexus 4 Original Android Development] samwebbo1990:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

How do you configure this kernel to only use 2 cores?
[Nexus 4 Original Android Development] jazzboyrules:
He noted in a previous reply for b17 that you will have to flash the inert HAL to disable touchboost.

---------- Post added at 11:23 AM ---------- Previous post was at 11:22 AM ----------

You can do that in Trickster MOD (free app).
[Nexus 4 Original Android Development] bamsbamx:
Motley, do you think you can make something to stop mediaserver battery drain???
[Nexus 4 Original Android Development] whittikins:
I just wanted to give some feedback regarding b10, b14, and b17. I have used all of them for a few days each, and I still seem to get the best battery life on b10. I don't notice any less performance either. Does anyone else find b10 better overall? I'm comparing the default b10 settings to the default settings of b14 and b17.

Edit: I guess I'll flash inert powerhal to see if b17 matches b10.
[Nexus 4 Original Android Development] _motley:
That is likely an Android OS thing, but I will be reviewing some audio/video commits in the kernel here soon. The next release already has upgraded WiFi drivers:good:

See post 2 and set max_online_cpus = 2 . You can even do it using a root file explorer to edit the file (ES File Explorer etc.)
[Nexus 4 Original Android Development] jazzboyrules:
I couldn't undervolt b17 as much as I was able to on b14; it auto-rebooted. I am still trying out b17 for one more charge cycle and see if the battery life improved. I haven't yet tried b10 but b14 had better battery life than b17 for me (as of now).
[Nexus 4 Original Android Development] samwebbo1990:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

Is there any way to keep these Max CPU settings after a reboot though?
[Nexus 4 Original Android Development] _motley:
Yeah, I hear you. Nobody is an expert in all areas of the kernel, so it really would take someone particularly familiar with this area to be of a lot of help. I'm sure some of the commits will make perfect sense while others could be part of a larger plan of attack. If it were me, I would study the code and notes for each commit in chronological order (and some of the adjacent commits) and try to best understand the mindset and direction they are taking over at code aurora. It might start making more sense then. The scary part is that we don't know if they are really done with their goals in this area or whether more commits are coming. Or worse, some will be reverted:eek: The proof will be in the pudding as they say. I'll keep checking your thread to see how it goes. If we have something good, then I will be happy to merge just those commits into a build and we can test it out over here as well.

Sure, there are a couple ways. If you really want to settle in on a setup, an init.d script would be the best way. Just set, test, and forget. Or, you could use an app called Script Manager that can run scripts on boot (or on demand if you want to create some profiles for different things).
[Nexus 4 Original Android Development] ctfrommn:
Motley,

I am recently coming back after a long hiatus on other kernels. What is the status of hsic fixes and 3G patches on your kernel? I know many have tried unsuccessfully to implement wakelock fixes without losing data. Harsh is the only one I know who has been successful in doing both. I havent been using Exp 17 long enough to check battery life/wakelocks yet but just curious. Oh, 17 is much better that the last three, well done. Love the color patch revert too.

Also, I selected 2 as the max cpu's in the config file but I dont think its turning 2 off as benchmarks are the same. What did I do incorrectly?

Edit, NVM it appears it didnt stick upon reboot, I set it again and all is good now. I will be curious to how this affects battery life. Performance seems the same in real world use.
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

Same here...I was stable on 14 but had to bump voltages again for 17. Not a big deal though. Maybe my previous was a tad too low. That being said the stock voltages motley has fairly low...I may keep them at his settings and just lower my 304mhz for good standby drain.
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

So I ended up reinstalling b17 and my crazy drain when phone was asleep is gone.
[Nexus 4 Original Android Development] mobilehavoc:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

I'm getting high hsic wake lock on b17 when on mobile data but its not bad on wifi
[Nexus 4 Original Android Development] ptesmoke:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

Amazing standby time. This is in a horrible to no signal area for 8 hours. Don't say "eh noob use your phone next time" this is a comparison to stock standby in the same location. I'd be down to about 60ish% on stock!!

Keep it up motley!
[Nexus 4 Original Android Development] thracemerin:
This is to be expected, the msm_hsic_host wakelock is largely due to the 3G modem being attached as a USB device, when the modem is being used (ie on 3G) it will hold the wakelock more since it's using it for location services, sync, etc... in the background along with any active app usage. While on WiFi the only time the modem needs to wake up is to check the tower status for phone calls which doesn't need to happen nearly as much.
[Nexus 4 Original Android Development] Riusaki:
Which governor is best to use with #17?
[Nexus 4 Original Android Development] ctfrommn:
Either Interactive or Ondemand. I prefer Ondemand myself.
[Nexus 4 Original Android Development] rlaw:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

Interactive is the recommended gov, it's the one stock uses. Best balance between performance and battery life but doesn't offer the absolute best of either.
[Nexus 4 Original Android Development] ctfrommn:
Actually stock uses Ondemand, but Interactive is good too.
[Nexus 4 Original Android Development] yurilebbie:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

He probably meant stock on the experimental, which motley has said comes with interactive default. Look at the release notes for exp 8 to see it in the OP.
[Nexus 4 Original Android Development] air2k57:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

Use your phone, newb :D
[Nexus 4 Original Android Development] jazzboyrules:
Re: [KERNEL][Jan-16][Linaro]Exp:b17/Main:b57 _motley kernel for the N4

Actually I am now getting better battery life on b17 after 1 day. Also I am increasing the undervolting step by step and it's working.

I am for battery for 1d 1h 40m (though I had to put the phone on charge for 15 minutes for stability test after doing some more undervolting, and that passed), 3h 30m screen on time, 1h talk time, 30m podcast listening, and 10% battery remaining.
[Nexus 4 Original Android Development] _motley:
Experiment build 21 posted

Hi everyone,

I have dropped b21 as an update (see OP). I am hoping this will soon be tagged as "stable" and will complete what we have achieved thus far before moving onto the next beta series. If it doesn't, we'll fix it in b22 before we move on.

Thanks again for all the great feedback and assistance with questions while I am away!
[Nexus 4 Original Android Development] samwebbo1990:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/Main:b57 _motley kernel for the N4

Should we still flash the inert powerhal zip with b21?
[Nexus 4 Original Android Development] _motley:
I would not say "should", but you "could" just like on b17. For the best user experience, I suggest you leave it as is and tweak the interactive governor for boostpulse duration and frequency.

Just to clarify this further so it makes sense for everyone, I would only flash the "inert PowerHAL" if you are using OnDemand full-time and no longer using interactive (set on boot), OR if you are using interactive and want to completely remove the boostpulse requests coming from Android. In the later case, UI performance may be sacrificed a bit for better battery.
[Nexus 4 Original Android Development] dwang:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/Main:b57 _motley kernel for the N4

Is on demand now default instead of interactive?

Edit: never mind. I was trying another kernel. Flashed 17 first and now default is interactive.
[Nexus 4 Original Android Development] _motley:
Haha, no problem. I was just replying and your edited response came up instead of the one I read.
[Nexus 4 Original Android Development] bljy:
hi motley,

thanks for so patiently guiding the community and for releasing your wonderful kernel. :laugh:

after reading post 2, i still don't quite understand how to change max number of cpus. could you kindly point me in the right direction?

also, is it possible to do such things with apps such as faux kernel enhancement, etc?

Thanks a million!
[Nexus 4 Original Android Development] dwang:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/Main:b57 _motley kernel for the N4

Both 21 and 17 have been laggy for me due to the go hispeed load set to 99. Setting it to 80 like before makes things smoother.

B10 still seems to be the smoothest. Im guessing that's because hi speed freq was set to 1512000 as well as go hi speed load set to 80.
[Nexus 4 Original Android Development] _motley:
Hello, you really need to learn how to write and run scripts to be able to do this (Script Manager or System Tuner is a good place to run them from a rooted device to play around). It's not hard to do. One person posted a script a couple days ago, so you can see how he set it there. You can also use a file manager to edit these virtual files in sysfs to temporarily test the settings. Other third party apps won't currently support this because I am the only dev that has the max_online_cpu parameter available. If you want the settings to persist on a reboot, you need to arrive at a script that works and place it into the /system/etc/init.d/ folder

Hope this helps. There is a ton of info out there on shell scripts, so I won't cover all that here.

I'm not seeing the lag in b21 thus far. Are you changing any other interactive parameters? go_hispeed_load = 90 would be a better value than 80, see this commit from Google:

https://github.com/android/kernel_common/commit/f9208410c406e56c34e58248c6b0f275d2057edd

Update default go_hispeed_load from 85% to 99%. Recent changes to the

governor now use a default target_load of 90%. go_hispeed_load should

not be lower than the target load for hispeed_freq, which could lead

to oscillating speed decisions. Other recent changes reduce the need

to dampen speed jumps on load spikes, while input event boosts from

userspace are the preferred method for anticipating load spikes with

UI impacts.​

P.S. I was seeing some lag at one point and I was low on disk space. I have an 8GB model. I also turned off sync from the app "Currents" since some said it caused lags and I stopped prefetch on "News". Many apps default to syncing automatically and if I don't use them often, I don't want that happening in the background.
[Nexus 4 Original Android Development] lazer155:
I haven't noticed any lag yet with b21. It seems smoother than b17 (didn't try 12).
[Nexus 4 Original Android Development] samwebbo1990:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/Main:b57 _motley kernel for the N4

Can I just say thank you motley for such a great kernel and just as good feedback. Keep up the good work! :)
[Nexus 4 Original Android Development] jazzboyrules:
Hi Motley, I am still on b17. I fail to understand the difference between go_hispeed_load and target_load. If go_hispeed_load is the load at which the freq is boosted to the hispeed_freq, what impact does target_load have? Thanks.
[Nexus 4 Original Android Development] keda:
hi Motley,

is support for touch control in work? can't wait to try it out.

thanks
[Nexus 4 Original Android Development] direwolf1:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/Main:b57 _motley kernel for the N4

_motley,

Thanks so much for your work on this kernel. I upgraded to b21 this morning. Only been using it about an hour, but smooth sailing so far.

If you do end up bundling TouchControl with future versions of the kernel, do you think you could also keep making builds without it? I'm not a fan.

Sent from my Nexus 4
[Nexus 4 Original Android Development] tengen:
I love how responsive and informative you are, motley. It really does make a difference. Thanks! :good:
[Nexus 4 Original Android Development] Somairotevoli:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/Main:b57 _motley kernel for the N4

Something strange going on with battery right now using b21. Not ready to complain. Might beat my best screen on time. We'll see if it's just a fluke:cool:

Sent from my Nexus 4 using Xparent ICS Tapatalk 2
[Nexus 4 Original Android Development] Odiumvex:
Any boosts from compiling with 2012.12 Linaro?
[Nexus 4 Original Android Development] elmalote:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/Main:b57 _motley kernel for the N4

_motley, will the newer versions of Android be using the interactive governor as default? And does your kernel include the latest work from Google with interactive?

Thanks a lot for a great kernel!
[Nexus 4 Original Android Development] dangerclose:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/Main:b57 _motley kernel for the N4

Battery life is great on b21

1H43M playing subway surfer with 50%

remaining. Thanks motley! :good:
[Nexus 4 Original Android Development] _motley:
I have created a test kernel with the set of hsic/usb patches from thracemerin's kernel (thanks for the work and the git repo!) to see if it helps reduce the wakelocks in this kernel. The kernel works fine for me thus far, so it would be good to get some other testers. Once I post the branch up to github, I will post an AnyKernel zip to THIS post so others can start testing [Done].

b22 alpha - View attachment motley_anykernel_nexus_4_EXP_build_22.zip - please flash b17 first before flashing b22, just like it states in the OP for b21.

b22 = b21 + the hsic the patches from my hsic branch found here: https://github.com/motley-git/kernel-Nexus4/commits/hsic

This is for testers that want to provide constructive feedback on wakelock duration, mobile data reliability or just the commits I have used. Others should use b21 from the OP.

Typically, I am on WiFi most of the day at work and at home. Only during my commute and during lunch am I on mobile data. So for me, I really don't know what to expect. However, I will continue to test in the way I use the phone and allow others to do the same. I tried turning on only mobile data and have done some preliminary testing with Better Battery Stats. So far, I am not convinced either way that it does anything different than what we have already. However, in my testing thus far, I am convinced that mobile burns your battery a lot faster for data and I am thankful that I have the WiFi options throughout the day!

No worries...TouchControl is only an app that can be optionally installed if you want this feature. You definitely won't have it forced on you. If I can make some simple changes to make it work, or if the dev can provide a solution, then this will be great for those that want to use it. I also still have my eye on showp's sweep2wake for an in-kernel solution. If I were to add this option, it would be off by default and would would need to behave like it is not there when not using it. Personally, I have never used this type of feature on any device. While it is a pretty neat little feature, I don't have a problem unlocking my device the old fashioned way. IMO, simple is better sometimes, but I know that some people really like these options and wouldn't mind having it available for them. Plus, it is a nice little trick to show your family, friends and that hot girl (or guy) at the bar you fancy and strike up a conversation with ;). And I digress...lol.

This is on my short list. There are some improvements in the 2012.12 build for 64 bit shifts in NEON.

It seems to be their choice for tablets and there is a lot more action going on in Google's git as compared to any other gov. However, I don't have any inside knowledge on the subject. This kernel has Google's latest interactive built in with a couple of my own tweaks (auto_hotplug integration). I really like it thus far and think that Todd Poynor has done a great job with his recent changes, although I do agree with the others that the tuneables are bit strange to understand with the go_hispeed_load @ 99 by default. But hey, it works great so I can't complain.
[Nexus 4 Original Android Development] thracemerin:
No Problem, glad I could help in development in some way.

As for whether or not this actually makes a difference to battery, it appears that if the phone is awake but all it's doing is waiting around for the USB root hub to decide it can suspend it really doesn't use much additional power over it being in deep sleep, there were some tests posted to my thread (linked from Harsh's thread) showing that in 5 hours the difference with them in and not in is insignificant in terms of battery life. My testing has shown that there could be a gain of battery, but even a 5 hour test is rather short given the total potential lifespan of the battery, multiple 100-0 tests would give us a better idea of whether it makes a difference, the problem is that unless you can guarantee you do exactly the same things every day the only way to do this under the same approximate conditions is to do it on idle and 100-0 on idle would require somewhere around 60 hours of idle testing, and who wants to leave their phone alone for that long? (I'm having issues doing a 2 hour test without messing with mine)

I'd definitely be very interested in whether people have an increase in battery life while on 3G (since the hsic wakelock should be minimal on WiFi anyway) before you merged this and after.
[Nexus 4 Original Android Development] elkhouri:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Sorry I can't help test b22 as I don't even have mobile data. But I'm happy to report that b21 is working well, and the hsic wakelock on Wi-Fi is negligible (<1%) as expected.
[Nexus 4 Original Android Development] mundixx:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Thanks, Motley. With b21 i am having 14 minutes of the hsic wakelock in a span of 10 hours, which is actually quite good already (only 2.9%). I will be testing b22 and provide feedback for you as i am on hsdpa 24/7 due to my unlimited data plan.

Sent from my AOSPA Nexus 4
[Nexus 4 Original Android Development] _motley:
Thanks for checking in. Yeah, it will be interesting to see how it goes. You are so right about the testing being difficult to perform and quantify, so we'll just have to see what people say about their daily routines...as this is where it really matters anyhow. Even if it seems to help a bit, it will be worth keeping the changes. I am not expecting anything earth shattering. There was 1 patch I didn't merge, better debugging features...I might still add that but I want to look at it closer first. We will probably be getting many of these patches in our next release from Google anyhow if they pass QA....wait that might actually be us if they follow these threads LOL.

Great, thanks for the feedback! I think the WiFi driver merge included in b21 has worked out well. Let's see how the mobile data goes!
[Nexus 4 Original Android Development] tooeasyforkevin:
just flashed b22, hopefully i can give you some useful feedback
[Nexus 4 Original Android Development] thracemerin:
Well, if it has no negative side effects, I can't see the harm, even if it improves battery life by 0.0001% over 100hours it's an improvement, at the very least it removes a wakelock that may be hiding another problem elsewhere in the system.
[Nexus 4 Original Android Development] karanrajpal14:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

Umm I'm already on b21, do I have to flash 17 again and then 22 or can I just flash 22 over 21?
[Nexus 4 Original Android Development] mundixx:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

You can flash 22 over 21 mate

Sent from my AOSPA Nexus 4
[Nexus 4 Original Android Development] jassycliq:
Re: [KERNEL][Jan-19][Linaro]Exp:b21/b22a/Main:b57 _motley kernel for the N4

I know it may not seem like a lot but considering how good harsh's kernel is with battery life, it makes it hard to believe that those wakelocks are so minute. I've tried every other kernel that still uses mpdecision and they don't last anywhere near his kernel. Not comparing kernels just saying that whatever patches he did or didn't apply seem to be working. Would love to see a kernel with those and not using mpdecision. Gonna try 22 either way to see if its any better :)
[Nexus 4 Original Android Development] thracemerin:
Well like I said in my thread, as far as my testing goes, there is a significant difference between stock and stock+hsic fixes, my phone drains somewhere between .3% and .7% less per hour on average with the patches in than it did with the patches out, but the thing is that the main power drainer when on 3G (other than screen) is the radio itself which we can't really adjust because its closed source, there will be more drain if you have crap signal compared to if you have awesome signal because the radio has to work harder to get the data out to the towers. Some of the testing that has been done (and this was Harsh vs Motley b18) suggests that over 5 hours the difference in battery drain was next to nothing, but that's one person's device and one person's situation, so your results may vary significantly. Like I said before, if it improves at all even giving you 1 second over a 100-0 drain with no negative effects elsewhere, there is no reason not to keep them.