yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] copi:
hi kalo

if I have,, I think I have normal wifi speed, does this zip will make my wifi speed even better?
[Nexus 4 Android Development] knapz:
My normal was always slower than on my laptop. I was getting 8-9 mb/sec and now I get 11-12. We'll see if battery life stays relatively the same.

carbon | semaphore
[Nexus 4 Android Development] copi:
It's true,, my wifi speed just testing on download app from playstore is extra 'normal' now :) thank u

I'm using eos rom with semaphore kernel btw
[Nexus 4 Android Development] Godaemon:
Any luck regarding screen off notifications ? Ty
[Nexus 4 Android Development] iShubham:
You know, when I was reading original post, I felt like its sort of the advertisements that come on TV ( like are you fat? do you want to decrease your fat? are you facing hairfall problem?) Dont take it seriously! Just told what I got in mind :) :laugh:

BTW I flashed this, and no bootloops for me atleast, I am running PA latest alpha with Franco R143 :highfive:

Ill post the results after testing for some hours! :)

Thanks for this!
[Nexus 4 Android Development] kalo86:
Hi guys,

Maybe I have to explain better why I advice to flash the zip file.

In my house I have a DSL line @ 10Mbit/s but I cannot reach 4Mbit/s with my Nexus 4.

In the contrary my Galaxy Nexus and other 3 laptops reach the limit of my DSL wifi network.

I was getting very bad when I wanted to watch a video from Youtube with my Nexus and I only see a waiting/loading animation... This is bad.

For this reason I noticed that editing the config file something changed and so I adopted the LG Optimus G ini file, a smartphone which shares the same hardware of the Google Nexus 4.

I am using an AOSP based ROM (compiled from a pure source code by me) and with the stock kernel.

Wifi appears to be fixed and finally the wifi speed reach the DSL band limit.

This workaround solved my problem with my DSL router but it is not a rule that my fix will solve the world.

Battery life is really great, over 4h 30min screen and surfing on internet with wifi radio on for about 2 hours.

Again: my problem seems to be fixed.
[Nexus 4 Android Development] EdikNeznanov:
For me, I don't recognized any changes in speeds, but wi-fi bug ( when turn off your screen wi-fi goes off too) that zip has solved. Tested by downloading Monster shooter 2 (500+ mb game). Turned off screen when game was loaded for about 9% after some time turned it on and it already got 53%. PA 3.94 (Aug 6 update) with stock PA kernel, Android 4.3.
[Nexus 4 Android Development] philipepi:
i just made a full wipe ( cache, system, davik )

When I turn off my screen, wifi goes off, I'm with 4.3 stock.

i've already flashed Nexus4_wifi_solution_by_kalo86.zip but still the problem

what should I do? :(

thanks
[Nexus 4 Android Development] BiggerSpain:
Maybe silly question. Wifi setting to Always when screen off?
[Nexus 4 Android Development] j770:
install Advanced Wifi Lock , and the problem is solved, flow battery 1% per hour

https://play.google.com/store/apps/details?id=opotech.advancedwifilockfree
[Nexus 4 Android Development] philipepi:
hahah yes, And I double check to be sure everything you said..

i noticed the messages delayd about 40 seconds until apperas for me.. even more..

What am i doing wrong?

I flashed mako 4.3

i'm using stock kernel and rom

i flashed that FIX

i tried another 3 roms JSS

and nothing..

I've downgraded to 4.2.2 and updated via OTA and still the same..

what is most annoying thing is, 2 days ago it was OK.. without delay.

how is it possible??
[Nexus 4 Android Development] philipepi:
i have tested on linksys wrt54g and dlink, both gave me delay notifiaction... but over my work, we use ruckus and i dont have delay there..

does anyone knows why??
[Nexus 4 Android Development] Emama:
Too many " fix" within this thread...which one is THE ONE

---------- Post added at 02:34 PM ---------- Previous post was at 02:30 PM ----------

So basically the zip file modified only the WCNSS_qcom_cfg.ini value?
[Nexus 4 Android Development] atxbang56:
the one in the op and yes.

BANGed from my God Damned CoOl Nexus 4
[Nexus 4 Android Development] random_n:
The full and complete fix has a number of requirements

1) gEnableActiveModeOffload=1 and hostArpOffload=1 in the WCNSS_qcom_cfg.ini file. I would expect that pretty much all 4.3 ROMs except for Google's official JWR66N will have this taken care of.

2) A kernel with the fixed Prima drivers. This means either any 4.3 ROM, or one of Anarkia's 4.2.2 kernels built with the WiFi/Prima drivers from 4.3 (link).

3) Radio/modem version 83 or higher. I haven't tested all of the radios from this thread, but I have confirmed that radios 48 and 54 mangle the ARP replies when in deep sleep even with a 4.3 ROM. I haven't tried the hybrid radio builds, but from the description of how they were built, it's likely that they would be fine as well.
[Nexus 4 Android Development] Emama:
Ummmm

The notification delay is still here..I thought this fix the delay too?
[Nexus 4 Android Development] atxbang56:
I use Push Notification Fixer to fix the delay

BANGed from my God Damned CoOl Nexus 4
[Nexus 4 Android Development] noodles2224:
Hi, I was thinking on downloading this app earlier today.. I occasionally have the delay using hangouts. Does it really work or placebo?? :confused: what minute setting do you have it on? Thanks.

Sent from my Nexus 4
[Nexus 4 Android Development] atxbang56:
I find that it really gives good results. no more delayed notifications. I set it on 5 minutes.

BANGed from my God Damned CoOl Nexus 4
[Nexus 4 Android Development] noodles2224:
Thank you for your quick reply.. I'll check it out again.

Sent from my Nexus 4
[Nexus 4 Android Development] leju29:
Hi kalo86 !

I use your wifi solution for a few days and have no more problems with buffering on YouTube. Thanks man !

I'm at the moment on cm 10.1.2 , does it work on cm 10.2 ?

Thanks.

Envoyé depuis mon Nexus 4 avec Tapatalk
[Nexus 4 Android Development] atxbang56:
it works on every rom

BANGed from my God Damned CoOl Nexus 4
[Nexus 4 Android Development] leju29:
Thanks !

Envoyé depuis mon Nexus 4 avec Tapatalk
[Nexus 4 Android Development] atxbang56:
mais de rien le finisterien

BANGed from my God Damned CoOl Nexus 4
[Nexus 4 Android Development] Emama:
Thanks, I restored the ini file to original,

let me try that apps.:good:
[Nexus 4 Android Development] atxbang56:
you have to use the fix AND PNF because each doesn't fix the same thing

BANGed from my God Damned CoOl Nexus 4
[Nexus 4 Android Development] Emama:
The fix eats too MUCH battery..

Let me try PNF alone first, right now the notification is kinda better than before (not instantly, but within couple mins)
[Nexus 4 Android Development] Akoolive:
The fix works!'

Sent from my Nexus⁴ using unlimited HSPA+/lte
[Nexus 4 Android Development] nileshgr:
The fix has made it's way into Android core in 4.3 JSS (incl PA/CM, but not stock 4.3) and no more requires external flashing. All thanks to [MENTION=3513880]kalo86[/MENTION] for fixing the miserable WiFi on 4.2.2 :D :D
[Nexus 4 Android Development] johnwazhere:
Woah Thanks! My Nexus 4 now connects automatically to my WiFi. I used to have to switch to 5ghz to 2.4ghz every time I had to connect.
[Nexus 4 Android Development] Globespy:
except it still didn't fix the issue for the majority of people.

I'm running PA 3.97 and still can't connect to the 5ghz band, and 2.4ghz is significantly slower than when on 4.2.2 ROMs. I even tried pure stock JWR ROMs and same issue with connectivity.

I take it flashing this will do nothing for the majority of us, even those on JWR based ROMs?
[Nexus 4 Android Development] anas_ammar:
is tis fix work in android 4.3 ?? coz my nexus 4 running 4.3 and have slow connection via wifi , my iphone has great speed via wifi in the same network !!
[Nexus 4 Android Development] philipepi:
You should try, for some it worked.

for me its great, but i'm still having delayed notifications. Even using PNF
[Nexus 4 Android Development] ro_bro:
I'm using Carbon (4.2.2) and this worked! I had only 1 bar before and it was disconnecting and connecting randomly, but now it's full power with great connection. Thanks OP!
[Nexus 4 Android Development] highfigh:
Wrong thread...
[Nexus 4 Android Development] republicano:
thanks this significantly improved wifi 5ghz when in the same room its ranges around 9-12MBs, 2.4ghz no change still at 5-6MBs

tested with copying my backup to my nas server.

before 5ghz was actually slower than 2.4 in the same room

pa 4.22
[Nexus 4 Android Development] branedamig:
I used the gDataInactivityTimeout=200 fix and it worked beautifully. I went from a horrible 3mb/s down and .97mb/s up to 25mb/s down and 2mb/s up (a tad faster than my laptop), and that is 2 floors below my router in a historic plaster house.

FYI: running AOSPA 3.99 with Franco Kernel r178

Thank you!
[Nexus 4 Android Development] yukarundeng:
How to do that?
[Nexus 4 Android Development] branedamig:
I used Script Manager to add that line right before "END" into qcom_cfg.ini file. You can find this file by navigating to root\system\etc\wifi.
[Nexus 4 Android Development] nokiagye:
Yes it's working no more need to close the hd on YouTube thanks

Phone n4 slim bean ROM 4.3
[Nexus 4 Android Development] Globespy:
anyone able to use their 5ghz band without trying the 2-digit channel trick (didn't work for me). 2.4ghz is ok.

thanks.
[Nexus 4 Android Development] mark2410:
hey, dont know whta it did but now 5ghz network works!!!!

can now got a good 12mbit connection. id have hoped it could go faster but its a damn step up on what it was, 2.4 still seems erratic and rubbish but at least 5 is functional, yey!!!

Edit: there isnt something similar for the Galaxy Nexus is there? its 5ghz wifi has never worked.
[Nexus 4 Android Development] Globespy:
can you try to remember what you did? the 5ghz connection issue has been my nemesis. I've heard some people have partial success changing their 5ghz band channel to a 2 digit number but that did nothing for me.

thanks.
[Nexus 4 Android Development] mark2410:
oh, well i know what I did, i installed the zip file found in the first post marked as the fix.

like i said i got 5ghz working doing that but its still not super fast but at least it works.
[Nexus 4 Android Development] Globespy:
Lol. OK. what ROM are you using?

I'm on PA3.99 and 5ghz is a complete no go - I can't even see the band half of the time when I'm standing a few feet from the router and when I do see it, no chance of connecting.

You got lucky with some pixie dust I think! :)
[Nexus 4 Android Development] mark2410:
oh

well the only other thing i did was set the router to channel 40 (had been on 36) but i did that before so no idea it it was having any effect.

the ROM im using is AOKP and using franco kernel if they are of help to you.
[Nexus 4 Android Development] nokiagye:
OK the mod real works for the reloadings on YouTube but still if the router is a little far of the phone the signal drops like crazy
[Nexus 4 Android Development] cfmusicman:
Anyone know if this will work with other devices?
[Nexus 4 Android Development] androiduser44:
no it wont work with other devices except nexus 4 and optimus g
[Nexus 4 Android Development] yduck:
Hey,

How do you enable the crypto engine driver? Could you please share? Thanks!
[Nexus 4 Android Development] Melt1down:
Great work Kalo86. Now wifi works much better no stalling after the patch. I thought I would sell my nexus 4 (4.3) as the wifi bug made the phone seem faulty and no better than my HTC desire hd with CM10.1 RC1 which was good. Not that I use wifi much but now I can feel the speed difference to the HD not as noticeable on 3G/H. Well you made me finally root the phone to get this patch, so that is a good thing and I can now explore the full potential of this Nexus 4.
[Nexus 4 Android Development] cjunk:
works for me

I was having problems with constant data dropout, and buffering when listing to TuneIn on WiFi. My speed were great using speedtest, 28-35Mbps down, 15-30 up and 9ms ping, but still stalling downloads and buffering. After the fix my speeds are now 30-40 up, and no buffering, no stalling.

Not sure if i have or had notification delay, as I don't use many apps that give me push notifications. I get an occasional email or update notification from the play store, but i see those when i am connected with WiFi also.

I flashed the zip from kalo86 and it worked for me. after reading this thread some more restored back to stock, then added gDataInactivityTimeout=200 to WCNSS_qcom_cfg.ini. This also worked, so I am sticking with that.

Thanks to kalo86 for taking the initiative on this and finding the fix, and to whoever it was that posted the gDataInactivityTimeout=200 only fix.

If you have good speed, but still poor actual use performance, give this a try.
[Nexus 4 Android Development] Forceflow:
My issues were centered around streaming media (youtube, google music). Speedtest gave reasonable speeds, but it would seem that connection drops prevented these streaming media apps form working.

I can confirm that adding gDataInactivityTimeout=200 (and only that, no other tweaks) helped performance immensely.

Thanks
[Nexus 4 Android Development] BlueFlame4:
This! Really amazing how fast it is now :) I don't get why Qualcomm messed the WIFI that bad?

Sent from my Gameboy Color
[Nexus 4 Android Development] yukarundeng:
Care to share them step by step?? The gData thingy

Appreciate very much
[Nexus 4 Android Development] cjunk:
use file manager (I used ES file explorer) to find the file: "WCNSS_qcom_cfg.ini" in /system/etc/wifi/

open it, add the string gDataInactivityTimeout=200 then save.
[Nexus 4 Android Development] luiseteyo:
Would it be correct to say this is a WiFix? :D

Really sorry

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Android Development] tonisauffa:
The fix works! Thank you!

che la Topatalk sia con te!
[Nexus 4 Android Development] Contivity:
Causes so much crashes on CM 10.2
[Nexus 4 Android Development] Akoolive:
No crash here. Latest cm 10.2 nightly.

Sent from my Nexus⁴ using unlimited HSPA+/lte
[Nexus 4 Android Development] Kc_Nirvana:
Google launch a patch related to the wifi config.

Is there gonna have a new fix with the google fixes?

Thanks
[Nexus 4 Android Development] kalo86:
Please share this Google patch link.

Thank you
[Nexus 4 Android Development] Kc_Nirvana:
I think its a change in google aosp....

https://android.googlesource.com/device/lge/mako/+/android-4.3_r3

Sorry if this has nothing to do with wifi fixes....

I search and all say that corrects wifi notification delays on mako....
[Nexus 4 Android Development] kalo86:
Ok, then for the next time please be sure of what you write on my discussion.

I like to be polite with all people and I require the same behaviour.

When you find/hear something, please share the official link and not rumors...

My wifi fix works on all aosp based roms.

I don't support Aokp or Cyanogenmod based roms, paranoid or other similar roms.

This fix do not solve the delayed notifications. Clear?

Who said that my flashable zip fixes the delayed notifications and that my solution causes battery drain?

Maybe I have to find solutions only for myself.
[Nexus 4 Android Development] Kc_Nirvana:
Sorry if I upset you and thank you for the explanations
[Nexus 4 Android Development] kalo86:
It's ok, don't worry.

Anyway I just edited the first post.

Regards,

Kalo86
[Nexus 4 Android Development] Cloudus91:
Kalo86,can you tell me if this fix will work with every Android Version?

This fix works fine with 4.2 and 4.3,it will work with 4.4 too?

Because if google don't fix this problem with 4.4 and your fix become incompatible with it I can kill my self.:laugh:
[Nexus 4 Android Development] kalo86:
I am going to upgrade the first post because this "wifi fix" was created for Android 4.2.2 AOSP ROMs.

Now I will change something at the first post for both Android 4.2.2 and Android 4.3 AOSP.

I am sorry but I cannot support CM, AOKP or derivatives ROMs.
[Nexus 4 Android Development] nileshgr:
I happened to go back to a JWR based ROM (PSX v6). Saviour ;)
[Nexus 4 Android Development] gado45:
I was hating my n4 these days for wifi and delayed notifications.. Will try yo fix with all methods discussed here starting with the zip.
[Nexus 4 Android Development] ziddey:
Really?
[Nexus 4 Android Development] gado45:
Talking about WiFi
[Nexus 4 Android Development] ruvelro:
Hi!

Is it working on stock rom?

Thanks =)
[Nexus 4 Android Development] nileshgr:
It should.
[Nexus 4 Android Development] ziddey:
arp offload is enabled yet again

dfs channels are enabled!
[Nexus 4 Android Development] lilmeanz:
Works thanks I no longer hate my wifi
[Nexus 4 Android Development] Forceflow:
Just a quick two thumbs up for this fix, which solved the one major issue I had with my Nexus 4.

Running rooted, stock Android 4.3
[Nexus 4 Android Development] Krayvon:
will flash now and report. thanks.
[Nexus 4 Android Development] skinnypupp:
It's strange.. this fix seems to work for a while, then stops working after a day...

Without the fix, if I leave my pc pinging my ISP's domain, I see constant 20-30ms ping. As soon as I connect the N4 to my router, it goes up to 2000 or timeout.

WITH the fix, I can connect, and the ping won't change. However, the next day it starts to get bad again.

Thankfully my modem has its own router, but connectivity becomes an issue.

Would LOVE a more permanent fix. I think I might just need a new router.
[Nexus 4 Android Development] Krayvon:
did not work for me on cm nightlies.
[Nexus 4 Android Development] fede_79:
Here with an optimus g, similar hw same WiFi chip / driver, when I'm on 2g GPRS my WiFi is slow. When I'm on umts my WiFi its fine. Already change 3 different types of access point he (tplink, netgear and mikrotik). I notice that lowering beacon interval on the ap config 25 or less msec will lower the phone latency in general.

Inviato dal mio LG-E975 con Tapatalk 4
[Nexus 4 Android Development] :
added to index:p
[Nexus 4 Android Development] :
A ton of people are having succes with this mod. I have the same problem as the OP describes except on the N7 (2013). Is it possible this fix could be modified to work on the N7 too? Or is it some nexus 4 exclusive stuff :(
[Nexus 4 Android Development] strykerider:
hello..

i'm sorry if my question have been asked before, but im confused with this if can fix my problem..

currently i'm running a stock ROM and rooted, a couple days ago it can connect to a wifi with 5 Ghz band.. and now it cannot connect to 5 Ghz band, it can't detect the SSID of my Wifi Router.. does this fix purpose to fix a problem like me? :)

thank you..
[Nexus 4 Android Development] kalo86:
Hi, you will solve only the common issues listed on the first post.

Regards,

kalo86
[Nexus 4 Android Development] Globespy:
This is intriguing. Did you have any ROM or kernel updates between it connecting to your 5Ghz channel a few days ago?

It not and your phone has not changed, this is perhaps a sign of something I've always thought could be the culprit - a prematurely falling radio hardware. Since the 4.3 update didn't impact every N4's connectivity it makes sense that since most phones are about the same age, it could be a batch of faulty radio hardware.
[Nexus 4 Android Development] strykerider:
Hello.. Thanks for your answer.. Did you mean the problem is on my hardware not on driver? I still using a stock kernel too..
[Nexus 4 Android Development] Globespy:
I just thought it unusual that you phone suddenly stopped being able to connect to your 5ghz band, when you hadn't made any changes to the phone. I think that perhaps the problem is crappy radio hardware that's slowly but inevitably failing on the N4. Like I said, if Kit Kat fixes the issue then it's software, but in your case it stopped working after your phone was already running 4.3. Most people started having the issue as soon as they updated to 4.3 which initially everyone thought was bad radio software, but yours worked fine with 4.3 then stopped working without any software changes that makes me think it's hardware failure - although code can bork hardware if it's poorly written. Only time will tell with the release of Kit Kat.

I'm thinking of downgrading my replacement N4 (get it tomorrow) to 4.2 until Kit Kat comes out, even if it works on 4.3. I've even read of people who had no connectivity issues on 4.2 updating to 4.3, having their 5ghz stop working, and stay broken even after downgrading to 4.2, which previously worked fine.

It could be that the radio driver code in 4.3 is actually breaking the radio hardware! Maybe its trying to push the hardware too aggressively and causing a physical, permanent failure!
[Nexus 4 Android Development] strykerider:
If i try to clear cache and dalvik.. It could work again.. But if i disconnect from 5 ghz band and go away for a while, comin' back and try to search the SSID it won't detect any SSID which run a 5Ghz band.. :(

Btw thank you for your explantion sir.. :)
[Nexus 4 Android Development] Globespy:
You are most welcome!

The more I've thought about this and all the issues this phone has since 4.3, I truly believe that it's the radio code that's pushing the hardware to close to it's tolerance limits and as every piece of hardware is unique (better solder, electronics etc) then some phones work but some fail. I would think that your newly experienced issues are a sign of failing hardware.

Of course this is just my speculation and opinion, but I'm downgrading my new N4 to a stock 4.3 firmware as soon add it arrives - I truly believe it's bad code causing premature hardware failure and most likely that the N4 hardware is low quality in some areas. How else could Google sell the phone for less than half of the price of a Samsung Galaxy S4! You get what you pay for and LG is a lower end electronics manufacturer compared to Samsung, Panasonic, Sony etc.

I would never buy an LG flat screen TV! It doesn't compare to a Samsung. I should have thought about that before buying the N4 in retrospect! It's a lower tier electronics manufacturer.
[Nexus 4 Android Development] Forceflow:
Just commenting on: https://android.googlesource.com/device/lge/mako/+/android-4.3_r3

This does not include gDataInactivityTimeout=200, so it would not fix the problem we're facing here.
[Nexus 4 Android Development] samuelrf:
so i don't know if my problem is the same but...not matter what rom i use, psx, carbon, cm, my wifi works very slow but wifi in my girlfriend's house or any other works good, should i try this? or it won't do anything?
[Nexus 4 Android Development] kalo86:
Try fastly the zip fix ;) I am sure you will solve the issue! Regards
[Nexus 4 Android Development] doitda:
If you are having issues, and have a dual router, test the 2.4 and 5 Ghz frequencies separately to see if one frequency performs better.

There are some options disabled for 5Ghz I changed that made a nice difference.

2.4 Ghz always worked well for me.
[Nexus 4 Android Development] bruce7373:
Hey, Globespy. If you remember, over in the mako radio thread we discussed how changing channels could improve 5Ghz speed. It did at first for me, but it wasn't a consistent change. So by "stock firmware" are you referring to ROM, just stock kernel or both? I'm tired of fooling with this and just want something that works. I don't mind skipping the bells and whistles of custom roms if I can improve 5Ghz performance. ;)