yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] Godaemon:
I changed The Mbcast from 3 to 0 and the Hostarpoffload from 0 to 1. Its Franco 97 and Codefirex...but I think that it depends on router after all...its not a definitive solution Qualcomm is changing its git everyday ...

Via NeXuS 4 / xda-developers app
[Nexus 4 General] muyoso:
Actually what I did was restore Sip droid and turn off CsipSimple. Been testing it all day. Sip droid apparently doesn't have a single issue some how. No clue what voodoo its using, but calls come through every time no matter how long the phone has been sitting. If only its ui and performance wasn't so awful I'd be set.
[Nexus 4 General] bganley:
Try comparing the SIP registration and keepalive timers between the two apps. Might be as simple as sipdroid using a shorter interval. Shorter timers mean things are more likely to work at the expense of battery. Longer intervals can cause issues with TCP/UDP session timeouts on your router and in the case of the N4, can also cause this ARP issue to appear.
[Nexus 4 General] muyoso:
That was my thought as well, but sip droid doesn't offer this value to be tweaked and I kinda gave up from there because I spent an hour yesterday trying to get it working. Just looked it up and someone reported that the keep alive for TCP in sip droid is 60 seconds. If true then that solves why sip droid works and cSipSimple didn't.
[Nexus 4 General] Blockberd:
I am having the same issue with my new Nexus 4 on Android 4.2.2.

I dont want to root the phone or anything like this. Is there a way to fix this issue without root (yes, I read the thread but just about the half of it)?

I also discovered that if I keep spamming ping to my phone while screen is on the WiFi connection wont drop after screen goes off. This could be a possible but annoying walkaround of this issue...
[Nexus 4 General] Salty Wagyu:
The ini file change didn't do much for me. While the phone now responds to pings when the screen is off, notifications are still delayed, and even more concerning is Cerberus Anti-theft can't connect to my phone at all.
[Nexus 4 General] Blockberd:
The delay issue is different from teh WiFi dropping. Someone posted a link to an app on one of the first pages to an app. Its called something like Notification Delay Fixer. This will fix the delayed notifications.

The problem in this thread is that the notification do not come in at all because of WiFi dropping after screen goes off.
[Nexus 4 General] OrrPenn18:
The thread issue also concerns with notifications getting delayed OR not appearing at all. So, his doubt seems valid.
[Nexus 4 General] carlosmg2:
Is this the app you mention?

http://xdaforums.com/showthread.php?t=2142503
[Nexus 4 General] OrrPenn18:
Yes, this apps seems to fix the delayed notifications for some.
[Nexus 4 General] Blockberd:
Ok. Thats right. But still its "kind of" different. The app I mentioned is called "Push Notification Fixer" (PNF). You can find it in the Play Store.

Yes, it is.
[Nexus 4 General] bigmase521:
Thanks for suggesting Push Notification Fixer! I set the timeout to v5 minutes and it seems to have helped me a lot. Every once in awhile I'll still get stuck with grey bars and no notifications until I turn the screen on, but it's definitely happening less now. And that's decent enough for me since I use Google voice and all of my text messages were getting delayed with the screen off.
[Nexus 4 General] meangreenie:
I don't get why this thread isn't the number 1 problem thread on these forums.

This affects so many apps and functions on a smart phone. Should be front page on every phone tech internet site too, let alone missed by all the reviews too.

A phone that doesn't get notifications with the screen off should be the laughing stock of the smart phone world; but some how, strangely, this massive omission in functionality is all but ignored. No wonder iphone owners laugh at us.
[Nexus 4 General] Puzzlegirl:
An astonishing number of people don't seem aware of the problem and blame the ROM or the kernel...
[Nexus 4 General] polipetto:
I totally agree with you!!! I really don't know why people don't care about this issue that make the phone unusable!!!!
[Nexus 4 General] thesebastian:
Many people use this phone just as a tablet or laptop. That's why a lot of people don't cry all the day about this.
[Nexus 4 General] bigmase521:
I'm 1000% with you on this. I got so fed up that I sent tips to literally every tech blog before the 4.2.2 update, and none of them would post about it because they thought it wasn't a big deal and would be fixed in 4.2.2. Well we know that it's not...maybe we should all hit the tech blogs again and get them to put some damn pressure on Google/Qualcomm to fix it!
[Nexus 4 General] Nainconpetant:
okay am not rooted, got my N4 for 2 weeks now and still have the same problem.

as i come back home, the phone is not connecting to my rooter, i got to press the rooter configuration key again and again until my N4 see and connect to my rooter.

am using a d-link dir-615, i tried to read the OP but there is some abbreviation that i cant understand so am not sure about what to do.

is there any solution for me ?

thanks
[Nexus 4 General] bigmase521:
Wifi/data connections are what's affected here..so really they should be complaining MORE.
[Nexus 4 General] Nainconpetant:
Thats exactly the problem i get, only when am at home, my rooter is a d-link dir615 n300.

Does anyone know how to fix that loose wifi connection problem?
[Nexus 4 General] Godaemon:
Hahaha +1 I was laughing when I saw my friends LG L5 receiving viber notification instantly... No 1 problem surely its a Joke for a High end phone of the last 4 months...

Via NeXuS 4 / xda-developers app
[Nexus 4 General] darcmage:
I've been struggling with this problem since I got my N4 last month. The only thing that seems to work for me is to implement both fixes from the OP. I'm also using Franco's kernel but I'm not sure which fix he used so this all might be overkill but the problem is solved for me now. It's not ideal but I no longer have to worry about missing voip calls and text messages.
[Nexus 4 General] polipetto:
what release of franco's kernel are you using?
[Nexus 4 General] Godaemon:
Franco implemented the supposed fix from codeaurora in r97 but also stated that we should change the MBcast filter to 3 and The hostarpoffload to 1 which I both changed.The problem was there for viber but not for WhstsApp.

it fixed the issue for me in some WLAN connections and Drained a lot of battery so I believe there's not a permanent solution yet.Francos r102 has not the patch so you should try r97.

Via NeXuS 4 / xda-developers app
[Nexus 4 General] darcmage:
I'm on r102 now. Just to be clear, I flashed the mcast and bcast zip and made the ARP changes on my router. There hasn't been a noticeable drop in battery life.
[Nexus 4 General] wing_addict_usa:
egg on your face Google.
[Nexus 4 General] bigmase521:
Anyone else write to the tech blogs about this yet?
[Nexus 4 General] Blockberd:
Hey guys,

just to let you know... the app Advanded WiFi Lock (https://play.google.com/store/apps/details?id=opotech.advancedwifilockfree) seems to solve my problem without keeping to ping the phone constantly and without having root or to patch anything. Will report back later after work!

Qick info: While the phone is not pingable, the notifications come in now anyway during screen off. Lets see...
[Nexus 4 General] viktorlj:
For me changing value "McastBcastFilter=1" works perfectly. I used es explorer to change value and set permissions after change. Everything is perfect. I use stock rooted 4.2.2.
[Nexus 4 General] wb86:
I have the same problem. My Nexus disconnect from the Google server. I change the value from 3 to 0, but the problem is still there.

I contact the Google support: they will send me a new one. We will see...

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 General] mobilehavoc:
Interesting, for me it fixed the issue of delays and disconnects but there's still a little lag. My Nexus 4 still takes anywhere from 5 seconds to 60 seconds to notify me of something compared to Nexus 7. It never takes longer than that though and I haven't seen gray signal bars since I changed the config.

Wanted to add that without changing anything my Nexus 4 worked perfectly on a dd-wrt router so there's something that dd-wrt does which doesn't require this change. However on my Cisco e4200 running stock fw I needed to make this change.
[Nexus 4 General] floepie:
Yes, I have done that. But, still no luck. It's ping-able, so wifi connection is active while screen is off.

Incidentally, while not directly related, does anyone know what the settings "wifi optimization" does in the advanced wifi settings? Could this be related somehow?
[Nexus 4 General] defnz:
I've submitted a bug request specifically for this issue: https://code.google.com/p/android/issues/detail?id=42272

I noticed that this thread is linked to https://code.google.com/p/android/issues/detail?id=40065 however its full of idiots spamming

Hopefully with better information Google can at least consider my bug report

What ROM are you running, are you running anything like juice defender or any other battery saving programs? I'd suggest resetting to stock, rooting, modifying the ini and trying again. With an active network connection there should be no reason why your Nexus 4 is delayed. Do you see the same delay when you disable wifi and running on mobile data?

Apparently wifi optimisation changes the DTIM client interval amongst other things, there's not much information on what it does really http://www.anandtech.com/show/6440/google-nexus-4-review/4
[Nexus 4 General] floepie:
Running stock rooted. No battery saving programs. Long delays over wifi, much shorter delays over data network (usually within the minute). OK, thanks for the help so far. Hopefully we get this resolved, but this fix has NOT worked for my device. Has anyone been able to confirm if this is a router-specific problem in that the device is just way too sensitive to router protocols and/or various wireless variables?
[Nexus 4 General] defnz:
Someone earlier in the thread running DD-WRT doesn't have issues

The other option is to flash back stock on your router or try a different one
[Nexus 4 General] MonztA2:
It looks like it fixed the issue for me. Thank you! It was driving me nuts.
[Nexus 4 General] floepie:
For those who have it working, could you try something for me? Make sure your wifi icon is blue and turn the screen off. Wait for about 5 minutes. Then, turn on the screen, and stare at the wifi icon. Does it turn gray after about 5 seconds and return to blue a few seconds thereafter? This is what mine does. While the screen is off, wifi is active and connected to the router, as shown by the router. But, when you turn on the screen, the device realizes that there is no working internet connection (icons turn gray) and works to restore it shortly after being unlocked. This clearly must be a bug of some sort.
[Nexus 4 General] MonztA2:
Stays blue for me since flahsing the fix. Do you have that "wifi optimization" enabled?
[Nexus 4 General] wb86:
@floepi

same here

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 General] mobilehavoc:
This is what happens to me BEFORE applying the fix in this thread. You're having the arp issue we're talking about.
[Nexus 4 General] sky44:
I might say something stupid, but in the file WCNSS_qcom_cfg.ini, there is the parameter gStaKeepAlivePeriod that have spaces around the "=" sign.

This is the only one in this case, and this parameter is use to keep the connection.

That parameter may be to "0" because of these extra spaces?
[Nexus 4 General] gnan10:
How can i connect to adhoc networks on my nexus 4..??

Please suggest me any app or mod....

Will someone please kindly respond me
[Nexus 4 General] bstosnbata:
Is there a way for not rooted ones?

The issues i have is different, here are some that i noticed:

1. When im connected to wifi it cuts to grey then to blue then grey then blue that kinda loop. Like at work im using my nexus 7 and its connected to the same wifi and it doesnt have any problems. I dont think i have the same issue when the phone is sleeping, it doesn't cut it off.

2. Wifi on and bluetooth on at the same time!

It even gets worse when both are on, at work we have an audio bluetooth device so we dont have to plug up to play music, most of the times i play music from YouTube. Same thing as number 1 it goes grey then blue for both Wi-Fi and Bluetooth. To fix it i go to settings turn both Wi-Fi and Bluetooth off then turn it back on, after a while the problems happen again.

3. When I'm doing the fix for number 2, sometimes the settings app crashes, yeah the stock settings app!

It's getting really frustrating now, i absolutely love the phone but i think the biggest downside is the connectivity issues. A part of me is hoping that it's just a 4.2 bug.

Help guys :(
[Nexus 4 General] Rivermind:
You should be able to just flash those .zips from recovery. No root needed.
[Nexus 4 General] bstosnbata:
Im an android newbie. I couldnt understand a thing from the steps above :(
[Nexus 4 General] danielvc:
It looks like the zip fixed my Wifi. No more disconnects, but it takes a bit more battery.
[Nexus 4 General] Rivermind:
Since you're only modifying some files and don't need to run a program with root privileges, you don't need to be "rooted" for this change. Recovery is a special partition you can boot into and will let you make this change. You will need an unlocked bootloader if you haven't already put on a custom recovery (the stock recovery does not support this feature). See this thread for instructions on how to unlock your bootloader and put on a custom recovery, as well as optionally rooting (it's really easy, just flashing another zip from recovery). But do note that if your bootloader is not already unlocked, unlocking it will wipe everything.

Hopefully that helps!
[Nexus 4 General] Lucena04:
I bought another router (multilaser) and solved my problems with wifi.

Enviado de meu Nexus 4 usando o Tapatalk 2
[Nexus 4 General] zdenoh1975:
Hi, one question please - when I flash a new ROM, I lost this sleepfix and must apply and flash again, or it stay allways till i flash restorefix ? Thanks!
[Nexus 4 General] bigmase521:
Any heavy battery drain?
[Nexus 4 General] viktorlj:
No, there is no battery drain for me. I use my phone as usual and battery time is the same.
[Nexus 4 General] darcmage:
Here's a screen shot of my battery graph last night. It should lay to rest any concerns about battery drain.
[Nexus 4 General] Blockberd:
Ok guys. Good news. This app seems to fix my problem with the complete connection drop after screen goes off. For me it has no big affect on the battery. Although I cannot tell much about the overall battery performance of the Nexus 4 (just owning it one week now) but it seems to be pretty solid.

Maybe someone else could confirm the same?
[Nexus 4 General] meangreenie:
Check the motley kernel thread, kszaq posted a new kernel and drivers

click here
[Nexus 4 General] thesebastian:
Thanks. I can anticipate that this is the first (but beta) real fix for this issue!
[Nexus 4 General] thesebastian:
This fixed my WiFi issue!

Also fixed BT headset calls with strange sounds. (When connected to WiFi hot spot). I can make BT calls from my home now.
[Nexus 4 General] meangreenie:
Every body is reporting it working so far, this is looking good.
[Nexus 4 General] harlock:
+1 This also solved all my issues:

Feel free to try and thank the guy who did the port:

http://xdaforums.com/showpost.php?p=39244058&postcount=2648
[Nexus 4 General] praveenmarkandu:
I find changing the mcastbcastfilter alleviates the issue, but not completely. There are times i still wake my phone only to receive a lot of messages at once.
[Nexus 4 General] JoshinPl:
Yes, it solve all my problems with wifi.

Great!

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 General] plus26:
Hi everyone, first post here. I'm the proud new owner of a Nexus 4. I'm stock, unrooted and seem to randomly suffer from the wifi delayed notifications thing (as I assume all Nexus owners do unless they tinker with their devices?).

I'm a little apprehensive about tinkering with the device just at the moment as it is rather new (had it for about 5 days). My question is - and I am not sure anyone will exactly know the answer to this, but I'll ask it anyway - is Qualcomm aware that there is a wifi bug, and is it likely that they will push out a fix for this soonish? And if this is the case, will it be likely in the next OS update from Android (be that 4.2.3 or 4.3 or 5.0)?

Many thanks,

plus26 :angel:
[Nexus 4 General] thracemerin:
Qualcomm is aware of the problem, they are the ones pushing the updates to Codeaurora that people here are using for the fix. The fix will probably appear officially in the next official release from Google, unfortunately that probably won't be until the next OS version which will be announced at I/O and that could be quite a while.
[Nexus 4 General] bigmase521:
It infuriates me that Google can continue selling a known flawed device with barely a word of acknowledgement, and certainly no apology, and that no one outside of the Google bug report system and XDA are talking about this.

The only acknowledgment Google has given is that the N4 has a known buggy Qualcomm Wi-Fi driver..how are they allowed to still sell a known flawed product while Qualcomm takes their good old time fixing it, and get away with it?! No other manufacturer would, why should Google?
[Nexus 4 General] undercover:
Because there is not enough hype about it. I'm starting to see Android for what its really is. Half baked os that you have to rely on xda to fix. Still, for me its better than alternatives. Value for money for N4 is miles better than anything else, even with all the flaws. I'm hoping Nexus line becomes a BIG thing and they are forced to spend more time and resources refining products. Whatever anyone says about apple, they would never allow such a thing, that's why people come back to them again and again. They've tried to cover up once, it didn't work, and they LEARNED their lesson. I wish Google was forced to do the same with negative coverage. However, they can afford to just drop Nexus line and rely purely on OEMS delivering Google services no problem. Unless they switch. Think of Samsung and Tizen. That's a very real threat to Google. Samsung have an alternative for every Google service bar one or two, and more. Once people get used to Samsungs implementation, they won't even notice that underlying OS has been switched. Bye bye ad revenue from millions of Samsung devices.
[Nexus 4 General] wing_addict_usa:
Even with the fix, I find wifi very slow and latent
[Nexus 4 General] m_gl:
This kernel fixed it me for me 100%

http://xdaforums.com/showthread.php?t=2102986

The patched motley didn´t work for me.
[Nexus 4 General] JoshinPl:
Matr1x added this fix to his kernel,

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 General] thracemerin:
Unless he didn't push it to his github, mathkid only added the fix that Franco confirmed was incomplete and didn't solve the issue.
[Nexus 4 General] JoshinPl:
Ah ok, my bad xd

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 General] elandune:
so this works?

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 General] Blockberd:
At least for me it is working. The WiFi is not dropping anymore completely. I can keep my phone screen off and still receive notifications in time (or better... at all). You can try it out and let us know. Would be great to hear. This would be a solution for all non rooted devices.
[Nexus 4 General] elandune:
I came back to 4.2.1 because of this problems (and Im recieving notifications as it should), so I cant check the app

I want to see if that app really works, because I have jumped already 2 times to 4.2.2 and needed to came back to 4.2.1:rolleyes:
[Nexus 4 General] Blockberd:
I can only tell from my own experience and I am happy to have that app. Before I installed it I had to keep pinging my device or to wake it up from time to time. Otherwise the notifications never came or came instantly after waking up the phone...
[Nexus 4 General] OrrPenn18:
Instead of using the app, i recommend using the kernels posted by theracemin or motley. They seem to have good success rate. :)

Finally, a working solution instead of workarounds.
[Nexus 4 General] Blockberd:
I am talking about a solution for non rooted devices.... not all ppl want to root their phone.
[Nexus 4 General] darkamikaze:
It's not a 100%. I have issues with it. On stock kernel I don't get WiFi dropping on me when waking the device from deep sleep.

Pinging the device doesn't always guarantee a return.
[Nexus 4 General] OrrPenn18:
The kernel fix deals with the wifi dropping and reconnecting again and hence, you get the inflow of delayed notifications which is also the main issue discussed in the OP.

Though app or kernel, the issue gets fixed. But, still an official fix from Google will be the best.
[Nexus 4 General] darkamikaze:
I know the kernel fix deals with that issue. I'm saying it introduces a new set of issues for me along with not completely fixing the wifi drop when the phone is in sleep.
[Nexus 4 General] OrrPenn18:
Yep, some people in theracemin's thread reported such side issues coming up. :/

And some people had some other wlan bugs fixed. lawl!
[Nexus 4 General] thracemerin:
Yup, very strange.....

Starting to think some of the remaining issues are an external issue with router and other network settings.
[Nexus 4 General] thesebastian:
Btw....prima drivers are still in development.

v3.2.3.85 = 2 days ago.
[Nexus 4 General] thracemerin:
Yeah, but the master branch tends to be on the very bleeding edge and may introduce more issues than it solves, v3.2.2.2 is from the jb-release branch so its a safer bet in terms of overall stability even if it still has a few issues here and there on the N4.
[Nexus 4 General] Blockberd:
Has anybody an idea when Google might push the fix from Qualcomm into an update and to all devices?

Additionally, could anybody test Advanced Wifi Lock and see if its also working for them?
[Nexus 4 General] thracemerin:
Probably with Key Lime Pie, I'd be surprised if there is another 4.2.x update from Google.
[Nexus 4 General] Blockberd:
Possible... Any idea when we could expect to receive KLP? I read something like 15th to 17th of May... but that seems just to be the Google IO dates. :(
[Nexus 4 General] thesebastian:
It's totally ridiculous how Google send updates. Some Nexus devices got on February 2013 kernels compiled on November 2012 (between 4.2.1 and 4.2.2)
[Nexus 4 General] thracemerin:
After I/O, no specific date has been mentioned other than in rumors.

They build the update, then do internal testing before releasing it, so it's not too unusual for it to be a couple of months between the update being ready for internal testing and it being pushed as a release, if there aren't problems between the internal testing and the release there is no need to recompile the kernel.
[Nexus 4 General] Blockberd:
Oh my... So it looks like I have to stick with AWL for a while now and live with the (just a bit but still) higher battery drain.

I like to beta test... not. One reason I choose the N4 was that I dont have to fiddle around with custom ROMs to be up-to-date. Now I am up-to-date but still I have a beta version of a phone/software.

I refuse to root (now) only because of this...
[Nexus 4 General] thesebastian:
Yeah but they should do all those tests but release device-related updates at the same time. This is a high priority update.

Because communication is more important/critical than any other thing in the phone. And internet calls are replacing 2G calls.

First they should fix this...

Then.... try the 5.0 version

Anyway...I think Qualcomm will finish this just in time for 5.0......
[Nexus 4 General] Pinguin1337:
AW: Wifi network connectivity issues and a possible fix

Advanced Wifi Lock works for me.