[Q] How to restart network services without reboot - Nexus 4 Q&A, Help & Troubleshooting

Every now and then my Nexus 4 forgets (?) my home and work wifi, and a re-scan does not even show them in the list of available networks. The only way to find them again is to reboot the phone, and then all connections work fine for a couple of days, and then the problem repeats itself. The problem seems to happen whenever i switch off WiFi and then switch in on again. If I do that, only a reboot solves the problem.
Is there a way instead of rebooting, to just restart all network services? I found an app that says that it does that but it does not work (https://play.google.com/store/apps/details?id=com.dazbradbury.restartConnections&hl=en)
Any other app, hack, setting I could use?
I am running the latest Cyanogenmod (android 4.2.2) with Kernel 3.4.0-perf-g4857f9b
Thanks all!

norad73 said:
Every now and then my Nexus 4 forgets (?) my home and work wifi, and a re-scan does not even show them in the list of available networks. The only way to find them again is to reboot the phone, and then all connections work fine for a couple of days, and then the problem repeats itself. The problem seems to happen whenever i switch off WiFi and then switch in on again. If I do that, only a reboot solves the problem.
Is there a way instead of rebooting, to just restart all network services? I found an app that says that it does that but it does not work (https://play.google.com/store/apps/details?id=com.dazbradbury.restartConnections&hl=en)
Any other app, hack, setting I could use?
I am running the latest Cyanogenmod (android 4.2.2) with Kernel 3.4.0-perf-g4857f9b
Thanks all!
Click to expand...
Click to collapse
Strange...try it with another rom

Any apps that restart the network services?
Sent from my Nexus 4 using xda app-developers app

Airplane mode, then back on.

Will try that ASAP... Thanks!

Related

Atrix Google Market Activates HSPA+ Data While on Wifi, Causes Wifi to Stop Working

UPDATE: When comparing to my coworker's phone (who doesn't have this problem), we went through all settings/etc and matched them up exactly. The only major difference between our two phones was that I was running Launcher Pro. When I uninstalled it, this problem went away completely. HSPA+ did get activated in the Google Market, but it didn't hinder my browsing experience. Anyone else having this issue, are you running Launcher Pro? And if so, if you uninstall it, does it fix the problem?
I know that there is an ongoing issue that Motorola is looking into concerning HSPA+ data connectivity dropping out. This is not that issue.
Here's the scenario:
- Atrix 4G purchased on release date
- Using 4G SIM card
- No SIM unlocks
- Have 4Gig Tethering plan
- Set to AT&T US HSDPA APN (have tried AT&T US Tether and AT&T US wap.cingular)
- Connected to Wifi
- Issue occurred prior to rooting and after rooting.
- Issue has occurred since day 1 of using device.
Issue: Launching Google Market and browsing around will eventually start showing connection timeouts, typically after looking in a few app descriptions.
What I notice:
- When connected to wifi, the cell data connection gets turned off (i.e. the grey up/down arrows are no longer showing). I assume this is how it is supposed to work (since if on wifi, no need for cell data connection).
- When launching the Google Market application, and after browsing for a few seconds, I notice the cell data connection doing something (grey arrows come back, and then will briefly show black arrows, then back to grey).
- Once the issue occurs, I attempt to browse in Dolphin or even the XDA application, and it doesn't connect.
- Turning wifi off then back on fixes wifi until I try Google Market again.
- Turning cell data off allows Google Market to work fine with no issue.
Thoughts:
- It seems that when connected to wifi, the cell data connection should be getting overridden regardless.
- Somehow Google Market is causing the cell data connection to activate and messing up wifi
- This happened on a 3G SIM and a 4G SIM (so it doesn't seem like a connection problem, simply a software issue)
- I have a coworker who has an Atrix as well and does not have this problem when connected to wifi
- I have other devices connected to the same wifi without issue (thus not a wifi router issue)
Any and all help is truly appreciated and thank you in advance!
Nice first post and seems pretty accurate. I switched on airplane mode and then just enabled wifi to test this out and had a zen-like market experience. Not a single hang up. Hopefully this will help lead to a fix. Thanks.
Have you tried switching off your data connection before connecting to wifi?
I had a similar issue where my wifi would be on simultaneously with my data connection so I just hit airplane mode whil wifi was on that turned off both wifi and data then I re-enabled wifi (airplane mode still on) waited for it to connect then I turned airplane mode off. Never had the issue again
Sent from my MB860 using XDA Premium App
Hopefully motorola looks into this as this is my only true gripe at the moment. I go to dl an app and it stops at a random percentage, I go back into market and see the app is paused. I cancel and Redownload and usually works. I also get a timeout error almost every time I go into market and have to choose retry or close.
bl0wf1sh said:
Have you tried switching off your data connection before connecting to wifi?
Click to expand...
Click to collapse
Turning off data connection does solve the problem, however that is only a stop-gap and I have to leave the data connection off (then remember to turn it back on when I leave my wifi area). No other application I use has this issue, so I would expect it's a software problem, but it doesn't seem to affect every Atrix owner.
drock212 said:
I had a similar issue where my wifi would be on simultaneously with my data connection so I just hit airplane mode whil wifi was on that turned off both wifi and data then I re-enabled wifi (airplane mode still on) waited for it to connect then I turned airplane mode off. Never had the issue again
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
Yeah I've done that too, sadly it still crops up for me.
skillz9669 said:
Hopefully motorola looks into this as this is my only true gripe at the moment. I go to dl an app and it stops at a random percentage, I go back into market and see the app is paused. I cancel and Redownload and usually works. I also get a timeout error almost every time I go into market and have to choose retry or close.
Click to expand...
Click to collapse
Exactly, those are my experiences as well when on wifi with cell data not explicitly turned off.
UPDATE: Turns out that when factory resetting, the market app when first run works perfectly (doesn't try to activate cell data when on wifi). The problem is that the market app auto-updates to a version that has this problem.
Here's hoping for a fix soon. Thankfully Juice Defender gives me an automatic way to handle the cell data issue since when it detects it's on wifi, it turns off cell data so I don't have to.
Update
I posted an update in the original post. It seems Launcher Pro was the culprit.

[Q] Wifi keeps reconnecting

My S4 keeps reconnecting to my wifi for some reason. I get the toast notification saying "Connected to <SSID>" that will sometimes pop up every 5-30 seconds, but it never goes more than 30 minutes without doing it. My router is an Asus RT-AC66U. I've tried forcing 2.4Ghz only, 5Ghz only, changing the preamble (short, long, auto), changing the channel (manually specifying each channel, and also tried auto), and even manually assigning an IP address on the phone. None of these things help.
I have "check for internet service" under the advanced wifi options disabled, and also have it set to keep wifi on during sleep.
The phone shows Very Good signal quality. Using wifi analyzer shows a signal strength of between -45 to -68 db, depending on what room I'm in, so that's definitely not the issue. It even does it sitting in the same room as the router. No other devices have an issue, including my roommate's S3.
I can fix it by turning off wifi power save mode (*#0011#), but then my phone heats up quite a bit whenever I'm using it, and my battery drains at 10%/hour even when I'm not connected to wifi. So that's not really a solution.
Is there any other fix for this? It's a bit ridiculous. I'll load a webpage and it'll interrupt halfway through when it re-connects to wifi. Since it keeps reconnecting to wifi, it causes all the phone's connections to be re-initiated, and also seems to trigger Google Services to update the phone's location. This results in Google Services (NetworkLocationLocator) holding a wakelock for 1/3 of the time.
So it seems the problem was IPv6, specifically IPv6 that autoconfigures. All the wifi networks I typically use are dual stack IPv4/IPv6. What I'm guessing happens is that the phone doesn't wake up for some of the IPv6 broadcasts, and then the phone reconnects to fix this once it realizes it's out of sync. Turning off power save mode means it gets all these packets and doesn't have to reconnect.
So I fixed it by having Tasker disable IPv6 on wifi whenever it connects to a wifi network (it's re-enabled if you disable wifi or reboot). Run this as root:
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
I wonder if this is just a bug in the chipset, or if it's a driver issue that can be fixed in a later update.
I had the exact same issue with mine (same router) and solved it by disabling WMM APSD in the router settings. Wireless>professional tab>5GHz drop down box>Enable WMM APSD>Disable.
A guy in the other GS4 Q&A forum gave me this solution and I haven't had an issue with it since.
I have this same issue... so when my Wi-Fi is dropping like that, I disable the Wi-Fi power save mode by dialing *#0011# then pushing the menu button and selecting the Wi-Fi option from the pop-up, the psm button is there. Fixes it every time, doesn't stick thru a reboot tho.
Sent from my SPH-L720 using xda app-developers app
Ingenium13 said:
So it seems the problem was IPv6, specifically IPv6 that autoconfigures. All the wifi networks I typically use are dual stack IPv4/IPv6. What I'm guessing happens is that the phone doesn't wake up for some of the IPv6 broadcasts, and then the phone reconnects to fix this once it realizes it's out of sync. Turning off power save mode means it gets all these packets and doesn't have to reconnect.
So I fixed it by having Tasker disable IPv6 on wifi whenever it connects to a wifi network (it's re-enabled if you disable wifi or reboot). Run this as root:
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
I wonder if this is just a bug in the chipset, or if it's a driver issue that can be fixed in a later update.
Click to expand...
Click to collapse
Hello, I'm having the same problem but I'm new to Tasker and don't know where to put that command. Would you mind showing me how to implement it please? Thanks.
Edit: Nevermind, I think I figured it out.
S4 will not store setwork
I'm running SACS Custom 7.1 with Faux kernal, and since I update to 7.1 from v7, my phone doesn't save any wifi profiles I connect to. Another thing I've noticed is no image shows up when recieving a call, so I have no idea who is calling. I got a 3rd party caller id from the market to fix that, but still a strange issue.
I am experianced with phones, but haven't posed enough here to post in SACs page, so any ideas would be helpful.
I tried looking at settings from 3minit or XPOSED, but nothing has changed since V7, so I'm wondering where to look.
The wifi profile shows up in data/misc/wifi/wpa_supplicant.conf, but only the one I am connected to at the time. If i disconnect and reconnect I need to re-enter the password.
Not important but annoying.
Thanks for your help in advance, you guys are awesome!
ace1134 said:
I'm running SACS Custom 7.1 with Faux kernal, and since I update to 7.1 from v7, my phone doesn't save any wifi profiles I connect to. Another thing I've noticed is no image shows up when recieving a call, so I have no idea who is calling. I got a 3rd party caller id from the market to fix that, but still a strange issue.
I am experianced with phones, but haven't posed enough here to post in SACs page, so any ideas would be helpful.
I tried looking at settings from 3minit or XPOSED, but nothing has changed since V7, so I'm wondering where to look.
The wifi profile shows up in data/misc/wifi/wpa_supplicant.conf, but only the one I am connected to at the time. If i disconnect and reconnect I need to re-enter the password.
Not important but annoying.
Thanks for your help in advance, you guys are awesome!
Click to expand...
Click to collapse
Wifi issue is faux kernel flash a different kernel. A module from xpose is the culprit sorry I forgot which one was it. To solve all your problems just do a clean install of v7.1 and when doing that make sure you click stock kernel or flash a preferred kernel. I dont use xpose so I dont have that problem so its your choice if you want to use it just read like 10 pages from the thread to find your answer.
Sent from my SPH-L720 using xda app-developers app
bender beerman said:
I have this same issue... so when my Wi-Fi is dropping like that, I disable the Wi-Fi power save mode by dialing *#0011# then pushing the menu button and selecting the Wi-Fi option from the pop-up, the psm button is there. Fixes it every time, doesn't stick thru a reboot tho.
Sent from my SPH-L720 using xda app-developers app
Click to expand...
Click to collapse
I have to do this same thing and it works for me perfectly. A little bit of a hassle after reboots, but it works. I sent this to Samsung and they've opened a ticket on it (reportedly) to be addressed as they've had a lot of complaints about WiFi areas with multiple Access Points.

Wifi constantly turns on.

Constantly have wifi turning on.
Have not updated to KK and have just been bypassing the install. Not rooted or anything, completely stock. Started happening a week or so ago and my apps automatically update through google play. Is there any ideas?
I've checked/unchecked/rechecked every single option in wifi/data/network that may pertain to keeping the wifi on. None of them have worked and it still does it. Is there any way to figure out what app is ticking wifi on and off through a log file or anything?
See above,their problem was avast.
Stop auto update in market settings.
droijo said:
Constantly have wifi turning on.
Have not updated to KK and have just been bypassing the install. Not rooted or anything, completely stock. Started happening a week or so ago and my apps automatically update through google play. Is there any ideas?
I've checked/unchecked/rechecked every single option in wifi/data/network that may pertain to keeping the wifi on. None of them have worked and it still does it. Is there any way to figure out what app is ticking wifi on and off through a log file or anything?
Click to expand...
Click to collapse
Settings - WiFi - Advance - Untick Scanning Always available
Have checked/unchecked/rechecked and still does.
Check your GPS settings, set them to GPS only. If there's an app that use an active GPS for location services, and GPS is set to WiFi + GPS, it turns on the WiFi.
As for auto updating apps, you can disable that in Google Play's settings. (Which does mean you need to update them manually).

Wifi Not Working Correctly?

I tried searching and I have not found a solution yet. I'm running SHOstock-I with ktoonz kernel on android 4.4.2.
For some reason, my Wifi randomly disconnects from any currently connected wifi network. The first thing I try to do is to connect back to the wifi network (any available network), but it simply tries and says "Connection Failed". Next, I try to disable the wifi connectivity alltogether, but after I tap the toggle button it becomes "greyed-out" and I can't toggle it.. it just hangs. If I go back a step and then select wifi again, then I can try to disable it but the same thing just happens again.
If I reboot, then wifi works again.
Oddly enough, if I enable/disable teathering, then wifi starts to work again.
It seems I can't run Wifi for more than an hour without this issue happening. It seems to have just started doing this out of the blue. I suspect a full wipe would solve the issue but I'd rather not do that unless I have to. It usually takes me a while to get things back to normal after a wipe.
Any ideas?
Some solved the problem by unInstalling the Smart Wifi utility (for ATT and maybe other carriers too).
Read last 3 comments here: http://www.gottabemobile.com/2013/05/16/how-to-fix-samsung-galaxy-s4-wifi-problems/
horangeh said:
Some solved the problem by unInstalling the Smart Wifi utility (for ATT and maybe other carriers too).
Read last 3 comments here: http://www.gottabemobile.com/2013/05/16/how-to-fix-samsung-galaxy-s4-wifi-problems/
Click to expand...
Click to collapse
Thanks, but I don't have that app installed. I am positive this is not a router issue as well.
Everytime I wipe cache/delvik then the issue doesn't occur for a few days, which I think is odd. I also tried different kernels and the problem persisted.
Does anyone know if it's possible to confirm if this is a hardware issue? I doubt it...
Sent from my SAMSUNG-SGH-I337 using XDA Premium 4 mobile app
It is a good idea to turn off any 'connection optimizer' or 'wifi optimizer' application or setting, in short anything that decides what connection is selected based on available connections should be turned off. The most probable reason for the problem is badly programmed software.

Serious WiFI Issues

Hoping someone can help me
My S7 Edge WiFI connection is playing up. My phone is fine on data network but only when connected on WiFi (Have tried other networks too) it has some serious problems like,
- Whatsapp notifications not received unless I switch to data connection or open the app
- Trouble loading internet applications, they just hang randomly but if I switch to data then they load
I first noticed this when I switched over to SuperManROM, however I have since reflashed the previous ROM I was using and still have the same issues. I've tried custom kernels and stock kernels and no difference.
Is it simply a faulty WiFI chip in the S7 Edge or coudl it be something software related? An important point to mention is that for the SuperManROM I had to update the bootloader and Modem, but I did downgrade them again to see if there was any change
Please help
Having the same issues. Tried multiple Wifi networks, same issue. Shows I'm connected to it, but no throughput. Tested the same networks on my laptop with no issues.
I'm using SuperSU.
This happens to me too, but only when I enable power saving mode, could that be your issue?
Neorpowa said:
This happens to me too, but only when I enable power saving mode, could that be your issue?
Click to expand...
Click to collapse
Well I thought it fixed it, but it doesn't look like it did. Rebooting the phone to see if that helps
Update: even after a reboot no luck.
On cell data no issues. As soon as I connect to Wifi, I lose it.
Update 2: Had a system update available. Tried to install it, and after the phone rebooted it told me the update failed, but the Wifi works okay for the moment. Honestly no clue.
You guys got any VPN profiles installed or anything?
Settings - More Connection Settings -> VPN
Angularfocus said:
Well I thought it fixed it, but it doesn't look like it did. Rebooting the phone to see if that helps
Update: even after a reboot no luck.
On cell data no issues. As soon as I connect to Wifi, I lose it.
Update 2: Had a system update available. Tried to install it, and after the phone rebooted it told me the update failed, but the Wifi works okay for the moment. Honestly no clue.
Click to expand...
Click to collapse
Great to hear that the problem is fixed for now, hopefully the problem won't return!

Categories

Resources