yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] thracemerin:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Looks like Franco found some more stuff for his r86, unfortunately my build machine is otherwise occupied until morning, I will put a new release with the additional stuff he added up tomorrow morning as soon as I can.
[Nexus 4 Android Development] calanizzle:
Franco does not use mpdecision since that makes the phone really hot, options with Franco are:

Hotplugging

Dual-core always

Quad-core always

You can change these settings through his app, I'm a noob as developer knowledge, just typing what I've read.
[Nexus 4 Android Development] meangreenie:
Any chance of an undervolt enabled version?

edit, nvm, i just realised it would put too many variables in in what you are trying to achieve.
[Nexus 4 Android Development] thracemerin:
Once I'm sure I've got this down, I'll probably add a stock+ version with a few features like undervolt and color correction, but no ETA as yet.
[Nexus 4 Android Development] thracemerin:
New version in Post 2 (See changelog)

I added the additional HSIC patches that franco identified as possibly beneficial to the wakelock so thanks to him!

I also moved to devhost, because hotfile sucks :p

Happy Flashing :victory:
[Nexus 4 Android Development] bradm23:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Just reporting on francos patches so far using his r86

Msm wake is at 1.6 compared to 1.3 from r85 however outside conditions may be a factor.

I did notice radio interface wake is at 2% compared to 4-5% which is an improvement.

My % without signal has improved a lot which is very nice to see. I have 5% showing today compared to 16+% other days.

I did notice a few times my phone switched over to edge service which seemed more than usual, but h comes back fairly quickly. I will be continuing to monitor this.

For reference, I am running the .33 radio for testing.
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Awesome! Also looking forward for the bright colors from molesarecoming kernelif it's possible. :)

Will report back tomorrow. Thanks!

Update:

5+ hours of mixed idle and use quick test on v5 revealed the wakelock was the same as on earlier version, which was around 3% wakelock time. :thumbup:

Sent from my Nexus 4
[Nexus 4 Android Development] meangreenie:
Been running v5 all night, browsing while listening and downloading music on WiFi.

63% left with 2 hours 59 minutes screen time, auto brightness indoors. Running moles PA.

Very happy with that. Also I think stock 4.2.2 colours are the best atm.
[Nexus 4 Android Development] chrone:
today i tested v5 kernel with wifi+3g and autosync enabled, the msm_hsic_host wakelock was down to max 2% only.

all is good with wifi on, 6 hours of battery life with 4.5 hours of screen time. :)

i intended to do battery calibration and forgot to take bbs log before the phone shutted off itself. *sigh
[Nexus 4 Android Development] bradm23:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Been noticing using Franco and even testing your v5 that it takes a little longer for h+ to appear once a request for data has been made. The up and down arrows trigger but there is a delay between when the actual data starts.

I also noticed on franco r86 (same patches as v5) that data was not stable some times. I noticed that my whole data connection actually reset vs just switching to edge for a second which happens every once in a while. Instead it looked like my data dropped and reset which I had never witnessed before.

I have seen my msm wake lock to go from 1.3 with v4 to 2.2 with v5, however my radio interface wake seemed to have reduced with v5 over v4.

Hopefully my testing helps a little. I am curious to hear other people's feed back v4 vs v5
[Nexus 4 Android Development] floepie:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

How often does the CM kernel change for mako such that you would have to (or might want to?) keep up with the nightly mods? I assume dvtonder is behind the CM kernel? I have a feeling that not much is ever done with kernel.

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
DvTonder isn't the device maintainer for CM on mako (he's a UI/UX person for CM in general, he just owns a mako so he participates in that thread), Arcee is. The CM kernel at the moment is just the stock one from AOSP as they try to stick to stock as much as possible, other than when Google adds new stuff there aren't likely to be changes between nightly builds as far as the kernel goes, so there isn't much need to keep updated, any major changes to the CM kernel will probably be added to this one also.
[Nexus 4 Android Development] thracemerin:
Interestingly enough, Arcee added this to the CM kernel: https://github.com/CyanogenMod/lge-kernel-mako/commit/bef5a1fbbd7132570eb3500784c9b22ea96b7f4d

I suppose i'll add it to the next release, but I don't think it will make any difference to how the phone performs in the meantime.
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Any improvement to improve battery life on 3G network is a joy to have.

But what does MPEG-2 have to do on kernel? Is it for the GPU enhancement in handling movies?

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
Usually I have an idea from reading a commit, but in this particular case I'm not entirely sure what that commit does.
[Nexus 4 Android Development] chrone:
lol, i got confused too finding the MPEG-2 in the log there.

btw, i've been on v5 for this two days straight. all is great except sometimes when switching from 2g to 3g it took a while to switch back. i had to disable data and reenabled, but i guess it was related to my position and provider. at home it could switch just fine flawlessly. :)

do you want me to post the bugreports and last_kmesg?
[Nexus 4 Android Development] thracemerin:
Yeah, post the bug reports, even if it was your provider it couldn't hurt to take a quick look at em anyway.
[Nexus 4 Android Development] chrone:
ok here it goes, but guess it might not be valid since i have rebooted two times when trying to figure out what was my cpu bin. lol.

but the msm_hsic_host wakelocks are still registered in the since charged and so on. hope it helps.

now that i know how to get the last_kmsg and bugreports, i will report tomorrow night after being used with 2g, 3g, and wifi all day long. :)
[Nexus 4 Android Development] thracemerin:
New Version in Post 2 (see changelog)

Added 3 more CAF patches for msm_hsic based on cherry-picks made by Harsh, thanks to him.

Also added the MPEG-2 patch that was cherry-picked into the CM kernel by Arcee.

Happy Flashing :victory:
[Nexus 4 Android Development] chrone:
whoa i love this fast update from you. keep 'em coming! :good:
[Nexus 4 Android Development] thracemerin:
Well, at some point there won't be more to do on this (there's no way we can reduce the wakelock beyond a certain point without disabling something we actually need like 3G data) and additional patches will just be bloating up the kernel for no additional gain, I think we're getting closer and closer to that, at that point I'll have to find something else to do.
[Nexus 4 Android Development] Confused_Cheese:
I remember seeing a post in the CM10.1 thread about you toying with the idea of a CM+ kernel... That would be awesome, especially with the gamma change ability from francisco! The only reason I'm running anything different atm is to *fix* the poor colours on the n4.

Love the work you've put in on the wakelock issue.
[Nexus 4 Android Development] thracemerin:
I'm working on a design philosophy for a CM+ kernel, because it could easily become a franco/faux/motley/bricked/matr1x/insectraven hybrid which isn't the point, the point would be to add a few missing things (gamma being one) to a largely stock CM kernel.
[Nexus 4 Android Development] bradm23:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Through all the msm patches, have any of you had any issues with delay sending or receiving text messages?
[Nexus 4 Android Development] thracemerin:
Nope, but I don't send very many texts. In the ROM threads I follow there are a few reports of text problems both SMS and MMS, but they don't seem to be kernel or ROM specific, so it sounds like a provider issue, but I'll look into it a bit. If you have a logcat of a text message getting stuck on send I might be able to see something, I'll try to reproduce it as well.
[Nexus 4 Android Development] reddv1:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Can I suggest just keeping this kernel stock apart from the msm_hsic_host wakelock related as the title suggests. Makes it easier to track just hsic fixes. Also because you are planning a feature filled CM based kernel.

Just my opinion, no offense intended.

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
Well, I'm not entirely sure what the point of that patch from CM is, but since Arcee is known for keeping his kernels as close to stock as possible compared to most CM maintainers, I assumed that it was fairly important for him to cherry-pick it specifically rather than waiting for Google to implement it from CAF, as in it fixes a specific problem or adds a specific necessary feature that he identified.

I do see why you say this though since you're merging my branch from remote for your touchscreen fix, I will keep this in mind from now on, but like I said above for Arcee to have cherry-picked CAF for this 1 commit, it had to be something fairly important, and I don't think it's likely to cause any issues.
[Nexus 4 Android Development] reddv1:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Oh OK, great point. By the way great kernel, nice to have a simple kernel in comparison to all the other kernels with a zillion features.

Don't worry about it, you're right, Arcee must have seen something important to cherry pick this out of thousands.

Sent from my Nexus 4
[Nexus 4 Android Development] meangreenie:
yeah, i have to agree about keeping it simple, a bit selfishly for myself though :angel: since i can't use any kernels with colour mods since 4.2.2 roms.. i dunno why but i get glitchy screen and it locks up when the screen goes off... shrugs, on 4.2.1 kernel/roms everything was fine.

A nice stockish 4.2.2 with wakelock fixes and undervolt (not forced though, standard settings at boot) and maybe touchscreen check thing taken out like reddv1 kernel.. that will do for me :D

j/k i'm very happy with v5, gonna try v6 soon
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Are v6 patches related with gpu performance?

I noticed micro stuttering when opening app center from home screen sometimes. But not on v5. The animation when opening apps also is not as smooth as on v5. :)

Flashed molesarecoming pa colors kernel removed the micro stuttering.

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
They shouldn't have changed anything related to the GPU. Hmmmm....

Edit: I lied, the patch from CM does affect the GPU, and now that I think of it people have been reporting lag in the CM thread too....

Edit 2: v6.1 in the works without that patch
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Oh okay, I'll try to reflash and wipe cache and dalvik cache again. :)

Update:

Whoa you replied so fast. Looking forward for the v6.1 :thumbup:

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
v6.1 up and ready to go in Post 2, I strongly recommend this version over v6 unless you want to see if you also get the lag that chrone reported.

I guess I learned my lesson about adding patches I'm not sure about. :angel:

Assuming there are no other issues, I'm going to leave v6.1 up without changes for some solid testing and if all goes well we'll put that up as the release.

Happy Flashing :victory:
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Yay, the smoothness is back. Awesome! :)

Sent from my Nexus 4
[Nexus 4 Android Development] mundixx:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

6.1 uses half breed colors right? I think this seems brighter than the stock PA kernel.. I may be wrong though

Sent from my AOSPA Nexus 4
[Nexus 4 Android Development] thracemerin:
Using the stock colors at the moment, I did a PA halfbreed version for 4.2.1, and I might when I get to an official release for 4.2.2.
[Nexus 4 Android Development] mundixx:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Thanks! What do you mean by an official release? Are you referring to the Google Kernel source or PA colors?

Sent from my AOSPA Nexus 4
[Nexus 4 Android Development] thracemerin:
No, I mean I wasn't going to add the PA colors until I was done with the hsic testing work, since sometimes completely unrelated issues have a way of creating bugs for one another. Right now, v6.1 is at a stage where I will probably publish it as stable_v1 within a week or so, once I do that I will probably put a PA colors version up as well.
[Nexus 4 Android Development] felixjai:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Since upgraded from v4 to v 6.1, I am getting high alarm_rtc wakelocks. What could be the cause? I am on AOKP TheByteSmasher Feb 25 nighty.
[Nexus 4 Android Development] thracemerin:
Look in BBS in the alarms screen, should show you what's causing that, alarm_rtc is a catchall for all of the things that show up in that screen.

You have to have Root Features enabled in BBS, which is in Settings->Advanced in BBS.
[Nexus 4 Android Development] peterperfect:
@thracemerin

Ive seen you have the intention to add gamma fixes. As a suggestion when you start extending your kernel features I would recommend adding ROW i/o sched.

There are some serious work being done on this sched by codeaurora and its receiving frequent updates to the alghoritm. This sched was developed with the mobile usecase in mind as described here: http://www.mail-archive.com/linux-mmc@vger.kernel.org/msg15566.html

Cheers!
[Nexus 4 Android Development] thracemerin:
I received this via PM earlier this week since the author can't post in this thread (below the 10 post limit), I'm wondering if anyone else has experienced anything similar to this on v6 or v6.1.

I can't personally reproduce it, but I'd like to know if anyone else can.

Yeah, I'd definitely add ROW when I move on to that project. I'm not doing it yet because I want to start with a base where this issue is sorted out before I begin building on it, assuming 6.1 goes to stable, I'll begin from there in a new thread sometime in the next couple of weeks.
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 sources!)

Looking forward for brighter and contrasty presets. I might have to learn how to compile your kernel using molesarecoming presets. Hehe

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
4.2.2 Stable v1 is now available in Post 2, it's the same as experimental v6.1. :D

For those of you trying to build it yourself it's from the jb-hsic-rel branch and tagged as release-v1.

I'd like to thank everyone who participated in testing this, I really appreciate your feedback and suggestions.

If you find any bugs with this version, please post them here or send me a PM so I can squash them and release a new version.

Thanks again and happy flashing :victory:

P.S: For those who are inevitably going to ask this question, yes this means that I will begin work on an enhanced stock version based on this kernel, keep an eye out for a new thread in the coming days.
[Nexus 4 Android Development] chrone:
much appreciated for your work here. job well done! :)

sorry if this too much to ask, but will the enhanced version support faux's grey gradient and gamma advanced control? been missing this feature on stock kernel, hence i switched to _motley just for the display calibration and init.d support. hehe

using faux's personal favourites preset, i found that one is the perfect balance in low ambient room brightness, mid, and high, while PA brighter/contrasty/halfbreed give too much blue radiance in certain ambient room brightness, especially with yellow warm white bulb:

oh yeah, one more thing, are your patches pushed to _motley git? would love to see your work there too, dude. :good:
[Nexus 4 Android Development] thracemerin:
I think _motley pulled my patches on exp-v4, ill talk to him about adding the new stuff.

Also, right after I release a stable I find out that codeaurora fixed the damn delayed WiFi notification issue (supposedly). So there will be a new experimental in a few mins with that patch, yay! :eek:
[Nexus 4 Android Development] thracemerin:
Ok, new experimental release aka v1.1

I added the patch from CAF to fix the ARP offload issue that was causing disconnects from Google services while on WiFi resulting in delayed notifications.

The patch was originally in the CAF prima repo, I picked it from franco.

I put this back as experimental, because while people in the franco thread are saying it fixed the issue, there hasn't been a long enough test to determine if it has a significant impact on battery life.

Happy flashing! :victory:
[Nexus 4 Android Development] chrone:
i don't know whether wifi patch is related with ui smoothness since latest baseband broke some wifi, touchscren and such on 4.2.1. but did a quick test for almost 45 minutes using the exp 6.2.v1.1 seems fixed my ui micro stuttering even after long idle. haha. this is with wifi enabled though. might do futher testing on 3g only due to micro stuttering still happens like a lot on google factory image reset 4.2.2. :/
[Nexus 4 Android Development] thracemerin:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 stable release!)

Coincidental, the patch should have no effect on that whatsoever, but if you've been using _motley's kernel lately MPdecision is slightly smoother than auto hotplug, so that might be it, of course MPdecision is harder on the battery.

Mainly I need to know if notification delay is fixed without any mods to routers or other phone files.
[Nexus 4 Android Development] thracemerin:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 stable release!)

I guess using tapatalk at 3am is not my forte.
[Nexus 4 Android Development] chrone:
yeah that might be the cause. :)

fortunately, 4.2.2 fixed my wifi issues. let's hear from others who are less fortunate.

my TP-Link WiFI router Beacon and DTIM interval are set to 100 and 1 respectively by default.

go get some sleep dude. :D
[Nexus 4 Android Development] sotong:
Ahh, perfect! I was travelling past weeks, now time to flash your 1.1. I face those Wifi delayed issues, so will definitely flash now and report back when i can. Cheers!
[Nexus 4 Android Development] DvTonder:
@thracemerin, can you submit the wifi fix to gerrit? I will speak to Ricardo to get it merged.
[Nexus 4 Android Development] thracemerin:
As soon as I figure out how to get it from CAF with the authorship and commit message intact, I'll get it on Gerrit.
[Nexus 4 Android Development] thracemerin:
Side note: after looking in the other threads and reading CAF when it's not 3am, in order for this to work properly the following needs to be done.

edit /system/etc/wifi/WCNSS_qcom_cfg.ini

change

McastBcastFilter=3 to McastBcastFilter=0

change

hostArpOffload=0 to hostArpOffload=1

the 3rd parameter being discussed

gEnableActiveModeOffload doesn't appear in the file and isn't handled by this patch, so it can be ignored for the moment.
[Nexus 4 Android Development] sotong:
Was just about to point this out too. I am still getting delayed notifications unfortunately running 1.1. Would try these .ini changes and hope it works. Thanks for all your efforts
[Nexus 4 Android Development] thracemerin:
The WiFi fix is incomplete or not completely compatible with everything else in our kernel, so I pulled v1.1 for now, I'd recommend going back to v1 if you flashed v1.1.
[Nexus 4 Android Development] xpresotw:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 stable release!)

How 'bout battry life ?
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 stable release!)

Better than stock. You'll get less 5-10% drain/hour depends on how much you use the 3g modem and hiw often do you touch your screen. The culprit are qualcomm mpdecision and 3g radio consume too much juice, but devs cannot do something out of them since they are closed source software.

Sent from my Nexus 4
[Nexus 4 Android Development] renna1992:
well, mpdecision is removed in a lot of kernels. just to mention a few here: older version of franco, trinity (morfics kernel), faux, ...
[Nexus 4 Android Development] thracemerin:
That has no relation to this kernel.
[Nexus 4 Android Development] renna1992:
yes, I know. Sorry so spam your thread. It was just mentioned in the post before and I thought I should clear that up for everybody.

Once again, sorry to spam your thread.

On-topic: I really appreciate the work you're doing thracemerin. Thank you for testing everyting with the new wifi-drivers and the hsic patches and that you're providing us with a kernel that "just works" :highfive:
[Nexus 4 Android Development] mrdr0idqed2020:
Apologies for the silly question, but is this is a patch or an altogether new kernel? I was a little confused with the name as to whether it was a patch applicable to any kernel or a kernel called anykernel? Thanks!
[Nexus 4 Android Development] EvoXOhio:
Its a full kernel that contains patches to fix wake locks
[Nexus 4 Android Development] floepie:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 stable release!)

Technically its not as it contains only the zImage to replace the existing zImage within your current kernel allowing the ramdisk to remain unaltered.

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 stable release!)

It is a different kernel, its 100% stock with the patches for the msm_hsic_host wake lock issue and also to enable loadable modules which Google decided to disable in 4.2.2. Anykernel refers to a format of recovery flashable kernels that keep the existing ramdisk and just inject a new kernel into the boot.img that is already present from the firmware on the phone. Unfortunately since kernels ship as precompiled binaries its not possible to make a patch you could add to other kernels without recompiling from source yourself.
[Nexus 4 Android Development] mrdr0idqed2020:
Re: [Kernel][GPL][anykernel] msm_hsic_host wakelock fix (4.2.2 stable release!)

I understand OP. Thanks much for clarifying. I am pretty happy with my current kernel and thought maybe I could have just patched the wake lock issue . In any event the issue seems to be calming down now. Android community is great. All the devs are so patient with jokers like me
[Nexus 4 Android Development] julioromano:
Installed 4.2.2v1 so far so good.

msm_hsic_host wakelocks occur less often (I'm not using wifi at all).

I need more time to judge battery life.

These are the pro and cons of open source development: the folks at Qualcomm actually continue improving their kernel and release fixes but these don't get quickly included by Google. I understand that Google can't release a new SW version every day, at least this makes me think all these patches will for sure be included in the next Google update.