yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Q&A, Help & Troubleshooting] bulldog2000:
after using CF-root on first boot it went MTP application could not start rebooted cleared the cache after that I got media has stopped and a a few other system errors, I did a Factory reset and issue was resolved and root was maintained
[Galaxy S 5 Q&A, Help & Troubleshooting] Andrewbud:
Kingo root works too if you're lazy... :)
[XDA Assist] enoxhe:
i have samsung galaxy s3 sch r530.

the main board doesn't work and a friends has main board s3 Verizon i535 and wont to bay but first i need to be sure if it will fit and work.

so the idea is to put the main board of samsung galaxy s3 verion to lcd frame and all components of U.S samsung galaxy s3 sch r530.

Can you help me

thanks.
[XDA Assist] Heisenberg:
Hi :)

Thanks for writing to us at XDA Assist. I can see you've asked the same question here:

[Q] main board s3 i535 to samsung galaxy s3 sch r530

Please refer to the XDA Forum Rules for information regarding the creation of duplicate posts/threads.

My guess is that you can't mix and match boards from different models, you should only ever use hardware that came from the exact model that you have.
[ONE General] Genericxx:
Usually i switch on WiFi and disable mobile data manually while at home. It turns out that i don't receive any Push Notifications like WhatsApp, Threema, Facebook and GMail/Inbox (those who are using gcm) when the device is connected to WiFi solely and the screen is locked. If i unlock the device after a certain amount of time, a bunch of notifications are popping up. This is reproducable and won't occur on mobile data. Just do the following, while i.e. at home:

Connect to WiFi

Deactivate your Mobile Data

Lock your screen and let your Device rest for a couple of seconds

Tell someone to send you a Mail to your Gmail Account (or on any other GCM-Push related way)

You probably may notice that your device won't wake up to notify you about this incoming message until you pick it up and unlock it. I have tested this since weeks with multiple official nightlies of CM12, custom builds and even unofficial CM12.1 builds, they all show the same behaviour. Even with official CM11s this issue persists, but can be worked around by unchecking "WiFi Optimizations" in advanced WiFi-Settings. Unfortunately Lollipop doesn't have this WiFi Optimization trigger anymore. Ofc "Keep WiFi on during sleep" is set to "always". After all tests i came to the conclusion that the device simply gets no wakelock trigger from notifications if connected to WiFi solely. I've fixed this for me by fiddeling with the configuration files (root needed).

Open /system/etc/wifi/WCNSS_qcom_cfg.ini and change

hostNSOffload=0

to

hostNSOffload=1

After this change and a reboot, your device should be able to wake up from incoming notifications instantly while on WiFi. Some custom ROM, like SlimSaber have set this out of the box, while official cm nightlies and other custom ROM, like exodus, haven't.
[ONE General] JaY_III:
Have you tested IPv6 over WiFi with 12.1? As that is also broken on 12.
[ONE General] Genericxx:
Usually i've disabled ivp6, because of the known problems with it. I've tested it with ipv6 enabled and it worked.

Meanwhile i was able to test a lil bit more on other networks. It seems like this all is router dependant. While having the chance to exessively using another WiFi network yesterday, i was able to check that there are no such problems as described before. After went home, problems reappeared. I have to conclude that there must be some culprit with my router at least (Telekom Speedport W724V).
[ONE General] TB-303:
I noticed such notification flood several times.

I can't say under which circumstances because I didn't care about it yet but your post made me remember this.

I gonna investigate that asap.

As far as I can say this happened only at home yet. My router is an AVM FritzBox 7390.

On my OPO I have usually always one of the newest official CM12 nightlies installed.
[ONE General] Genericxx:
I've tested stock settings while connected to a completely different router a few days ago and wasn't able to reproduce the issue. It really turns out that it has something to do with certain routers, in my case a Speedport W724V Type A (by Huawei). It seems like this issues has something to do with ARP Offloading and filtering of Broadcast/Multicast. As far as i understand, Androids MAC Adress isn't hard coded and the router loses the connection to the device if it goes into sleep state. Therefore the router has to broadcast via arp to look for the device, but the device simply doesn't respond to the arp request, coz the wifi driver is configured to ignore that broadcasts and continue sleeping. This issue is, as i read, present since KitKat where it could at least be worked around by disabling the WiFi Optimizations, which seems to be only a checkbox for above mentioned manual method Lollipop.

Currently i've no idea how to fix this in a better way, since my described method works flawlessly, but it's definately a lil battery drainer. Another way to work around this is by setting "Keep Wi-Fi on during sleep" to "never" and let the device handover the data connection to mobile data while sleeping. This, at least, ensures the battery savings which were intended by the developers.

Steve Kondik merged an interesting commit today, which i am not aware of if this will change anything related to this issue. As this commit was merged into cm12.1 branch i doubt that we will see anything related in cm12 based roms, nor the upcoming cm12s. Maybe some nifty dev like [MENTION=3685904]ak[/MENTION] or [MENTION=947981]Lord Boeffla[/MENTION] can take a look into this and implement it into their kernel.
[ONE General] andip71:
I put the interesting commit into my cm12.1 kernel, which comes out tomorrow.

If all goes well I can look to back port it to cm12 and maybe even cm11(s).

Let's see. First we need opinions on the test kernel tomorrow.

Andi
[ONE General] gavin-phelan:
It fixed my wifi bug so far on euphoria 5.1
[ONE General] Genericxx:
Okay guys, i've tried AK's latest experimental kernel (v203). Beside of some small problems which are still under developement, WiFi seems to be fixed completely with the implementation of the new prima drivers for me. This could mean, that they will be automatically fixed with the release of the official cm12.1 nightlies. As for now i will thank everyone, especially [MENTION=3685904]ak[/MENTION] and [MENTION=947981]Lord Boeffla[/MENTION] for participating and help to hunt down and solve this annoying issue. You're great guys :) :good:
[ONE General] andip71:
Thanks. With the latest beta kernel for cm12.1 which I released this morning, these drivers are also included.

If they turn out to work better - my other kernel variants (cm11s, cm11, cm12) are also already ready with these new drivers backported. Just have not released them as I want to give it some more testing.

Andi
[ONE General] xxBrun0xx:
Anyone else notice the same issue on Oxygen Os? I'm not sure if it's just the router I connect to at work, since this doesn't happen at home. Can't tell yet, will give this a shot.
[ONE General] andip71:
Would be an interesting test.

We cannot look into the driver used for Oxygen OS as the kernel code is not yet released as far as I know (if it is, I would be happily be corrected :) )

Andi
[ONE General] Genericxx:
I'll bet that oxygen suffers of the same problems as every cm12 build does (even if it's more aosp) and CyanogenOS 12 (CM12s) will also.
[ONE General] andip71:
Let's see.

I backported the new drivers to CM12, CM11s and CM11 already.

Just need to decide whether I ship that or not :)

Andi
[ONE General] NOSTALGIA:
is it already out ?
[ONE General] andip71:
Indeed it is.

Andi
[ONE General] xxBrun0xx:
Just to report back, this did seem to fix my wifi issues, although I've since switched to Exodus, so I didn't have a ton of time to play with it.
[ONE General] Jur1nator:
Thanks for taking the time to investigate this issue. I should have done the same I will ago when it started bothering me.

I will try one of the kernels and see if it fixes it. If not I'll try your method once I am back home.

Thanks!
[ONE General] Genericxx:
You're welcome. I have to admit that the problem reappeared. So the new Wi-Fi drivers have no permanent solution for me. As told in the other thread I found my temporary solution by simply let Wi-Fi auto turn off when device for to sleep. My data plan allows me this easily, but if you're on a 200mb data plan this could be ****ty for you. Let's see if future commits of cm will change anything.
[ONE General] Jur1nator:
I fortunately have a 3gb lte contract, so this shouldn't be the issue. I just don't want to accept that there might not be a solution without tradeoffs.

I'll let you know if I find anything :)
[ONE General] Genericxx:
Would be nice. I'm hunting this issue down since January, so far, as said, without any real solution other than using another router. it works anywhere except at home, so i know exactly how annoying this is. It's not that big problem to use mobile data when screen is off, but is pisses me off, if i just forget this sometimes and miss urgend messages from WhatsApp or Threema, coz they're arriving hours later. As desribed above, there is a way to prevent the OnePlus to not filter the WiFi Broadcasts. You just have to edit this one line in the configuration manually, but it comes at the cost of battery.
[ONE General] Genericxx:
Update: The whole thing seems to be restricted solely to my router (or type of router) in combination with the OnePlus One. Looking into some wireshark protocols it seems like my router spams the network with broadcasts like hell. I bet that the WiFi driver just ignores all the package requests to save battery and let the cpu sleep, which can be avoided by the method described in OP.

Connecting to other routers -> Issues gone

Visitors with different devices running Lollipop -> No Issues on my router

I'm a bit tired of hunting this down. I'll guess i'll simply hope that this will somehow be fixed by a firmware upgrade on any side of device. Meanwhie i'll just sitting this out by resigning using WiFi at home when the device sleeps.
[ONE General] Jur1nator:
Using your fix the last few days and so far it works pretty good with no noticeable extra battery drain.

Thanks so much! This should work great until they maybe fix it properly some day :)

Do you know if there is a way so that I don't have to rewrite it in the file after every new nightly flash?
[ONE General] Genericxx:
Yes I can make a script for addon.d for this. But give me a few days, since I am not at home and doing this on the laptop is more comfortable.
[ONE General] ciarpame:
I have this wifi drop issues after installing CM12.1 on my OPO, it seems only at work.

Googling around I just found this post (http://android.stackexchange.com/questions/61610/android-4-4-2-on-nexus-4-7-wifi-connection-loss). It's about android 4.4.2 and Nexus devices but the problem seems exactly the same, maybe could be useful in a some way.

Such post suggests some workarounds I did not yet try (use and IP fixed address, force 2,4Ghz band) and some different WCNSS_qcom_cfg.ini setup.
[ONE General] Genericxx:
I can confirm that those additions to the config have solved my problems without draining more battery! [emoji4]
[ONE General] Franc38:
Thanks for the link, I'll try that (just added it the two additional lines to my cfg). We'll see if it works with me too..
[ONE General] Genericxx:
[MENTION=2245913]Jur1nator[/MENTION] Okay, just navigate to your /system/addon.d/ and open 50-cm.sh to another file like i.e. "66-fix_wifi.sh".

Remove the line at top that backups hosts (coz 50-cm.sh does that already), navigate straight to the end to where post-restore starts and copy/paste the following:

busybox sed -i -n -e :a -e '1,4!{P;N;D;};N;ba' /system/etc/wifi/WCNSS_qcom_cfg.ini
echo "# Fix Notifications with some routers while on WiFi and sleeping" >> /system/etc/wifi/WCNSS_qcom_cfg.ini
echo "gEnableActiveModeOffload=1" >> /system/etc/wifi/WCNSS_qcom_cfg.ini
echo "hostNSOffload=1" >> /system/etc/wifi/WCNSS_qcom_cfg.ini
echo "END" >> /system/etc/wifi/WCNSS_qcom_cfg.ini

so the end of your script should look like this:

;;
post-restore)
busybox sed -i -n -e :a -e '1,4!{P;N;D;};N;ba' /system/etc/wifi/WCNSS_qcom_cfg.ini
echo "# Fix Notifications with some routers while on WiFi and sleeping" >> /system/etc/wifi/WCNSS_qcom_cfg.ini
echo "gEnableActiveModeOffload=1" >> /system/etc/wifi/WCNSS_qcom_cfg.ini
echo "hostNSOffload=1" >> /system/etc/wifi/WCNSS_qcom_cfg.ini
echo "END" >> /system/etc/wifi/WCNSS_qcom_cfg.ini
;;
esac

This ensures that after every dirty flash the Offload-Parameters will be set automatically again.
[ONE General] Jur1nator:
I will try it out tonight :)
[ONE General] ciarpame:
Just a confirmation: the sed ninja trick is to remove the END line from WCNSS_qcom_cfg.ini before adding the new content? :)
[ONE General] Genericxx:
That's right. To remove the last 4 lines to be exact. I'm not a pro in shell scripting, but this works as intended :D
[ONE General] ciarpame:
With the last CM12.1 two nightly builds, no trick with WCNSS_qcom_cfg.ini seems was able to solve the issue for me.

Days ago I solved with just the McastBcastFilter=0 setting.

:(
[ONE General] Genericxx:
Noticed this too. Dunno, but i wouldn't recomment to set McastBcastFilter to 0, because it will drain your battery at high leverage. It won't suffer from those Offload Methods i've introduced before. Maybe there were some changes regarding kernel or wifi drivers in the last builds, but im not into it currently. Notifications work for me partially currently while of wifi.
[ONE General] corneliosunny:
worked for me

I wanna share my experience with the WiFi after upgrading to cm 12.1 , I tried flashing different ROMs like blispop, uber, temasek, nightly cm12.1, candy but I always had the Wi-Fi drops. The WiFi would show its connected but I can't even browse using the internet using my home WiFi. Turns out its the router compatibility as it connected to other WiFi just fine.

Sometimes toggling airplane mode on/off works but only temporary, restarting the router also works temporary. The permanent fix for me was assigning static IP address. I tried on the ROMs above except uber and my WiFi stayed on all the time and I got notified even when the phone was asleep and got really good internet speed based on my subscription.

Here's how to assign static IP:

Open settings - long click on the WiFi name - click modify network - scroll down you'll see static IP address and gateway option - now on your laptop/computer connected to the Wi-Fi open command prompt (type cmd in search for windows) - in the command prompt type "ipconfig" (without the quote) - you'll see plenty of details then look for ipv4 and gateway - the ipv4 would start with 192.XXX.XXX.xxx that is your static IP - input that in your phone settings with the gateway number - connect your WiFi and voila no more problems

I hope it helps :good::)
[ONE General] Shankar9822:
Yes, it did help.....

Should I have to change the IP every time or?
[ONE General] corneliosunny:
No you don't. Its just one time process. If you have problems with other WiFi router you can olly the same fix for the other router. So one time fix per router :)
[ONE General] Shankar9822:
Got it. Thanks buddy. :svetius:
[ONE General] Cyberwolf2:
Thank you, IPv4 adress change to Static helped to fix the wifi drop problem :)
[ONE General] vayabody:
I tried to change that line 0, I'm Root but I can not change anything.
[ONE General] MA7MOOOD:
I have the exact same wifi problem described in OP..

things I tried:

-every firmware version I found..

-euphoriaOS ROM cm12 and cm12.1 based, OxygenOS and cm12s.. currently on cm12.1 20150515 with the famous touch fixes (works like a charm btw, like wow!)

-the edit mentioned in the OP of course..

-almost every kernel available for the OPO, including AK239 and Franco r42..

-I even tried reverting back to stock cm11s, using the factory image not the flashable zips to make sure everything is completely stock..

-setting a static IP (mentioned in a reply to the same problem somewhere), it makes reconnecting when turning the screen back on really fast, but it still disconnects regardlessly..

-connecting to a different network altogether, specifically a usb wifi dongle on my PC, will try the same with my laptop's wifi instead, doesn't make any sense, but I'm desperate!

I'm really frustrated and bored, and it's ruining the relieve of the touch fixes that came out at last..
[ONE General] xela-yuki6:
Can't say I've tried EVERY angle at fixing it like you have, but I've tried most! I'm back on 4.4.4 with a setup that actually works, no problems. But this is ridiculous. I'm at the point where I'm ready to sell the phone.
[ONE General] mucinch:
Wifi is working perfectly with the latest Boeffla kernel beta on cm12.1 nightly. Wifi is connected with Static IP, without any other tweaks. Thanks Lord Boeffla for your awesome kernel. :D
[ONE General] MA7MOOOD:
exactly what kitkat setup that's working for u, thanks..

I have the exact same setup you're describing.. cm12.1 0515 nightly with latest Boeffla kernel, using a static IP.. still when I turn the screen on after 10 minutes or so of idling, I can see for a split second that wifi is disconnected before it reconnects.
[ONE General] mucinch:
In the advanced wifi settings, I have

network notifications- off

scanning always- off

Keep wifi- always

avoid poor conn- off

wifi freq.- Auto

In the boeffla config app, I had changed Wifi scan to 300 secs. The kernel version is 4.0 beta 15 and CM12.1 0515 nightly.
[ONE General] MA7MOOOD:
I'm sorry, but where in the config app did u change that? I can't find it.. app version 2.1.79
[ONE General] mucinch:
Under Settings/Various Settings/Wifi Supplicant scan interval.
[ONE General] Genericxx:
Guys, just forget that McastBcastFilter=0 i've mentioned in the beginning. You can leave it set to "3". In Post 27 i've showed a script which solves all my issues. Although that script is meaned for applying the settings after a dirty flash of your rom, you can easily apply the changes manually by editing /system/etc/wifi/WCNSS_qcom_cfg.ini and appending the following near the end of the file

before

the line END

gEnableActiveModeOffload=1
hostNSOffload=1

I am using this since about three weeks now, in combination with wifi ip set to static instead of dynamic, and all my problems are gone. No more changes needed, working for me with any router i've testet since and regardless of kernel used, without delay or other issues.

Rooted device does not automatically mean that the Filemanager you've been using takes use of root privileges automatically. You have to configure this in the according settings. Also i dunno if you're using SuperSU or the builtin Superuser. Personally i recommend builtin Su, coz SuperSU is known for giving problems now and then. If you use builtin CM-Filemanager and configured it to Root-Access-Mode, it should normally allow you to write your changes to System-Partition recursively.
[ONE General] LSiR:
Your a life saver, thanks
[ONE General] xela-yuki6:
Running Slim 25/11/14 build, works like a charm
[ONE General] krishnaj:
Hi [MENTION=5369313]Genericxx[/MENTION] thanks for the help... I tried putting this gEnableActiveModeOffload=1 hostNSOffload=1 in the /system/etc/wifi/WCNSS_qcom_cfg.ini and static IP address setting on the phone... I still some time the wifi tries to connect to a nearby network and not mine... i have manually choose mine. I have manually pressed forget network which it tries to connect. I am having this problem on CM 12.1 based bliss pop on LG G3.
[ONE General] vayabody:
Thanks i try with Root Browser (File Manager) any i Can chance. Tomorrow i try if wifi work all time.
[ONE General] Genericxx:
I neither know which WiFi Chipset the G3 uses, nor if BlissPop is purely CM-Based. Chances are, that BlissPop uses different drivers then the Prima ones that CM uses, so you have to ask this in the appropiate BlissPop thread. I cannot give any support regarding this, because i have simply no chance to try for myself without the given device. That's one reason why this thread is in OnePlus section, and not in General to cover all Android 5.x based devices. Sorry mate :(
[ONE General] vayabody:
T'he wifi problem continu

In line McastBcastFilter I changed the value of 3-0, I installed the kernel Boeffla but continuous time having the same problem.

Just edit:

gEnableActiveModeOffload = 1

hostNSOffload = 1

I'll try to see that this, I will go and counting
[ONE General] Genericxx:
Leave McastBcastFilter=3, otherwise you'll get insane battery drain, coz the phone will not go to deep sleep. Just add the two other lines to the file as described and you should be fine.
[ONE General] vayabody:
I have restored the initial value 3 I checked the code before the end, but not me fixed.
[ONE General] Genericxx:
I have no idea what you want to tel with "but not me fixed" :eek:
[ONE General] vayabody:
I am sorry but i dont speak english very well, i utilize Google traductor.

I have de same problem,before i put two New lines (gEnableActiveModeOffload = 1

hostNSOffload = 1)
[ONE General] Genericxx:
Try to set your WiFi IP to static instead of dynamic
[ONE General] preacher65:
Hi, thanks for this useful info - trying it now to see if my phone will stay connected overnight.

Do you mind if I ask why you don't include the hostArpOffload=1 parameter mentioned in the stackechange thread? Is it because it's not supported on our device, or is it simply because you're using a static IP address and don't need it (at least not according to the stackexchange post)?

I get disconnects at work as well as at home, and can't set a static IP address at work, so I'm trying to find a solution that'll help with DHCP.

Update:

Ran overnight with DHCP and the following lines added to /system/etc/wifi/WCNSS_qcom_cfg.ini

gEnableActiveModeOffload=1
hostArpOffload=1
hostNSOffload=1

Wifi still connected this morning. :good: Battery drain overnight seems reasonable, but I normally leave the phone on charger overnight, so don't have a good standard to compare against.
[ONE General] ciarpame:
Wifi improvements in the upcoming cm12.1 nightly:

http://review.cyanogenmod.org/#/c/99264/

Changes details in WCNSS_qcom_cfg.ini

http://review.cyanogenmod.org/#/c/99264/1/wifi/WCNSS_qcom_cfg.ini

Let's see if it means something for our wifi drops.

BTW, the static IP workaround suggested in this thread does not solve the issue for me.
[ONE General] Genericxx:
Would be great if these changes would solve the issues. Anyway: With the changes described I have zero to minimal delays while on WiFi since weeks. Static IP makes no difference for me by I an using it at home anyways.
[ONE General] amir.faegh:
Hi guys,i have a lg l9 p768 and i use cm 12.1(5.1.1) and i had this problem before with ressurection remix and other lollipop custom roms even artas f2fs lollipop ,i cant find this .ini file u said ,how can i solve this problem ,plz help ,this buG **** my nerve
[ONE General] converse1210:
Thanks it work
[ONE General] sosostupid:
guys i have problem finding WCNSS_qcom_cfg.ini

in my system directory, theres only system/tmp
[ONE General] Meister_Panse:
For me it´s not working, even the lastest CM 12.1 nightly with the new commit isn´t working.
[ONE General] Ne0x86:
Form me, dont work too. Im in last exodus nigthly rom in my opo

thanks
[ONE General] Genericxx:
CM upgraded WiFi Drivers and Config some time ago. No need to append stuff to the .cfg anymore, just scroll down to HostNSOffload and switch it from 0 to 1 and you're good. Some ROM like SlimLP have this change already built in, while other's like official nightlies and exodus haven't.
[ONE General] Meister_Panse:
the HostNSOffload setting has been posted several month ago and it did nothing, the problems are still there.