Wifi Connection Drops - HD2 Android Q&A, Help & Troubleshooting and Genera

Hello all,
I use a campus-wide wifi network (MAC registered, since the WPA2 Enterprise network requires the phone to keep inputting my password for credentials) while I'm at school, and sometimes the wifi network will drop and not reconnect.
For example, after a random period of standby time, when I turn on the phone and look at it, the wifi will still be happily connected with a proper DHCP-requested IP address, but all efforts at using ping or the Internet browser and so on will time-out.
As far as I can tell, calling reassociate() on the connection is not very effective, as I've tried applications that monitor the connection and try to reassociate().
The problem most often occurs when I leave campus and then come back on.
If I cycle wifi on and off, then the wireless will work again. However, this is annoying since sometimes push Gmail will not get sent in on time. This is also problematic for Voice, since that requires data, and if the phone thinks wifi works, it will not bother connecting to 3G/data to get Voice messages.
Any thoughts? Log-looking suggestions? I'm open to anything! Does anyone have this problem too? (I think my personal wifi router drops similarly so.)
InfX and I looked at the sleep states of the wifi and CPU performance in thread http://forum.xda-developers.com/showthread.php?t=950655 , but that seemed inconclusive (although it is slimly possible I am not building the kernel correctly).
Thanks muchly,
Jeff
Edit: I am using rafpigna's kernel on a Sense (imilka's mytouch 4g) build.

Related

new to wifi - quick question

sorry for the newb questions but couldn't find an answer searching and figured someone who knows would be able to give an answer easily
the question is, when in the office, sitting near my laptop (dell lat 620 w wifi) I connect my phone to the wifi network 'wfield1' and the display on the laptop turns green, and the phone shows the little antenna signifying wifi connectivity. ok- now does this mean
a) that all data sent/rec'd will not appear on cingulars bill?
b) will my works firewall (vpn) infringe upon my browsing (ie if I hit a blocked site will it say blocked on my phone?)
I originally thought it would but I turned wifi on and walked away from my laptop and realized that the wifi connection stayed on throughout the building so therefore it has nothing to do with my laptops connection to our vpn server then right?
if so, c) would I be able to use the phones wifi connection and then usb tether the phone to the laptop to browse on the laptop off the firewall and off cingulars rate charges? I have unlim anyway but keeping usage down seems worth the small step it takes to tether
hopefully I am at least a little accurate in my guesses and not way off wack. if anyone could drop some knowledge on me id appreciate it
Your phone's connection to WIFI has nothing to do with your laptop. It should connect to your WIFI router in your office. Your phone should display a different symbol on the top line of the LCD, rather than your regular "antenna" symbol.
You need to check the above before you can confirm if you are actually connected to your WIFI router.
When you are on WIFI, it is subjected to the same firewall regulations as your laptop
yes it changes from the normal "phone" antenna to the wifi icon, i do know that much.
however i'm still unsure of whether or not it is using routered data vs cingular data. i think it is using the wifi data because as i said it is showing the wifi symbol and not the E or G that shows up when connected to cingulars service
and i think i mispoke, i dont actually use the wifi on the laptop to connect to the internet. i need to dial up with a verizon card, and it connects that way, and also launches a VPN which i think is what regulates the internet usage.
i am less worried about the routers firewall than i am my (proxy?) servers abilty to record sights that i visit, ie the forums/ebay. if i visit those on wifi and my server could see that (not worried about the wifi router seeing it since i am in different offices a lot), i will just stick with using GPRS/EDGE. confusing? sorry
If it was using Cingular data, you would get a message that your phone is 'Connecting to Cingular GPRS' ..in which case you would be billed, you don't get billed for using wifi because you are NOT using cingulars network to connect to the internet, you are using your own.
after checking it again, it seems that i cannot get to the iinternet with the wifi alone. i turned off the phone and had wifi enabled and could not connet to the internet.
so normally, if it wasn't a work firewalled network, wifi will let you get to the internet without being charged via cingular. got it, thanks all
hey i was going to do wifi connection to my work laptop too till i decided its pointless cause im sitting right in front of the thing and if i actually walked away from it its going to be a decent distance and the wifi wouldnt connect anyway.
besides theres not a whole lot you can do with the connection other than read a web page or browse a network folder.

Wi-fi not working

After connecting to 3 different wireless connections and none of then working, I'm concluded that my wifi isn't working.
I go to settings and check wifi on, it finds the network, connects, but I lose my entire data connection for the duration wifi is turned on!
Is anyone else having this problem?
Sent from my Samsung Vibrant
I'm having the same issues with the wifi. I downloaded wifi analyzer to make sure I was on a good channel. Set it to the best channel and my signal strength is 100%. I will be able to connect for a little bit but for some reason it goes in and out, connection unsuccessful, yada yada yada. I messed with all the troubleshooting solutions for my router (dgl-4300) but nothing works. If anyone can reply with a fix or point me in the right direction, that would be greatly appreciated.
Same Issues
Any help is greatly appreciated. Data working fine when on 3G but Wifi = no data. Connection is fine, IP is fine.
UPDATE: It's working again on my home WIFI. Will have to see if it's just an "at work" issue. Hopefully IT can assist.
Same problem with Verizon MiFi
I have had ZERO problems connecting to the Linksys access points we have setup at my home and my office, but recently my work provided me with a Verizon MiFi (as well as an iPad - don't hate ) and I've had MANY issues trying to get my Vibrant to consistently connect to the MiFi.
My iPad, Motorola Droid, and Laptop have no issues connecting to the MiFi.
On my Vibrant I'm running the 2.1 stock ROM with root & the latest ClockWork recovery.
It will "connect" to the MiFi (I use quotes because I can't really tell - it AT LEAST receives an IP). But I'm unable to send and receive data. I can't even browse to the MiFi's internal configuration page .
To FINALLY get it to connect consistently I have to do some kind of random combo toggling the wifi off and back on and then turning the MiFi off and back on and it will EVENTUALLY connect and stay connected with data flowing freely.
I've customized my configuration a little bit on the MiFi so I'm going to reset it back to factory and not change the config to see if it makes a difference - because at lunch I was able to connect to my boss' MiFi with no problem. I'm thinking it may either be the phone or the mifi...
I've connected to about 10 different wireless networks with NO issues, at all. The connectivity is actually much better than my G1/Nexus.
HOWEVER, last night at a bar I was connected to their wifi, strong signal, but I was not able to use Data. I was in a very poor reception area for T-Mobile... don't think that could be an issue, bit the other places I use wi-fi that is not the case.
I just chalked it up as a fluke and moved on. Not sure what was wrong.
I had this happen to me today. I just rebooted and it went away. Toggling wifi didn't help, but I only tried it once. The phone reboots so quick I figured I'd give it a try.
I have set the phone up manually with static ip. Seems like its a problem with the dhcp.
robnil said:
I have set the phone up manually with static ip. Seems like its a problem with the dhcp.
Click to expand...
Click to collapse
I'm gonna try this.
Sent from my SGH-T959 using XDA App

Constantly receiving WiFi traffic - unstoppable

This is driving me insane!
When I have WiFi enabled at the office, my Samsung Galaxy Note (stock ICS, rooted) constantly receives incoming data and I haven't got a clue which setting, app or service is causing this.
SystemPanel registers a nonstop stream of incoming traffic at 8 to 10 Kbps.
TrafficStats shows an accumulation of Received data under Total WiFi, but can't seem to link it a particular app or service: after resetting the data, no processes appear but the incoming data keeps on growing.
All sync options are off, I've tried to kill every running app or service (one by one, all at once), I've tried to block all traffic using Droidwall. As soon as WiFi is enabled, the incoming stream is unstoppable. When switching to 3G, there's no incoming traffic.
But to make matters even more mysterious, I do not have this problem with my WiFi connection at home.
It only occurs at the office, only on WiFi and (as far as I know) only on my phone.
Any ideas?
This is simply because your wifi antenna still "hears" the data going trough the wireless network on wich you are connecter. Event if your phone doesn't asks for any data at the moment the traffic there is on the network will still be counted by the wifi chip on your phone.
It will be the same on any public network or if you have another phone or a computer connecter on the same wireless router and generating traffic.
Thanks for replying, John!
That sounds very plausible, but then I still have to figure out why only my phone is registering this traffic - maybe it's an ICS thing or brand specific?
And I'll try to 'reproduce' it at home by connecting a laptop at the same time.
I think that the above is correct. That may be default behavior.
Sent from my XT862 using xda app-developers app
Well, I've tried to connect several devices at once on my home WiFi network, but it did not reproduce the incoming traffic problem I experience at work.
There were a few incoming bytes registered, not nearly as much as the constant stream of 10 Kbps at the office network...
Your works wifi may be set up like that. Who Knows?
Sent from my XT862 using xda app-developers app
MrObvious said:
Your works wifi may be set up like that. Who Knows?
Click to expand...
Click to collapse
Well, our it-department certainly does not.
You're probably right that this is normal behavior. I'll just have to figure out which drains less battery under these circumstances, WiFi or 3G. Thanks anyway for replying.
I'm on the mobile app, but if you have GSM then just switch to 2g until you use it.
Sent from my xt862 using xda app-developers app
Djezpur said:
Well, I've tried to connect several devices at once on my home WiFi network, but it did not reproduce the incoming traffic problem I experience at work.
There were a few incoming bytes registered, not nearly as much as the constant stream of 10 Kbps at the office network...
Click to expand...
Click to collapse
About this, it is simply that at your office there is traffic on the network (download/upload) while at home simply having devices connected doesn't generate traffic or almost none. Start several dl on several devices (phone laptop) (guess 2-3 is enough, maybe even one but not sure, not en expert after all ) then you should notice signifficant traffic on your phone, I guess!
So interesting I find this thread because I have the exact same problem!!!!
How I noticed it...when I am at home I drop 1% battery on Wifi per hour. 10hours = 10% (sometimes less).
I go to work on the Wifi, I DONT USE ANYTHING ON THE PHONE and the battery is DRAINING LIKE CRAZY!!! 5%/h or more!!!
( I am in airplane mode in both place)
So I was thinking, WTF with this work wifi, i am not doing anything at all on it. Then I look at my wifi icon I have a constant RECEIVE icon. And I bet my phone does not go to sleep or something.
So why in the world my work wifi is draining my battery and the one at home is not. I will check tonight but I dont think I have traffic like this. I am registering 5-6kbytes/s for nothing. The explanation given above is hands-waving. I do not agree with it fully. YEs sure there are several pings and beacon emitted back and forth but i do not think it is enough to cause 5-6kbytes/sec . The wifi is not in Monitor mode and it only receives the packets destined to my phone.
This is madness!!!! BTW When I had a different kernel on back on ICS this behavior stopped. I will try to monitor again.
kalinusa said:
So interesting I find this thread because I have the exact same problem!!!!
(...)
This is madness!!!! BTW When I had a different kernel on back on ICS this behavior stopped. I will try to monitor again.
Click to expand...
Click to collapse
Hey kalinusa, did you find a solution to this problem?
I'm currently on the SpeedMod kernel, but that does not seem to make a difference to the 'office WiFi behavior' (so I keep my phone on mobile data).
I don't want to speak out of my ass, because I haven't a clue how the app works.
As far as I can guess SSH tunnel may help you. I would hope someone else could tell me I'm right, but I'm probably wrong.
I have had this same problem with two of my devices. The first is a Samsung Captivate with the last AOKP ICS build. The second is a Google Nexus 7 with AOKP's first Jelly Bean build (it happened when I had stock as well).
This only happens when I'm connected to WiFi at my university. The down arrow on the WiFi icon is ALWAYS on and it drains the battery. At home, I don't have these problems.
I emailed my university's IT department but I'm not sure if there's anything they can do. Anyone have any suggestions? Thanks.
I have exactly the same problem, but I think I found the reason which is causing it. I think that some of the routers are capable of the multicast over the wifi and then we can get a constant wifi traffic. I tested it at home, where I have enabled multicast over wifi and my phone wifi receiving the data all the time, even if it is in sleep. Now I'm in the office where we do not have such capable router with multicast over wifi and my phone wifi behavior is as expected. When I will be at home I will test it again with my router and with disabled multicast over wifi and hopefully it will solve this issue.
danielo said:
I have exactly the same problem, but I think I found the reason which is causing it. I think that some of the routers are capable of the multicast over the wifi and then we can get a constant wifi traffic. I tested it at home, where I have enabled multicast over wifi and my phone wifi receiving the data all the time, even if it is in sleep. Now I'm in the office where we do not have such capable router with multicast over wifi and my phone wifi behavior is as expected. When I will be at home I will test it again with my router and with disabled multicast over wifi and hopefully it will solve this issue.
Click to expand...
Click to collapse
More than multicasts it could be broadcasts, what are you reaceiving. For example if you don't use WINS server in Windows domain, all computers use broadcast to get IP address for a computer name (if you dont use DNS name, but that's another story). At home, where aren't many computers, there are very few broadcasts. But somewhere, where a large amount of computers is on the same network (not splitted to broadcast domais), number of broadcasts would dramatically increase
btw. if you connect a PC to the same network as your phone and stop ALL running applications (mainly instant messangers, web browsers, e-mail clients) you should see the same network bandwidth in use as on your cell phone.
More than multicasts it could be broadcasts, what are you reaceiving. For example if you don't use WINS server in Windows domain, all computers use broadcast to get IP address for a computer name (if you dont use DNS name, but that's another story). At home, where aren't many computers, there are very few broadcasts. But somewhere, where a large amount of computers is on the same network (not splitted to broadcast domais), number of broadcasts would dramatically increase
Click to expand...
Click to collapse
Interesting. Roughly how many devices would need to be on the same network, to see that kind of traffic load?
-- Sent from my TouchPad using Communities
post-mortem said:
Interesting. Roughly how many devices would need to be on the same network, to see that kind of traffic load?
-- Sent from my TouchPad using Communities
Click to expand...
Click to collapse
It depends on what you consier as network load. If you start a network monitor like Wireshark or MS Network monitor and even if there is one computer on the network, you wil see "some" traffic (from time to time a few network packets). To generate constant network load, you'll need a few dozens of computers. And it always depends on how the network is designed and what applications the computers run. If all computers connect to a server, the network load will be a lot lower than if the computers share resources among them.
Or you can design your network in such way, that you divide computers into segments, where computers can communicate only with computers in its segment (or with some distant servers). This way the network load will dramatically decrease, as computers from different segments would not interfere.
I currently only have one computer connected to my home network atm via wifi, and it keeps a constant broadcast going to my phone for some unknown reason. I thought it was my dlna server, so I shut that off, and it is still broadcasting _something_... Its causing quite a battery drain, and unfortunately I cant seem to find the root of the issue. I've trolled through my router settings -- multicasting isnt on -- so Im at a loss. =\
Spz0 said:
I currently only have one computer connected to my home network atm via wifi, and it keeps a constant broadcast going to my phone for some unknown reason. I thought it was my dlna server, so I shut that off, and it is still broadcasting _something_... Its causing quite a battery drain, and unfortunately I cant seem to find the root of the issue. I've trolled through my router settings -- multicasting isnt on -- so Im at a loss. =\
Click to expand...
Click to collapse
It can be caused also with the Media servers which runs on PC, also DHCP etc. It is not easy to eliminate all broadcast traffic and sadly our phones react at all that multicast packets.

will android switch to a better wifi if available?

Heyho, i currently have access to my wifi as well as to my neighbors network as my wifi gets weak while i am in the garden. I feel like android isnt awitching to my neighbors wifi automatically. Only when my wifi is completely gone, android will look for a new one.
I thought about making a task with tasker which looks for another wifi as soon as the current wifi strength goes below 25%.
Or is/should android do that aleady on its own?
Thanks
In wifi -> Advanced settings there's an option to avoid poor connection. I have no idea what it actually does, but give it a try.
I did the test with my router, which supports 2 frequencies.
Assuming both networks are saved in the phone, it connect automatically to the one with better signal or look for an alternative if signal is lost.
Thats what I mean, it will connect to the other WiFi if the connection is lost. But if the connection is crippled (bad) enough to not handle a music stream, but still "availabe" it will not switch to the other WiFi eventhough that other WiFi has 100% signal strength ?
I activated the "use wlan only if good strength available".. lets see how this works
I have multiple APs in my house and the only way I've ever got it to switch is by toggling wifi off and on (or loosing the first signal completely). This is an Android issue IINM, my GS2 and my N4 both have this issue.
I tried the "do not use weak WiFi".. didnt work.
zakazak said:
I tried the "do not use weak WiFi".. didnt work.
Click to expand...
Click to collapse
It has never worked for me either. Didn't work on my GSM GNex or with the N4.
I think it's how most WiFi clients work, otherwise if you were in the middle of 2 equal signals, it would spend more time disconnecting and reconnecting creating a DOS attack on the 2 AP's and leaving you with no data.
As for 2 home wireless routers, use the same SSID and authentication settings for both, and put one on channel 1 and the other on channel 11.
Make one a AP only (no router, no firewall, no dhcp server) and connect it to a client wired port on the first one. You can roam between them like people in large offices do.
or I try to make a tasker profile
if wifi strenght below 20% and another wifi is available with more than 30%, connect to that one.. then wait 5 minutes ?

Connecting to home wifi faster

First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
i cant see why you would choose 5ghz over 2.4ghz maybe thats the reason for your problem
5Ghz allows for faster throughput (more bandwidth available) - uses 80 mhz channels vs 20 mhz on the 2.4ghz.
I noticed the slow connection too. Seems if you open wifi settings, it connects immediately.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
Did you try changing the channel in your router?
Haven't tried changing the channel. Will report back after I get home after work.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
I can say that problem is with ROM.
It has very slow auto connection time.
To connect faster I am using:
- drop down notification menu - tap wifi menu where its possible to choose wifi's from that setting - just wait, as soon as it turns on wifi and actually starts to scan area it will auto connect faster than when you just turn on wifi and wait.
I confirm this behavior on XT1575 as well. It takes quite a long time to connect when i enable WiFi.
But if I enter the WiFi settings, it connects instantly.
And i think it's like this since Android 6. I don't recall having this issue on Android 5.
I can't say I've noticed any problems connecting to WiFi networks at home.
I'm running 6.0 stock (Feb 2016 security update) rooted to hell and back.
I have access to five different WiFi networks at home, and am registered to all five for convenience.
I use an app called Best WiFi to auto-connect to the strongest signal whenever my current signal drops below a user-configurable strength threshold.
Perhaps that's the reason I'm not feeling this issue?
https://play.google.com/store/apps/details?id=com.pintacdesign.bestwifi&hl=en
I've been using this app for years, since Android 4.0, and across four or five different devices now.
Edit - Before the inevitable questions. I live in a basement and have my own personal WiFi network down there. Upstairs, we have two network piping out of the office (2.4 GHz and an associated 5 GHz link). For the far side of the home, we have a WiFi extender that mirrors and extends those two signals coming from the office (2.4 GHz-Ext and 5 GHz-Ext).
My report:
Whether connecting to 2.4 Ghz (20/40 Mhz) or 5 Ghz (20/40/80 Mhz) the connectspeed is between 5-15 seconds if singlepressing on the wifitoggle. If longpressed it takes about 2-3 seconds. Either this is a problem with the rom or this is the intended behaviour in Marshmallow. But this was not the behaviour in Lollipop as far as I remember. Of course you could argue this a nonissue since longpressing the wifitoggle is the solution. However I would like singlepressing to behave the same since I use Gravitybox to hide the statusbar when pressing 2-state tiles.
Yeah this is a huge pain in the ass. I set up a WiFi shortcut on my home screen so I would start using WiFI more to save battery, but it takes so long for it to finally connect. I also have Tasker turn WiFi on in the morning when my alarm goes off, and it takes so long. It took a few seconds in Lollipop, and now it takes 10+ seconds in Marshmallow. It's ridiculous. Anyway there is no real fix except going into the settings or tapping the drop-down toggle multiple times, as others stated.
I notice the same thing too. Wifi takes long to connect on boot. When I go to connect wifi off, it always shows the routers in the previous area before showing what's in the current area. I turn wifi off when leaving home. I'll connect to a public router, but will still show my home router before showing any around me. I had a Galaxy S5 before and wifi connected right away.
Heaby said:
First my setup:
XT1572
TruPureXMM 2.6.3
frankenclark kernel 0.8
Is there anyway to connect to my homewifi faster? I've selected to only show 5ghz wifi networks and I'm only seeing two when I enable wifi yet it dosen't connect to my wifi for maybe 5-10 seconds. Is this a problem with the rom/kernel? I don't remember connecting being this slow when I was on stock 5.1.
If I can change connect speed through the rom/kernel that would be best. Otherwise is there an app that can do it?
Click to expand...
Click to collapse
First off, I am not sure if the OP is turning wifi on first when arriving at home and then seeing the delay, or if Wifi is already ON when you arrive home (EDIT: just reread OP and it appears you are turning it ON - see below), but I leave Wifi ON all the time and do not see any delay when I get home (I pull into my garage and my apps are already updating via my home wifi before I park my car).
There are various steps involved in "getting onto wifi" that don't just involve the client device (authentication to the access point; getting an available IP address from your AP or a separate router, and the stability/software quality of those devices, for example). but you may want to consider a few things to speed up the process at home regardless if Wifi is on, or you turn it on first:
1) go into "Saved Networks" in your wireless settings and "forget" any networks you don't need
2) make sure the device on your network issuing IP addresses (DHCP server software built into your router or AP, whichever you use - also make sure only ONE of the them is acting as DHCP server) has enough available IP's in its pool - better yet, assign the same IP to your MotoX's MAC address (set up a static IP in your routers LAN/DHCP settings if it has them so your MotoX gets the same IP every time)
3) while I agree with another poster about avoiding the 2.4 GHz for Wifi (congestion and more interference), even many 802.11n client radios today don't support 5GHz so keep that in mind if you shut down 2.4GHz in your home completely
4) Use WPA2 with PSK for authentication AND make sure your home SSID is being broadcast (not hidden, which they really aren't anyway with the right tools - A strong WPA2 PSK password is better security even if the world can see your SSID.
4) If you do turn Wifi On and Off, consider leaving it ON and see if that helps your connection time (I suspect it will If you are concerned about battery drain, you can disable wifi during sleep in wireless settings, but I don't have a battery issue with Wifi on 24/7. The Wifi radio beaconing for SSID's or even staying connected to an SSID in the background, when you're not using Wifi, is a very minimal power drain compared to having your screen brightness higher than you need (you can however turn off the annoying wifi network notification setting).
Hope this helps.
For those with this delay, are you running xposed with gravitybox? Tried disabling gravitybox? It maybe GB that's introducing the delay. Need feedback from those running stock.
If stock exhibits similar behavior then it's probably characteristic of the quick toggles in the moto x. The delay appears to be in the actual wifi connection phase, not acquiring ip. As once it actually connects, IP acquisition is almost instant. Toggling wifi off then on directly through settings is very fast, maybe 3-4 seconds.
I have a moto g lte (xt1045) on cm13 which takes about 5 seconds to connect after toggling wifi off then back on. The moto x takes a good 15 seconds.
ech1253 said:
First off, I am not sure if the OP is turning wifi on first when arriving at home and then seeing the delay, or if Wifi is already ON when you arrive home (EDIT: just reread OP and it appears you are turning it ON - see below), but I leave Wifi ON all the time and do not see any delay when I get home (I pull into my garage and my apps are already updating via my home wifi before I park my car).
There are various steps involved in "getting onto wifi" that don't just involve the client device (authentication to the access point; getting an available IP address from your AP or a separate router, and the stability/software quality of those devices, for example). but you may want to consider a few things to speed up the process at home regardless if Wifi is on, or you turn it on first:
1) go into "Saved Networks" in your wireless settings and "forget" any networks you don't need
2) make sure the device on your network issuing IP addresses (DHCP server software built into your router or AP, whichever you use - also make sure only ONE of the them is acting as DHCP server) has enough available IP's in its pool - better yet, assign the same IP to your MotoX's MAC address (set up a static IP in your routers LAN/DHCP settings if it has them so your MotoX gets the same IP every time)
3) while I agree with another poster about avoiding the 2.4 GHz for Wifi (congestion and more interference), even many 802.11n client radios today don't support 5GHz so keep that in mind if you shut down 2.4GHz in your home completely
4) Use WPA2 with PSK for authentication AND make sure your home SSID is being broadcast (not hidden, which they really aren't anyway with the right tools - A strong WPA2 PSK password is better security even if the world can see your SSID.
4) If you do turn Wifi On and Off, consider leaving it ON and see if that helps your connection time (I suspect it will If you are concerned about battery drain, you can disable wifi during sleep in wireless settings, but I don't have a battery issue with Wifi on 24/7. The Wifi radio beaconing for SSID's or even staying connected to an SSID in the background, when you're not using Wifi, is a very minimal power drain compared to having your screen brightness higher than you need (you can however turn off the annoying wifi network notification setting).
Hope this helps.
Click to expand...
Click to collapse
gpz1100 said:
For those with this delay, are you running xposed with gravitybox? Tried disabling gravitybox? It maybe GB that's introducing the delay. Need feedback from those running stock.
If stock exhibits similar behavior then it's probably characteristic of the quick toggles in the moto x. The delay appears to be in the actual wifi connection phase, not acquiring ip. As once it actually connects, IP acquisition is almost instant. Toggling wifi off then on directly through settings is very fast, maybe 3-4 seconds.
I have a moto g lte (xt1045) on cm13 which takes about 5 seconds to connect after toggling wifi off then back on. The moto x takes a good 15 seconds.
Click to expand...
Click to collapse
@ech1253: I've checked everything you suggested and you are right, having wifi on will make it connect almost instantly.
@gpz1100: I'm running xposed with gravitybox. Disabling gravitybox didn't change anything. I'd rather not uninstall xposed and/or go back to stock so if someone on stock without xposed could chime in that would be helpful.
It does it on stock android 6 for me and on a custom rom as well. Since day 1 with the moto x but at least wifi works just a long delay that no other android flagship from suffers from. :S
hexxor93 said:
It does it on stock android 6 for me and on a custom rom as well. Since day 1 with the moto x but at least wifi works just a long delay that no other android flagship from suffers from. :S
Click to expand...
Click to collapse
That's...not encouraging
Hopefully it's a softwarebug.

Categories

Resources