yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] iammudd:
Don't ask me. You need to ask a kernel dev :) I would offer a screen cap but I couldn't get one on PA if I tried. (Someone said Vol Dn + Power but it doesn't work for me.)

Latest 2 IDLE test (no bcast/static arp and 3G) were using mako-jb-kernel-004m and pa_mako-2.99-11JAN2013-000145...(Pls keep in mind that these are IDLE, DEEP SLEEP tests. I disconnect USB and then immediately put the phone on standby. The N4 is a battery hog with screen on.)

Faux and Franco kernels have been able to quell msm_hsic. With broadcast enabled, Faux had ~15 mins of msm_hsic over 6 hours.With bcast disabled, they were less 1 or 3 mins (<1%). I have Eco Mode (limit to 2 cores) on and SnakeCharmer (CPU limiter) on.

I also have frozen the following:

gPlayBooks, gPlayMagazines, gPlayMovies, MovieStudio, News&Weather, Sound Search for gPlay, Talk, Wallet.

and all location reporting, etc. off. Also no battery hogs: facebook/twitter (others suggest using the browser in lieu of apps) skype/gNow

(Since the N4 doesn't have an easily-replaceable battery, I'm experimenting on how to extend a single charge -- with low usage for travel, camping purposes.)
[Nexus 4 General] biffsmash:
I can't get the gmail client to push mail to my phone in a reasonable amount of time whether the screen is on or off. Even if i'm in the app it won't.

As for the wifi connectivity with screen off, whether it's with this patch, stock rom, custom roms, custom kernels, or a combination, I can't stop the wifi connection from stopping when the screen is off.

It either stays connected (blue), but syncs nothing, or the bars go grey and back to blue when I turn it on and all my notifications rush in at the same time.

This stops all notifications, including the stock email and whatsapp for me.

Quite a massive issue :( 3G is fine, so I guess until / if google ever fix the issue i'll be on 2g / 3g to ensure I get my emails.
[Nexus 4 General] bganley:
Just ran across a post from Google over at https://code.google.com/p/android/issues/detail?id=40065#c535. They state there is a known issue with ARP processing on the N4 which should be fixed in the next update.

Hopefully that will be the end of this issue!
[Nexus 4 General] bganley:
I believe the other android devices don't have a battery hit because they properly support ARP offload while also filtering broadcasts during sleep. The latest update from Google acknowledging this issue seems to confirm this by stating that the N4 doesn't properly support ARP offload while filtering is enabled.

Here's a description from MS on ARP offload: "ARP offload is the ability of the network adapter to respond to an IPv4 ARP request without waking the computer. Both the hardware and the driver must support ARP offload to enable this feature." Taken from http://technet.microsoft.com/en-us/library/ee617165(v=ws.10).aspx. I hope Google also enable NS offload with their update for IPv6 support.
[Nexus 4 General] mobilehavoc:
Great news that they've clearly identified the issue and that means a fix can't be that far behind. I hope next update means 4.2.2 and not 4.2.3. :rolleyes:
[Nexus 4 General] andQlimax:
ignore
[Nexus 4 General] EvoXOhio:
Off topic but you probably already know this, but if you disable "Enable LAN sync" on the dropbox clients on your computers, the dropbox traffic will stop. I had to this because my previous phone (ATT Galaxy Note) would get SEVERE wifi wakelocks from this.
[Nexus 4 General] giacomowrc:
The problem appens to me but with 3g connection: when screen is off for 5-10 mins, push notification, emails, and whatsappmessages don't arrives. Any solution?
[Nexus 4 General] freaksamael:
yes, here: http://xdaforums.com/showthread.php?t=2102986

or use motley kernel: http://xdaforums.com/showthread.php?t=2021437
[Nexus 4 General] tracerit:
My wifi disconnect issues were solved by flashing Franco r53 kernel. Soo happy :) I was going to replace my phone via rma but then my friends nexus 4 also has the same wifi issues.
[Nexus 4 General] Ma7moud90:
Temporary solution

I have a Galaxy Nexus with the same problem, and I found a solution that works on all the Nexus phones of my friends

Assuming the network is remembered by your phone, from Wifi settings, turn wifi off and on 2 or 3 times quickly, don't let the phone complete the connection while doing that, then let it connect normally.

connection still drops when I forget to do this trick after getting home, but no dropped connection if I do it

Works for me on stock 4.2 and 4.2.1 and CM10.1 nightlies so far
[Nexus 4 General] gregb882:
That's odd. I didn't notice WiFi disconnect issues until franco kernal r53. I just downloaded r70 and I'm hoping that corrects it.
[Nexus 4 General] tracerit:
i only had the wifi disconnects with my hospitals wifi. at home and at my other job, no issues. as long as i don't get it at those three places i'm fine :) looks like i'll have to keep r53 on hand as a backup if further revisions might change things.
[Nexus 4 General] newuser02:
wifi will work for play store, web browsers etc but will not download updates and application installations.

I tried the OP's file in the first post and it did not help.

Flashed cm10 nightly - same problem.

Flashed franko r9 - same problem.

Made my home router - an open router, no passwords, etc..... still not working....

The only way for the wifi to stay connected and successfully install anything from play store is connecting to another phone's open wifi tether.

:crying::crying:

This really sucks as I would like to be able to use wifi calling instead when I'm home! Any suggestions??
[Nexus 4 General] giacomowrc:
No way, the problem is the same with both kernels. When I wake up the phone the signal bar is gray, then it returns blue and get the notifications... I have an Italian virtual operator (poste mobile). Other ideas?
[Nexus 4 General] bganley:
This fix is for the problem you describe, but only on WiFi. If you are seeing the same behavior on 3G, then it might have something to do with your provider's network config. It sounds like they might be passing your traffic through a stateful firewall or NAT with a low TCP Established timer. If they have this set to less than 15 minutes, this can cause the bars to go gray. Just a guess.

You can try testing this by seeing how long the screen has to be off for the bars to go gray. Then, send yourself an email from a computer a minute before that amount of time elapses while the screen is off. That would cause google to send you a notification which should reset the timer on your providers side. Then wait a minute so the same amount of time has elapsed that caused the bars to be gray before and turn the screen on. If the bars are gray, then it's probably something else going on.

Not a 100% conclusive test but would be interesting to know the results.
[Nexus 4 General] bganley:
Just so you guys know, this fix is for one specific issue with WiFi on the N4. Apparently there's a number of other wifi issues which you guys are probably running in to that will hopefully be fixed with an OTA soon.

This particular issue is where you stop receiving notifications while the screen is off and the phone is connected via wifi. You may also notice the wifi bars turning gray when you turn the screen on and then turning blue again after a few moments. Google has confirmed this problem and has a fix for it. Please see comment 535 from a Google employee here: https://code.google.com/p/android/issues/detail?id=40065#c535.
[Nexus 4 General] mobilehavoc:
4.2.2 has started rolling out. Let's hope it fixes these wifi issues. Fingers crossed!
[Nexus 4 General] mobilehavoc:
Just installed 4.2.2 and can confirm they've fixed the issue. Not rooted so not sure if they changed the config which I doubt or fixed the driver for the wifi. Either way I'm happy. :D
[Nexus 4 General] thejordan:
just flashed 4.2.2 and kept root.

the config ini file looks the same with it still = 3
[Nexus 4 General] newuser02:
where do you find it?
[Nexus 4 General] bganley:
Ideally the ini file would still be set to 3 combined with the ARP offload setting being changed to a 1 to enable. This would filter all broadcasts and multicasts from reaching the CPU while the screen is off and let the ARP offload feature handle responding to ARP requests. The problem in 4.2.1 was ARP offload was very buggy so they disabled it which combined with the filtering of broadcasts, broke ARP.
[Nexus 4 General] bganley:
I just updated and did some basic testing and I'm not having any luck so far. I still have the exact same problem. Are you able to ping the phone from another device (which hasn't talked to the phone at all) while the screen is off?

I'll play with this some more tomorrow.
[Nexus 4 General] PikkonX:
The update certainly fixed my Wi-Fi issue. I'm on a 60/30mbps connection, but the N4 would never go above 7mbps in Speedtest for some reason. After 4.2.2 it seems to be working normally and hits 19mbps which seems to be what the Speedtest app maxes out at.
[Nexus 4 General] mobilehavoc:
Didn't try pinging but I'm getting notifications while on wifi and asleep just fine. Could be that the phone doesn't respond to pings for some reason? Have you tested to see if notifications work? I'll test more but so far it seems to be working fine.
[Nexus 4 General] sl4y3r88:
I know im posting in the wrong section, but I have the same issue with the wifi on my Gnex(Stock 4.2.2). The wifi bars havent been going grey(Like on 4.2.1) but im not getting notifications when the phone is asleep, sure that translates to not being able to ping the device. Really disappointing.
[Nexus 4 General] zdenoh1975:
So..,this 4.2.2 update fix and solve this wi-fi issue described in this threat, or not??
[Nexus 4 General] mobilehavoc:
It fixed the issue for me
[Nexus 4 General] sl4y3r88:
Not sure if it matters since ur a Nexus 4 owner, But 4.2.2 dint fix the issue on my Gnex. The update hit me not too long before I had to leave for work, so dint have time to play around with stuff. But I got a What's App Message noification only post unlocking the phone which was the same issue as on 4.2.1.
[Nexus 4 General] bganley:
Nope. The phone will still not respond to ARP requests with the screen off. Also, the ini file still has ARP offload disabled.

I tried enabling ARP offload via the ini file. Just like with 4.2.1, the phone does now start responding to ARP requests but also just like 4.2.1, the phone returns the wrong MAC address to the ARP request. So apparently they did not include the ARP offload fix in 4.2.2.

BTW, the ini file doesn't appear to be touched by the OTA at all and as such, the patches in the first post work fine on 4.2.2.
[Nexus 4 General] bganley:
Ping was just an easy way to test if the phone is responding to ARP requests. I actually run wireshark while doing this and can confirm the phone does not respond to ARP requests while the screen is off.

Did you by chance have one of the zip's in the first post applied to your phone? I don't think the OTA touched the ini file so you might want to check and see what the McastBcastFilter setting in your ini file is set to.
[Nexus 4 General] bganley:
Check the TCP Established timer on your router. This should be at least 1200 seconds.
[Nexus 4 General] bganley:
And confirmation from the guy at Google that the fix did not make it into 4.2.2..... https://code.google.com/p/android/issues/detail?id=42272#c34 (post 34)

Disappointing to say the least....
[Nexus 4 General] skezza:
Is this a problem with everyones device? I seem to get far better WiFi performance, regardless of whether the screen is off than 3G. I'm far more concerned about the terrible 3G performance I'm getting.

I'm not quite convinced I want to RMA yet, but I'm not convinced I want to keep it either.

---------- Post added at 05:31 PM ---------- Previous post was at 05:18 PM ----------

OK, got my laptop pinging my phone. I've not switched the screen off I'm going to let it happen naturally when the screen goes off automatically.
[Nexus 4 General] zdenoh1975:
A big disappointment and a big shame for Google.
[Nexus 4 General] skezza:
I've been pinging my phone for about 10-15 minutes now and I've had maybe 5 or 10 packets dropped, and I'll attribute them to the ****ty WiFi connection.

It certainly seems ok on mine :S
[Nexus 4 General] Lownita:
Wow, glad I finally found this thread! So flashing your zip will not have any downside, is that correct?
[Nexus 4 General] MasterJam882:
I always said: "my next phone will be a nexus because of the great google support" when I was on my beloved i9000. Now it's the complete opposite. Maybe I don't get the newest updates but on my i9000 I was able to receive messages on time and elementary features as MP3-tags were available. It's a shame! And I am really considering to sell my phone. Such things are now allowed to happen on a 2012 phone - simple as that!
[Nexus 4 General] crachel:
Very disappointing.

I have a DIR-655 at the office, and my Nexus 4 experiences all the symptoms you've listed in Post #1.

The symptoms are not present and never have been on my Netgear N900 at home. My phone works perfectly on that router.
[Nexus 4 General] TrevSo:
In all of your posts, you keep using this term, "elementary features" -- but a phone that isn't advertised to have those features doesn't NEED to add them. If you're upset then you know how to return the device.
[Nexus 4 General] MasterJam882:
good god. is ABS brake an advertised feature in modern cars? NO but it's built in and customers expect it to be. Why? It's an absolute standard!

SO your comment is obsolete and the many ppl here proof that I'm right.
[Nexus 4 General] bganley:
ARP processing is a fundamental requirement for a WiFi device to support. Maybe I'm crazy but I find it pretty reasonable to expect that a Google smartphone that is advertised as having WiFi capability would properly support WiFi.
[Nexus 4 General] bganley:
Your N900 probably has a longer ARP timeout which effectively masks this issue.
[Nexus 4 General] bganley:
It will have an effect on the battery. How much just depends on how much broadcast/multicast traffic is on your wireless network.
[Nexus 4 General] bganley:
That is to be expected. The problem is with ARP processing, not pinging the phone (ping is used as a quick easy test). If you ping the phone while the screen was on, your PC will receive an ARP response from the phone. If you continued to ping the phone and let the screen turn itself off, your PC will periodically send unicast ARP requests to the phone since you are sending traffic to the phone in short enough intervals. The phone will respond to these as they are unicast. If you would turn the screen off, wait long enough and try to ping again it would fail as the ARP request from your PC would be broadcast.

Turn the phone screen off, set it aside, flush your ARP cache on your PC (or just reboot), and then try to ping. It will timeout. Turn the screen on and try to ping again and it should respond. You can run Wireshark to see exactly what is going on behind the scenes.
[Nexus 4 General] thejordan:
i can confirm, after thorough testing, that 4.2.2 did fix my wifi roaming issue on both my university and home networks.

device connects to wifi network automatically when coming back into range with screen locked (deep sleep), and screen unlocked.
[Nexus 4 General] Zainiak:
Still not working. I don't get notifications for google voice, and i get a lot of lost packets when I ping it.
[Nexus 4 General] Richieboy67:
Regarding Wi-Fi issues.. The only ones I had months ago were fixed by changing the Lear time setting in my router. I changed it to the max time which is 2 weeks.

Other than that I have no Wi-Fi issues or 3g issues at all. I would very the Wi-Fi issues can be fixed by tweaking your router..3g not sure. I have never had this issue.
[Nexus 4 General] mobilehavoc:
I can't explain it. But so far 4.2.2 fixed the issue for me. I'm completely stock and running on wifi that did have a problem on 4.2.1. No clue what's going on but it definitely works as far as I can tell
[Nexus 4 General] NeoDaemon:
This bug is a pain in the ass, i wanted to stay on stock but the update to 4.2.2 made me change to Paranoid 3.

I did have this problem on 4.2.1 on very rare ocassions, but on 4.2.2 every time i switched off the screen, severe delays, even editing WCNSS_qcom_cfg.ini, on screen power on notifications come instantly.

installed paranoid based on 4.2.2, Instant notifications.

Anyone knows if android stock + any custom kernel (suggest me one) will work?

Thanks :D

Router used: TP-Link TL-WR1043ND

Edit: well, i talked too soon, same issues...
[Nexus 4 General] skezza:
OK, I've switched my screen off. If in 5-10 minutes I will ping it from a computer that hasn't been used to ping it, so the ARP cache is already flushed.

---------- Post added at 07:13 AM ---------- Previous post was at 07:04 AM ----------

OK, fair enough. Mine doesn't respond to pings then as soon as I switch on it does. Are you sure this actually affects incoming messages though, I still seem to get whatsapp messages, maybe I just haven't noticed.

Gosh, I'm truly surprised Google haven't fixed this, it's obviously a bit of a ****up on their part.

---------- Post added at 07:14 AM ---------- Previous post was at 07:13 AM ----------

It makes me half considering RMA'ing
[Nexus 4 General] skezza:
OK, So how does your fix work?
[Nexus 4 General] sl4y3r88:
Thanks for your advice, But unfortunately my Belkin N300 doesnt seem to have that(I'm pretty sure, {at work so can't confirm}) or Preamble settings(I'm sure). Which is strange. Il look for the TCP setting you mentioned once im home and If the problem shows up again.

Also, As I had mentioned before that I still dont get Whatsapp messages when the screen is locked even after 4.2.2, I decided to reboot my phone and try a bit of testing and I had rather good luck last night and this morning. I let the phone be locked for 15-20 minutes and tried pinging the phone and had no timeouts. (Once again, I'm on a Gnex)
[Nexus 4 General] aimetti:
Its to bad for this issue. Aside from this, the phone is awesome. However, I can't justify keeping it unless this gets fixed.
[Nexus 4 General] skezza:
Still not had my OTA, Ill let you know when I do.

As far as I'm concerned, Google are letting everyone down.
[Nexus 4 General] neer2005:
Cm10.1 doesn't have any notification lag on wifi... At least for me it doesn't. Every other rom built off AOSP and stock has screen off lag. Did cyanogenmod put in a fix for the wifi issue in their rom?
[Nexus 4 General] skezza:
CM10.1 is buggy and poor on battery life. That ain't a solution.
[Nexus 4 General] mobilehavoc:
If you're having the problem just flash or update your config file and it will work again. I still can't tell if I'm having the issue. Will test more over the weekend. If I still am I'll just update the config file. Works perfectly with the config change.
[Nexus 4 General] JPfication:
im very tempted to use this fix. just one question hows the battery life affected? using both fixes respectively.
[Nexus 4 General] rcll:
Do you think the effect on battery would be the same with the official Google fix, which is purportedly a patched Qualcomm driver for the Wifi chipset?

I have to add my disappointment with Google not getting this fix into 4.2.2, its a big usability issue impacting a main feature. They were aware of it with plenty of time to include it in the OTA, one would think. Unless Qualcomm is glacially slow with patches after Google notifies them. Maybe its a legal/licensing issue somehow.

Thanks for investigating and releasing this fix bganley.
[Nexus 4 General] skezza:
The stupid thing is, they have an excellent OTA, but they don't use it. They won't push out fast fixes. Microsoft would. Apple would.

Google won't.
[Nexus 4 General] xfactor2000:
i got stock 4.2.2 and root and used

n4-wifi-sleepfix-mcast_and_bcast.zip

but still got the problem with whatsapp and viber. when the screen is off, i dont get notification.

i checked McastBcastFilter=0, its ok.

what can i do
[Nexus 4 General] ogrillion:
I had this also I ended up making another change in WCNSS_qcom_cfg.ini,

# Enable suspend or not

# 1: enable standby, 2: enable deep sleep, 3: enable Mcast / Bcast filter.

gEnableSuspend = 3 ---> I changed this to:

gEnableSuspend = 2..

Now when I send myself a message through gtalk it comes through instantly... I am not sure how this will effect battery.

Also when I made this change I also had to fix my permissions again.
[Nexus 4 General] MasterJam882:
AW: Wifi network connectivity issues and a possible fix

with 4.2.2 ai have the aame problem. Though fix I don't get messages right on time. With 4.2.1 this fix was working great. I assume they changed something - but just an assumption.

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 General] xfactor2000:
thanx. I tried but doesnt work
[Nexus 4 General] ogrillion:
Yeah fails for me now to. Worked for about an hour.
[Nexus 4 General] DougRoberts:
Does not work for me

I rooted my Nexus 4 today and made the changes described above, but push notifications still frequently fail. Thanks for the suggestion, though, it was worth a try.

What we really need is for google to push out a fix with an updated Qualcomm wifi driver.
[Nexus 4 General] Stryder5:
All my notifications worked. Did you check permissions and reboot?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xylos123:
Im having battery issues. After searching through the forums I havent found anything like it. The android system is eating my battery. Tried factory reset, flashed Csrom, nothing. Any suggestions? Please and thank you. :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Intub8:
Get better battery stats free on xda. Just Google it. It will show you what's really keeping your phone awake. Here is a photo of my partial wakelock caused by picasa syncing with my gallery. Picasa is Samsung bloat I guess but I froze it with titanium and now I'm getting great battery life. View attachment 1602023
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xylos123:
It ended up lowering down after I came out of the shower. Thanks for your help though. :)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] cokiaaaa:
Hi,

Please if somebody can help me sort this mess out.

I've flashed my note from stock ICS to JB (from telcel mexico) 2 days ago. it was pretty smooth and i liked it so much. but then i noticed that this rom had caused my network to be locked and i cant even connect to my network. i can just use wifi to stay online. so today i sent my phone to the store hoping that they can unlock it or make the 'lock' goes away. but unfortunately they cant. they asked me to downgrade it back to ICS.

so i've downloaded the stock ics from here;

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

and flashed it using pc odin. but it stucked at the samsung logo. so right now what should i do? i heard that i cant wipe the data or factory reset since i have flashed the stock ICS. i dont want my note to go brick :crying:

somebody please please please helpppp

thanks
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] perri.etb:
Can you enter to download mode?

Did you tick any of these "Leave Re-partition, pit, CSC, Phone tab unticked" on Odin?

If you can enter to download mode, I would suggest you to download again the file in case the file is corrupted and try to flash it again.

Btw, I have a Note from Telcel and have never faced any problem with the network and any JB rom I've tried.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] sujaishukla:
downgrading from JB to ICS is never a good idea and boot-loop is not a surprise.

do not try to wipe on ICS

download a stock GB ROM for your region. flash it with PC Odin as normal.

most probably you will still enter boot-loop, but this time as you are on GB just enter recovery mode and wipe cache and dalvik cache and it'll boot normally.

cheers
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] nokiamodeln91:
Flash philz kernel for your ics rom and the do a factory reset.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] cokiaaaa:
thank god! yup it's working. now my note is running on gb rom. have to start all over again since had to factory reset it :fingers-crossed:

cheers everyone :good: