yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] caaznkid:
Try changing the governor to something more aggressive
[Nexus 4 Android Development] BuffMcBigHuge:
I tried, but whatever I chose kept the phone at 384Mhz. I realized that I had hsic_fix_nexus4_wlan_v6.zip installed. I then flashed hsic_fix_nexus4_4.2.2v1.zip and the problem was gone.

Edit The problem came back, after using the device for a few minutes, the core speed dropped to 384Mhz and did not change until reboot. Any advice on this issue?
[Nexus 4 Android Development] phishie:
Can anyone confirm if this or another patch will fix the msm_hsic_host wakelock on 4.3? I'm stock right now but would like to root and unlock if there is an actual fix for this wakelock - my phone is on 3G all week long with no option for WiFi.
[Nexus 4 Android Development] thracemerin:
There is no patch for 4.3, what's in the kernel now is as good as it gets.
[Nexus 4 Android Development] phishie:
Excuse my language but that's totally f*cked. I can barely get less than 40% phone awake time and less than 1/4 of that is SoT. WTF!

Sounds like I have to put my phone in airplane mode when I'm not using it just to get through a day.
[Nexus 4 Android Development] Ok_Kaleidoscope5109:
It may be that KitKat is much better in battery life, but with the Nexus 5 there is no such wakelock. Thank goodness! With this wakelock gone, my battery drain in idle is spectactular. I could drop 4-5% in an hour with the n4 driving to work because of the tower handoffs, but I get to work with 1% drop on the N5 only!. It's been 7 hours since arriving at work and my batter is still 91%. Yes only 10 min of SOT, but that drain is FAR better than 4%/hour.

I seriously do wonder if the wakelock alone is what gave the N4 such bad battery life. I want to say it's probably the biggest culprit.
[Nexus 4 Android Development] thesebastian:
[MENTION=2249907]dmo580[/MENTION]

I totally agree with you. But, keep in mind it's different in each environment.

There are places that I had more than a 4% drain per hour...and places with much less battery drain.

In some places this issue is the main battery drain problem. In others it's just a lesser battery drain problem.

Inviato dal mio Galaxy Nexus
[Nexus 4 Android Development] thracemerin:
I'm not saying that the msm_hsic_host wakelock didn't contribute, but the general problem with the N4 is the 3G radio itself, it's horribly inefficient and uses considerably more power in areas where other devices don't because the signal is much worse on the N4.
[Nexus 4 Android Development] thesebastian:
[MENTION=4303511]thracemerin[/MENTION]

Yes that's true. Well i sold my Nexus 4 too early (to change for a Nexus 5) and now i'm with a Galaxy Nexus.

I'm having good battery life with this device in comparison to the Nexus 4 with respect to: "GSM Calls & 2G / 3G Data".

In "screen on time"..N4 it's better, but i can reach about 3.5-4 hours here with a Polarcell (normal size) battery.
[Nexus 4 Android Development] Imperticus:
exactly my experience, when compared to almost every other device
[Nexus 4 Android Development] meangreenie:
Hi thracemerin. Have you had a chance to mess with kk on nexus 4? I think the old troubles are back with WiFi notifications :(

:)
[Nexus 4 Android Development] BlueFlame4:
Sure? ARP Offload is enabled by default and there's a third flag about IPv6 NS Offloading (whatever that means).
[Nexus 4 Android Development] meangreenie:
I've tested a few times today with wattsapp and bbm, making sure first that my phone would enter sleep mode easily.

All 3 bbm's I tried failed waiting for 5 minutes

I tried wattsapp once and did get the message @4 minutes of being sent from another phone.

I have optimised wifi set to on and will try it more today.

Jfi. 4.3 worked fine for me once the two recommended settings had been altered to 1 in the configuration file.. I hope you know what I mean.

Edit, just tested again

Whatsapp, works but very delayed.. 2 to 3 minutes

Bbm, nothing, the permanent bbm icon in the status bar will have disappeared too when turning the screen back on.
[Nexus 4 Android Development] Jazavchar:
I'm sorry for replying to such an old thread, but I need your help guys. I started having problems with high Android OS usage, and when investigating more with BBS I found out that msm_hsic_host is keeping my phone awake for hours at time. My phone is awake 50% of the time, and the wakelock is there even when I'm not using 3G or when I'm on Wi-Fi. It appeared literally over night, as I haven't changed anything on my phone.

And here is the real kicker. I made a nandroid and factory reset my phone, and guess what, the wakelock is still there. Before this my phone used to sleep nicely, but now this thing is eating more than 50% of my batter, with the phone just sitting in my pocket.

What could have happened all of a sudden?

EDIT: I'm now currently on completely stock 4.4.2 flashed from factory images.
[Nexus 4 Android Development] zakk87:
I have the same situation here. 4.4.2, no data, no 3g.

Wysłane z mojego Nexus 4 przy użyciu Tapatalka
[Nexus 4 Android Development] -sandro-:
This problem afflicts the Galaxy S4 too. When I drive for 15 minutes with screen off but 3G data on I can easily lose 3-4% and when steady somewhere with great coverage nobody stops the phone fro dropping 3/4%/h. This happens with sync off as well. It's the radio part that just SUCKS.
[Nexus 4 Android Development] Codrea:
hi thracemerin I want to ask if your hsic fix save to flash in any kernel running 4.4.2 kitkat?

Stable Version: (anykernel)

Date: March 04, 2013

Download (any kernel): hsic_fix_nexus4_4.2.2v1.zip

MD5: 17127c1ce03ce0489c49ed7377204a6c

Source: https://github.com/thracemerin/Mako (branch: jb-hsic-rel tag: release-v1)

or do you include this hsic fix in your m_kernel? http://xdaforums.com/nexus-4/development/kernel-mplus-kernel-mako-t2534702
[Nexus 4 Android Development] Fr33L4nc3r:
Time to ping Ricardo ? :p
[Nexus 4 Android Development] thracemerin:
So it would seem, I'll see what I can do, no guarantees on timeline.
[Nexus 4 Android Development] jakejm79:
Keep us posted.
[Nexus 4 Android Development] roswell782:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

Hi, i've just flashed this kernel on my N4 i hope it will fix this stupid wakelock :)

Edit: worked perfectly, good job!

Thanks for your work.

Cheers, Ros.
[Nexus 4 Android Development] chrone:
any good news on the battery life when going 3G? :)

just flashed the bootstock.img hope this goes well on the battery drain. *finger crossed* :D
[Nexus 4 Android Development] roswell782:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

Yep when idle, battery life is better, this wakelock is no more the first when i check BBS.

+/- 15% of battery saved in my case.
[Nexus 4 Android Development] chrone:
awesome! will see the saves later tonight. :)

and as for the wakelock yeah it disappeared from BBS top list. i didn't notice the data drop connection either for one hour usage.

Update:

Wow thanks for this, really made the cpu went to deep sleep longer when idle in 3G. Saved 20% battery more. Used to loose 30% at night, bad 3G signal reception, just now only took 10% hit. :)
[Nexus 4 Android Development] EvoXOhio:
I'm running this kernel with cm 10.1. I played a non intensive game (Drop7) for about 15 minutes, and my phone was warm to the touch after. Battery drained 7% in that 15 minutes. OSMonitor reported the temperature was 104 degrees.

Anyone else experience this?
[Nexus 4 Android Development] thracemerin:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

Weird, because this is stock other than the fixes for the USB driver to reduce the msm_hsic_host wake lock, shouldn't affect anything CPU related.
[Nexus 4 Android Development] EvoXOhio:
Stock aosp or stock cm? I didn't run stock ROM very long. I ran stock cm kernel for a bit and it got a bit hot.

For what its worth I'm running the Matr1x kernel and it doesn't feel warm and when I check temperature its 10-20 degrees than your kernel. The battery drain with the screen on with his kernel is much slower too. He specifically mentions in his thread that he added stuff for heat management so maybe that's why.

I only mention this not to complain or put you down but just as feedback. Your kernel did successfully fix the wake lock but so does the matr1x one.
[Nexus 4 Android Development] thracemerin:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

The CM kernel and the stock AOSP kernel are essentially the same, the only difference is that CM uses a more up to date prima WiFi driver. I'm not very familiar with Matr1x but if he is using hot plug instead of mpdecision that could contribute to the difference.
[Nexus 4 Android Development] io53:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

This worked great. Thank you!
[Nexus 4 Android Development] Skkip:
@thracemerin:

any plans on releasing an update with new google changes ? :)

Thx in advance
[Nexus 4 Android Development] thracemerin:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

I can add them but it won't be before Tuesday as I'm away from my build machines at the moment. New builds will appear as soon as I can.
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

Looking forward for this. :)

Care to add date to first post's subject in order to track update easier from tapatalk favorites list?

Sent from my Nexus 4
[Nexus 4 Android Development] Mr Djoegoe:
Here some screenpics.
[Nexus 4 Android Development] thracemerin:
New build is in progress, it will be in the second post as soon as it's available. :good:

Edit: it's up, I only included the any kernel version which should be safe to flash on any previous kernel, if it doesn't work use fasboot to flash the boot.img or stockboot.img versions first.
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

Much appreciated. :)

Will there any new bootstock in the future? Or it's only anykernel?

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
Only need the fastboot images to ensure you have the proper ramdisk, since there aren't any changes in the ramdisk from the previous version the any kernel version is sufficient. I left the previous img files in case someone tries to flash over a kernel with a modified ramdisk (ie franco) so they can flash that first to avoid a boot loop.
[Nexus 4 Android Development] chrone:
just flashed it flawlessly. thanks dude! :)

quick review:

1 hours 35 minutes idle, 0% battery drain, cpu goes deep sleep all the time. btw, i also enabled "disable hardware overlays" and "force gpu rendering" from developer options. awesome!
[Nexus 4 Android Development] ran495:
hi im just wondering if anyone noticed that pm8921_eoc event also draining battery as much as the msm_hsic host wakelock issue. Anybody know what it is or what it does? Thanks.
[Nexus 4 Android Development] chrone:
i don't have it on bbs after upgrading to the newest patch 20120205 kernel today. will update later after a day usage.
[Nexus 4 Android Development] mikeyinid:
running this kernel with an aokp build from yesterday. losing 10% an hour with little use.
[Nexus 4 Android Development] thracemerin:
This is almost definitely an app keeping the system awake in the background, without information like screenshots from better battery stats, I can't really confirm whether or not it's a problem with the kernel or something else.
[Nexus 4 Android Development] thracemerin:
pm8921_eoc seems to be the wake lock that is held while the phone is charging with the power on, according to my research this is normal and should roughly equal the total time your phone was on the charger, it shouldn't actually be causing drain since your phone is plugged in.
[Nexus 4 Android Development] chrone:
newest patches seems to reduce in usage drain up to 3.2%/hr saving. used to 10%/hr battery drain when used with 3g mode, now it only takes 6.8%/hr battery drain. statistic based on BBS. while in idle, it only consumes 0.8%/hr compared to 0.7% on galaxy nexus maguro.

much appreciated for your work here, thracemerin! :)
[Nexus 4 Android Development] mikeyinid:
i think i figured it. Seems maps is running all the time
[Nexus 4 Android Development] JassyNL:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

I've also flashed this kernel since I hate this kernel wakelock which is a great problem for me since I'm on 3g only. Let's see if this kernel solves my problems with mainly the battery life. Thanks so far.
[Nexus 4 Android Development] akira.pwr:
The device became hot during use, isn't there a solution?
[Nexus 4 Android Development] :
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

This is the stock kernel. The only way is to find another kernel. This is simply the stock kernel with patches.

Many thanks for this, it completely fixed the issue! Much appreciated :)
[Nexus 4 Android Development] akira.pwr:
R: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

I've tried Franco Kernel too, but nothing changed, I've tried this one because of patches, I though could solve the warming issue too, anyway, no probs, it works fine and have decent battery life.

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Android Development] dcdttu:
Was getting >5%/hr drain while mostly at idle at work, which usually consisted of about 20-30 minutes of screen use per 5 hours+. The phone was running at 384mhz (wake-locked) for about as long as it was in Deep Sleep. I'd be at 50% after less than 8 hours of barely any use at work while on 3G, but could go forever with my phone at home while on wifi. I'd be on wifi at work, but the driver bug that others are having where you can't get on certain wifi networks is affecting me at work. It's like a one-two punch!

Testing today to see of new patches fix that.

This phone should barely suck any juice while on idle, < 2%/hr really.

Will post results in this thread as an edit at the end of the day.

EDIT: I just had a data drop while the phone was on idle. Also, the battery drain is about the same as before (6% or higher / hr) so I really didn't get any benefits. Reverted back to stock kernel. I will say that, for the first time ever, HSIC wasn't the #1 wakelock on BBS, it was #2. Still high, but less.
[Nexus 4 Android Development] chrone:
my nexus sometimes also gets hot when browsing xda's thread with long posting via tapatalk, or in very bad 3G signal and keep pushing to browse or so. i found the culprit as listed on bbs cpu state status that the cpu is being kept at more less 1GHz when in use browsing long posting on xda. perhaps there's misbehave app on your device which make the cpu stay at high clock too.

as for the battery save when idle on 3G mode using this new patched kernel really saves battery life. :)
[Nexus 4 Android Development] akira.pwr:
R: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

How can I find that "bad app"? I'm not an expert in these things.

Thanks in advance.

Inviato dal mio Nexus 4 con Tapatalk 2
[Nexus 4 Android Development] chrone:
by using betterbatterystats from google play or here's the original thread: http://xdaforums.com/showthread.php?t=1179809
[Nexus 4 Android Development] robstunner:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

Just to confirm:

This is with your kernel flashed correct?
[Nexus 4 Android Development] giajp:
R: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

Great work! Can u add the contrasty paranoid colours patch?

Sente from my Google Nexus 4 using CyanogenMod 10.1
[Nexus 4 Android Development] OverrRyde:
I glanced quickly at this post but i can't find the answer.

does this work using CM10.1 and if it does, do i lose any features from the CM10 kernel or eveything will remain the same?

Thanks!
[Nexus 4 Android Development] thracemerin:
Before I made the changes to fix the wake lock, it was the CM kernel. Just flash the v2 zip over CM, it will work just fine.
[Nexus 4 Android Development] thracemerin:
I built this kernel to be stock with the fix for the wake lock, I wasn't planning to make any further changes. There are a couple of custom kernels linked in the 1st post that allow for color customization or you can convince Moles to incorporate the wake lock fixes to his kernel.
[Nexus 4 Android Development] thracemerin:
I changed my mind, I'm building a version with Moles' halfbreed v4 settings (PA default), I'll post it as soon as it's done.

Edit: See Post #2
[Nexus 4 Android Development] Fr33L4nc3r:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix

Feels significantly darker / dimmed at first look.

Will see if I can live with it after a bit more time ;)

Sent from my Nexus 4
[Nexus 4 Android Development] thracemerin:
Yeah, I didn't like it at first, but it does look better once you get used to it. As part of the Google contrast changes they made the brightness levels darker which makes it look darker than it should, unfortunately you have to change this at the ROM level and not at the kernel level.
[Nexus 4 Android Development] kennynguyen20:
Sorry if someone ask this question already but i am currently on Franco's kernel, do i need to flash stock kernel before i flash your kernel?

thanks in advance :)
[Nexus 4 Android Development] thracemerin:
It's probably not 100% necessary, but if you do it will prevent any chance of you boot looping.
[Nexus 4 Android Development] kennynguyen20:
Instantly reply, thank you very much :) will try it now. getting a bit annoying with the wakelock.

edit: btw, the color looks freaking awesome! very solid
[Nexus 4 Android Development] DvTonder:
I must say that I cannot get used to the, what appears to be quite dull, colors of the tweaked version. Trying the normal one now. Lets see what this wakelock thing is all about...
[Nexus 4 Android Development] rskyline:
You definetely are the man... :good:
[Nexus 4 Android Development] thracemerin:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix (PA gamma version availa

Not everyone is ever going to agree on the colors which is why I wasn't going to bother initially, but it was only a few minutes on my build box so I figured why the hell not. All the threads discussing this stuff are about 50/50.
[Nexus 4 Android Development] DvTonder:
One of the things one learns very quickly on XDA (and ROM and Kernel modding specifically) is that you can NEVER satisfy everyone, no matter how hard you try :)

Its great to see other contributors in this community. Keep up the good work.
[Nexus 4 Android Development] WarpedMonkeys:
I'm trying out the kernel for those nasty wake locks. Thank you for doing the version with the PA colors, now I know that I hate it :p, back to normal colors
[Nexus 4 Android Development] thracemerin:
Seems just about everyone has a strong feeling about the colors, they either hate the halfbreed presets or love them. There is definitely still work that can/should be done in terms of calibration to make full use of the IPS display, but like I said before pleasing everyone is nearly impossible which is why I didn't eliminate the stock color version when I put up the new one.
[Nexus 4 Android Development] atw1927:
Currently on PA 3.0 with Faux123, anything in particular I need to to use this? Just boot in ROM manager, wipe the cache and install this?

Ta.
[Nexus 4 Android Development] rskyline:
If you want stock with kernel wakelocks fixes and no extra configuration, this kernel is for you.
[Nexus 4 Android Development] atw1927:
So I have to flash back to stock and then use it? I desperately want these wakelock things fixed.

---------- Post added at 03:54 PM ---------- Previous post was at 03:51 PM ----------

Also will this fix the suspend_backoff thing?
[Nexus 4 Android Development] chrone:
am sorry if this out of topic, but the halfbreed calibration won't hurt the display right?

coming from 3 bad screen replacement experience on galaxy nexus samoled display, i enjoy the ips lcd on this n4 very much. :)
[Nexus 4 Android Development] thracemerin:
I would flash a stock kernel just to be sure that you won't bootloop.

I don't have issues with a suspend_backoff wakelock, but there is nothing specific in this kernel that would change that behavior.

See here regarding suspend_backoff: https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/suspend_backoff

I have been running a variation of halfbreed for a week and my display shows no adverse effects, it's well within the safety margins for this display.

Edit: moles put the warnings in his thread so that people wouldn't download the kernel source and tinker with the values without really knowing what they're doing.
[Nexus 4 Android Development] floepie:
I've read that the ramdisk of the stock and the CM stock kernels differ from one another. It seems, however, that this CM kernel base can be used with the stock ROM. I guess this question is for anyone with a basic kernel knowledge that could tell me/us how it can be that the kernels can be interchangeable if they differ in their ramdisk. I always thought that the ramdisk needs to be written or compiled for a specific ROM, or at least one is very preferable to the other.

If people are swapping ramdisks around, such as using this one for non-CM10 ROM, then isn't one asking for trouble in some unforeseen way, even if it seemingly boots without a problem?
[Nexus 4 Android Development] thracemerin:
You're right, the ramdisk generally needs to be compiled for a specific ROM, though on the N4 most use the AOSP (aka stock) ramdisk with no changes so they are compatible with all ROMs using the same ramdisk, CM uses the CM ramdisk which contains slightly different information as as a result the stock ramdisk will bootloop CM and the CM ramdisk will bootloop AOSP/stock based ROMs. The anykernel system makes this not a big deal because what it does is it takes the zImage (the kernel itself) and inserts it into your current boot.img so you maintain your current ramdisk, this means that it doesn't matter what modifications your ROM has made to the ramdisk you will continue to have them, this should prevent a bootloop unless you have kernel specific mods to your ramdisk like the franco kernel does, then you would need to flash stock first.
[Nexus 4 Android Development] chrone:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix (PA gamma version availa

Thanks dude, that's a relief to know. :)

Just flashed the kernel and the colors are too vibrant imho, pretty much the same as with galaxy nexus samoled display at mid and high brightness. Will use this for couple of days to get used to. Hehe :thumbup:

Great work!

Sent from my Nexus 4
[Nexus 4 Android Development] giajp:
R: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix (PA gamma version availab

thank u for the gift mate. have u added the contrasty or brighter version?

Sente from my Google Nexus 4 using CyanogenMod 10.1
[Nexus 4 Android Development] thracemerin:
I'm not saying absolutely no, but I also don't want to build a whole ton of different variations so I picked one, if/when I have time I might build more. It gets to be a slippery slope where I build one and then everyone wants their favorite settings and I have to build dozens of them.
[Nexus 4 Android Development] OverrRyde:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix (PA gamma version availa

I will be trying this out for the next 24 hour.

I have setup a baseline using cm10.1 and attached pictures of usage after 12 hours. Can someone tell me if it normal or if I will benefit? Either way will try it out!
[Nexus 4 Android Development] thracemerin:
You should see some benefit, how much depends a lot on many factors like how much time you're on wifi, your 3g signal strength, how many apps sync in the background, etc... there is pretty much no chance your battery life will be worse though.
[Nexus 4 Android Development] OverrRyde:
Re: [Kernel][GPL][anykernel][WIP] msm_hsic_host wakelock fix (PA gamma version availa

Cool! Based on my pics, does it seem problematic? I don't know what bad wakelock looks like of affect your battery!
[Nexus 4 Android Development] WarpedMonkeys:
On the second picture, the "msm_hsic_host" will likely not be in the top wakelocks as it is now. This is all this kernel is about anyway.