WiFi Long time to connect - workaround - Nexus 5X Q&A, Help & Troubleshooting

My Nexus 5X takes around 22 seconds from enabling wifi to achieve a connection.
I think this is excessive, especially when my last Samsung phone only took 4 seconds.
I use Leandroid to control wifi switching, so have to wait until I can check for emails or browse the net. At times this can be very frustrating.
The issue was present running stock and my current custom ROM, latest Pure Nexus.
So it looks like the problem resides in the Google OS.
Does anybody else have this issue?
If so, you may be interested in a workaround that reduces the 22 seconds to around 4 seconds.
It involves opening wifi in settings and is best accomplished using an automation app. I use macrodroid with the following macro
T - Screen unlocked
A - Enable wifi, Launch Shortcut Settings shortcut, Wait Before Next Action 1 sec, Press Back Button
C - Wifi Disabled AND 06:00 - 23:00
The macro opens the wifi setting screen for 1 second before it is closed followed a few seconds later with wifi connected. The macro constraints ensure the macro is only run after Leandroid has switched off wifi and only during the daytime, but you can have different constraints.
I would prefer the issue is resolved by Google but for now can live with this workaround.

Nobody having the same issue!
Suggests this might be a fault with my phone rather than a software problem.
Please let me know your wifi connect times with the ROM you are using.
Thank you

I have the same problem however I don't care about it as much as you do. Unrooted nexus 5x user here. Sometimes it doesn't connect at all if I don't expand the WiFi in quick settings.

dhj49er said:
My Nexus 5X takes around 22 seconds from enabling wifi to achieve a connection.
I think this is excessive, especially when my last Samsung phone only took 4 seconds.
I use Leandroid to control wifi switching, so have to wait until I can check for emails or browse the net. At times this can be very frustrating.
The issue was present running stock and my current custom ROM, latest Pure Nexus.
So it looks like the problem resides in the Google OS.
Does anybody else have this issue?
If so, you may be interested in a workaround that reduces the 22 seconds to around 4 seconds.
It involves opening wifi in settings and is best accomplished using an automation app. I use macrodroid with the following macro
T - Screen unlocked
A - Enable wifi, Launch Shortcut Settings shortcut, Wait Before Next Action 1 sec, Press Back Button
C - Wifi Disabled AND 06:00 - 23:00
The macro opens the wifi setting screen for 1 second before it is closed followed a few seconds later with wifi connected. The macro constraints ensure the macro is only run after Leandroid has switched off wifi and only during the daytime, but you can have different constraints.
I would prefer the issue is resolved by Google but for now can live with this workaround.
Click to expand...
Click to collapse
I have this issue with my original and replacement 5X. No idea why it takes so long. I hope a mini bug fix will help it out when the new unicode update comes to us in the form of next weeks update.

balekoglu said:
I have the same problem however I don't care about it as much as you do. Unrooted nexus 5x user here. Sometimes it doesn't connect at all if I don't expand the WiFi in quick settings.
Click to expand...
Click to collapse
My stock 5X takes roughly 12 seconds to connect to Wi-Fi, so I started doing this. Expanding the Wi-Fi in QS drops the Wi-Fi connect lag to 4 seconds or less for me. Much better experience, yet still an annoyance that I have to do this.
Edit: To clarify, tapping Wi-Fi in Quick Settings causes a severe lag of 12 to 20 seconds before it connects to my home Wi-Fi. Expanding Wi-Fi in QS cuts that time to just 4 seconds which is normal for my other devices.
Sent from my Nexus 5X using Tapatalk

Related

[Q] Force WiFi to stay active when screen is off?

Hi everyone!
I'm using OpenDesire 4.0.4, and while it's more or less the perfect ROM for me, I'm getting a little annoyed at the WiFi. As the ROM is based on CyanogenMod, it has the same WiFi behaviour: When the screen turns off, the WiFi enters power saving mode, regardless of the apps that are active at the time, or the amount of traffic over WiFi at the time.
The problem here is that any application that's using WiFi pretty much just stops as soon as you turn the screen off.
1. Sipdroid during a call: Massive packet loss as soon as the screen turns off. You may hear a garble or two, but nothing intelligible.
2. SwiFTP and other FTP servers: Connecting to the FTP server and navigating to folders takes ages when the phone is in standby. Transferring files is more or less impossible (times out)... Everything's fine when the screen's on. If you transfer a big file and turn off the screen during the transfer, you basically pause the transer - turn the screen back on and the transfer goes back to full speed
3. Market: If you turn off the screen while a lot of apps are going to download, like after pressing "Update all" for a few apps, more often than not they'll just fail in the background.
Now, I could beg and ask the ROM developers (Kali for CyanogenMod on Desire, or AdamG for OpenDesire) to just change this behaviour, but it seems that most people are happy with the situation, as it causes the WiFi to use very little battery on standby... so I'm asking if anyone knows how I could change this myself. Is it even possible to do this at runtime without baking it into the ROM directly?
Or am I SOL until (or rather unless) AdamG or Kali takes pity on me?
I'd love to hear some input - hell, maybe I'm just doing it wrong ... Thanks in advance!
PS: Yes, my WiFi Sleep Policy is set to Never, and the Desire DOES stay connected when the screen is off. Just in a very low power mode...
-edit- Should have searched, sorry: http://forum.xda-developers.com/showthread.php?t=752856
-edit2- Looks like there really isn't a fix for this... Anyone found a way to completely disable PSP on the Desire/Nexus WiFi?
I'm on the same ROM as yourself. What value is your "screen-off lock screen delay" set to?
In my observations, the transfer in the state you mention still persists albeit at a very slow rate and the WiFi chip is certainly placed in the LOW power state, although on.
I'm unaware of any workaround but what I use myself when transferring bulk 1-7GB files through WiFi from my PC/Laptop, which is to change the value of the screen lock delay at screen off under Settings>OpenDesire>User Interface>(last option) to a high figure, like 10-30m, depending on how long I'm expecting the transfer to take. It's a trade-off but you'll still save over 95% of the power since your screen is off but the WiFi/SD/CPU remain working as when the screen is on. Maybe you've tried this already?
-----------------------------------
- Sent via my HTC Desire -
That's not a bad idea... brb testing .
-edit- Didn't work
As soon as the screen times out, my transfer speed drops to nearly 0 - even with the lock delay set to 30m... :'(
OK, that's confusing. I'll be back by tonight or morning... I have much testing to do on this since for sub-20mins, my connection runs plus 200Kbps according to the PowerTutor log in such a state. Usually it would drop to 0.3-8Kbps when the screen switched off.
-----------------------------------
- Sent via my HTC Desire -
th3 said:
OK, that's confusing. I'll be back by tonight or morning... I have much testing to do on this since for sub-20mins, my connection runs plus 200Kbps according to the PowerTutor log in such a state. Usually it would drop to 0.3-8Kbps when the screen switched off.
-----------------------------------
- Sent via my HTC Desire -
Click to expand...
Click to collapse
Mine drops to practically 0. So low that due to overhead, FTP transfers pretty much stop completely...
I've seen that the linked kernel module provides a temporary workaround for you guys now. During the course of my testing your concern I basically found my WiFi module isn't ever turning off nor switching any connections off - it's always awake and can always transfer some data. Even in the LOW state it is connected at 24Mbps. Whatever I did I couldn't change this behavior on 4.0.4. Time for another wipe...
OD has many user preferred options baked in working fine alongside the conventional options so it'd probably be best suited for a toggle of this feature to be implemented for you guys (if at all possible). Not sure if that WiFi module power state behaviour is write-able and changeable on-the-fly before a reboot, should be, as it's only changing a hardware state.
-----------------------------------
- Sent via my HTC Desire -
The new Wifi module is working perfectly here. No more performance problems, and my power consumption has actually gone DOWN. Probably because I have a bunch of connected apps running in the background and PSP is very inefficient for that.
Also, the delays in Chrome To Phone and Appbrain web installs are gone...
I'm loving this fix...

Here's my workaround for the annoying WiFi battery drain bug on CM10.1

This is no longer needed! The bug is fixed with the new quattrimus and the Wind kernels... and probably an upcoming official one as well. 3-30-13
This is for those of you on CM10.1 (or ROMs based on it) who use wifi and need a way to work around the Wifi battery draining bug. If you didn't know, the wifi bug will cause your device to lose power at at rate of 6-10% per hour while just sitting idle with wifi turned on. This is aggravating for those of us who use wifi a lot and are used to just leaving it on because normally wifi uses LESS power than other connections!
I was formerly using DS Battery Saver or Green Power to toggle my connections, but I like the following method better because it is a bit smarter (you'll see what I mean). Also, sometimes those connection toggler apps would screw up my autosyncing and messages wouldn't show up for hours.
I tried the wifi timeout hack, which kind of sucked because wifi still stayed on in areas with no wifi.
After trying a ton of apps and combinations of apps, I've found a solution that works pretty well. Here it is:
1) Install the app "Better Wifi On/Off" by Sven Knispel
2) Open it up and hit the settings button. Put a check on "Expert Mode", then back out of the settings and go back in.
3) Place check marks next to the following settings options only:
- Enable when user turns wifi on
- Start on boot
- On when screen unlocked
- On when plugged in
- Only if connected
- If wakelock is held
- If network activity
- If plugged in
- Off when unplugged
- Off when screen off
4) Now find the option marked 'Delay - Time to wait before checking Wifi status' and set it to 10s. 0s may also work well, but I haven't tested it.
5) Profit.
*If you have problems with the program stopping, you can go back into Settings and put a check on 'Run as foreground service'.
**The program has a widget you can add to a homescreen so you can quickly disable/enable it if you have to.
With this setup, Wifi simply turns on when I need it and automatically turns off when I don't. It checks for traffic and won't kill the connection until your download or stream is done. It checks for access points, and if there are none available it turns wifi off... something that DSBS and other similar apps don't do all that well.
I'm getting battery life similar to if I had DSBS, Juice Defender or Green Power running- but I never lose autosync and nothing is ever delayed, because mobile data never turns off. I tested my hotspot function and it worked just fine with no interference.
Hope this helps until (if) we ever get a real fix for the wifi drain bug.
I'm not sure if I had something set wrong or it was an interaction with another program or something else, but I tried it and it locked up my phone hard. Not even the buttons light or feedback goes off but no screen. Had to use the hold power to reset.
I hope they're able to get the power issues taken care of in CM10. With the newer nightlies and the wind kernel it's honestly about as stable as CM9 for me. Power usage is my only major issue now.
SeriousGeorge said:
I'm not sure if I had something set wrong or it was an interaction with another program or something else, but I tried it and it locked up my phone hard. Not even the buttons light or feedback goes off but no screen. Had to use the hold power to reset.
I hope they're able to get the power issues taken care of in CM10. With the newer nightlies and the wind kernel it's honestly about as stable as CM9 for me. Power usage is my only major issue now.
Click to expand...
Click to collapse
Yeah it must have been something else at play- the above app doesn't really do anything unusual that would cause a hang. It's been doing well for me today- I've been using my phone pretty steady since 7am and I'm at 40% battery (now almost 4pm). I'm currently on miroslav_mm's CM10.1 build.

WI-Fi with screen off

Hi.
I don't have any problems like wifi dropping while browsing at my home, college or gf's house.
But when i turn off the screen after a while (can be 5 minutes or 30 minutes) my downloads stop (big games from the store, torrents,etc). They resume after i turn on the screen.
Also messages received from email and messengers are unpredictable. For example, while writing this post, i received a notification from hangouts on my N7 5 minutes after i received on my S3. Other times i only get the notification if i turn on the screen.
The battery status and wifi analyzer show me wifi was always on.
On wifi settings, keep wifi on during sleep option is always on, like i want.
This happens on 3 different locations with 3 different isp's.
This doesn't happen with my other 2 android devices.
Any ideas?
Thanks
Let us know if you figure it out.
Sent from my Nexus 7 using xda app-developers app
Did you read my post?
That option is always on like I wrote and highlighted in bold.
It seems that for a few minutes it ignores the option to keep wifi on. Any ideas?
Sounds like the N4 issue to me. Try one of the tips from this thread: http://forum.xda-developers.com/showthread.php?t=2072930

Frequent disconnects only on home wifi

Usually I can resolve my own issues, but this time I need some help.
My 360 disconnects from my phone often (about 20 times a day). Sometimes it will reconnect immediately, sometimes I have to toggle bluetooth, sometimes I have to reboot both phone and watch.
On one occasion, my phone forgot the watch all by itself, like it wasn't even there. I had to factory reset the watch in order to reconnect.
I've tested thoroughly and can confirm this is only happening while my phone is connected to my home wifi. While on data or other wifi networks (both 2.4 and 5 ghz bands), the issue is non-existent.
My phone (Moto X 2014) is running 5.1 stock and rooted. I greenify Facebook only. I use Tasker but do not have any wifi-specific profiles set.
The watch is running 5.1.1 and I'm using the latest Android Wear. I tried rolling back a few versions but no change.
My router is running the latest firmware (Verizon router provided with Fios), and I've tried broadcasting in different channels.
Kind of at my wits end, here. I would appreciate any suggestions. Thanks!
Well, it happened again last night - out of nowhere I received a pairing request from my watch. The phone had just forgotten it, and I wasn't able to re-pair without performing a reset of the watch.
Steps taken since then:
1. Set wifi to channel 1
2. Set wifi to 802.11/n
3. Uninstalled Wear Mini Launcher (provides notification when phone and watch disconnect... I suspect it might be causing issues)
I've been at work and connected to wifi for 2 hours, no problems. At home, I'd have disconnected twice by now.
Argh!
Hi
Did you sort this issue?
I've noticed it on my Moto 360/ Moto X 2014 as well.
When I connect both wifi and bluetooth and then disable Bluetooth my phone complains that Android Wear has disconnected and to tap the alert to reconnect, which I do but I'm not sure if it does anything.
Then I've noticed my watch will drop wifi connection every now and then but after a bit of messing around in the settings I found an option under Wifi settings/ Advanced called Power Save which I've adjusted to the longest time possible (180 minutes), it was previously set to 30 minutes and I'm guessing the watch was disconnecting from my Wifi network when it hit this.
I've only just done this though so I don't know if it'll solve the frequent disconnect issues, however i'll still have to reconnect the Watch after 180 minutes.

Anyone using Tasker in their Pixel?

I've been loving my pixel and the stock Android experience from an iPhone. Always heard about Tasker but never done into it. Any here use it? Able to share your most used profiles and tasks?
Sent from my Pixel 3 XL using Tapatalk
I'm actually a Pixel 2 XL owner but I do use Tasker.
I have several profiles that include:
- Turn WiFi on when I get home
- Turn off mobile data when on WiFi/re-enable when off WiFi
- Lots of file management (putting pictures/videos into the folders of my choosing)
- Turning Bluetooth off after a few minutes if nothing is connected to it
- Show or hide the mobile data icon in the status bar depending on its status
- Disable notifications and enter DND mode when in certain apps such as Google Maps or Instagram
To name a few lol.
I love Tasker, it's definitely my favourite app and the biggest reason it's worth owning an Android over iPhone in my opinion.
If you're new to it, I suggest Googling, a lot. That's how I got started and I've come a long way since!
I used Tasker until I got my pixel 3 XL, which is when I discovered this app called "MacroDroid". It does the same things as Tasker, but the interface is a lot more simpler and intuitive. You should check it out!
I have one that is suppose to automatically cut on my wifi when I range but it's not working. Guess I'll look online again thanks
rickysidhu_ said:
I'm actually a Pixel 2 XL owner but I do use Tasker.
I have several profiles that include:
- Turn WiFi on when I get home
- Turn off mobile data when on WiFi/re-enable when off WiFi
- Lots of file management (putting pictures/videos into the folders of my choosing)
- Turning Bluetooth off after a few minutes if nothing is connected to it
- Show or hide the mobile data icon in the status bar depending on its status
- Disable notifications and enter DND mode when in certain apps such as Google Maps or Instagram
To name a few lol.
I love Tasker, it's definitely my favourite app and the biggest reason it's worth owning an Android over iPhone in my opinion.
If you're new to it, I suggest Googling, a lot. That's how I got started and I've come a long way since!
Click to expand...
Click to collapse
Sent from my Pixel 3 XL using Tapatalk
I definitely will. Tasker is confusing
to me lol
alexenriquez said:
I used Tasker until I got my pixel 3 XL, which is when I discovered this app called "MacroDroid". It does the same things as Tasker, but the interface is a lot more simpler and intuitive. You should check it out!
Click to expand...
Click to collapse
Sent from my Pixel 3 XL using Tapatalk
I use Tasker on my 3XL.
Mainly it disables WIFI, turns off notifications, and starts my music app when I'm in my car, mutes my phone when in meetings, and disables notifications when I have headphones on or connected to my Bluetooth speakers.
I've used Tasker since my first Android device years and years ago. Mute ringer at work (calendar based), start/stop music when my BT headphones are connected/disconnected, change screen timeout for some apps (keep it on longer for ones I specify, 30 seconds for everything else), lock screen rotation in some apps and not others, etc.
It's a steep learning curve but once you get the hang of it you can do some pretty neat stuff.
I need a setting that puts my 3XL into HSPA+ instead of LTE while at work. I have LTE signal, but it's unusable due to others syncinc constantly. HSPA+ runs fine. I can't find an app that's able to do this. I can't even find a widget that will let me make this toggle quickly without rooting.
On this week's podcast...
https://twit.tv/shows/all-about-android/episodes/395?autostart=false
They talked about Tasker and things changing come January 1st...
.
It's a good show when they 'luck out' and get an honest to goodness developer to share thoughts.
I use it to automatically toggle Always On Display. Requires Secure Settings app and root. Basically I make sure it's off when I go to bed and on when the phone is docked in my car (when connected to my car's BT). Used to do a lot more but haven't really needed anything else.
Able to share how you disable wifi? I know theres in option in the settings to only connect to saved networks but it requires wifi scanning to be on. I set up a profile but I don't think it's working. Doesn't turn off my wifi when I leave my network
igknight said:
I use Tasker on my 3XL.
Mainly it disables WIFI, turns off notifications, and starts my music app when I'm in my car, mutes my phone when in meetings, and disables notifications when I have headphones on or connected to my Bluetooth speakers.
Click to expand...
Click to collapse
Sent from my Pixel 3 XL using Tapatalk
When you are in your task, click the PLUS to add an action, NET, then WiFi. You can then set it to ON, OFF, or TOGGLE.
Hope that helps.
Must have for an Android, my opinion.
Pixel phone or not. Tasker is in my opinion one of the must have android apps there. It is also one of the best. There can be a small learning curve for new users but once you are in it: oof! The possibilities even without root are amazing! I have been using Tasker since the Samsung Galaxy S3. I remember using the APK version downloaded in early years. But bought the paid some years ago. It is worth it. Seriously.
I have that. I have it set to OFF. Once I get to the main page I long press the task and select "move to exit". Maybe that's where I'm messing up at?
igknight said:
When you are in your task, click the PLUS to add an action, NET, then WiFi. You can then set it to ON, OFF, or TOGGLE.
Hope that helps.
Click to expand...
Click to collapse
Sent from my Pixel 3 XL using Tapatalk
Read some cool things you can do. Just have to find how to set them up
Aaditya91 said:
Pixel phone or not. Tasker is in my opinion one of the must have android apps there. It is also one of the best. There can be a small learning curve for new users but once you are in it: oof! The possibilities even without root are amazing! I have been using Tasker since the Samsung Galaxy S3. I remember using the APK version downloaded in early years. But bought the paid some years ago. It is worth it. Seriously.
Click to expand...
Click to collapse
Sent from my Pixel 3 XL using Tapatalk
I used to use Tasker for SO MUCH.
Biggest thing I did was that I had automated turning wifi on once I was "close" to home, then once it connected to wifi - turn on ringers, screen brightness, turn off gps, etc (and similarly for going to work).
It helped a LOT with battery back in the day to make sure that GPS was only on when I needed it.
But now I am trying to let android handle that GPS stuff. I noticed in our settings with Pixel / Pie that there isn't even a "battery saving" location mode anymore! You can still try to turn it on via Tasker (after you have given Tasker secure settings permissions) but I am not sure what it really does in that case.
Moving on from that situation, I still use tasker for simpler things such as "profiles" for at work and at home.
And screen rotation only on certain apps, etc.
A side note --- it seems that you really don't need ROOT for much at all anymore, as long as you are willing to hook up to a computer and do some ADB commands to get the secure settings permission, that's really it.
Anyone else have cool ideas to do with Tasker?
WiFi and location one you mentioned are what I want. Ha e the location one set you but need to grant permission. Need to get a cable to sync
finsmaniac02 said:
I used to use Tasker for SO MUCH.
Biggest thing I did was that I had automated turning wifi on once I was "close" to home, then once it connected to wifi - turn on ringers, screen brightness, turn off gps, etc (and similarly for going to work).
It helped a LOT with battery back in the day to make sure that GPS was only on when I needed it.
But now I am trying to let android handle that GPS stuff. I noticed in our settings with Pixel / Pie that there isn't even a "battery saving" location mode anymore! You can still try to turn it on via Tasker (after you have given Tasker secure settings permissions) but I am not sure what it really does in that case.
Moving on from that situation, I still use tasker for simpler things such as "profiles" for at work and at home.
And screen rotation only on certain apps, etc.
A side note --- it seems that you really don't need ROOT for much at all anymore, as long as you are willing to hook up to a computer and do some ADB commands to get the secure settings permission, that's really it.
Anyone else have cool ideas to do with Tasker?
Click to expand...
Click to collapse
Sent from my Pixel 3 XL using Tapatalk
yungskeeme01 said:
WiFi and location one you mentioned are what I want. Ha e the location one set you but need to grant permission. Need to get a cable to sync
Sent from my Pixel 3 XL using Tapatalk
Click to expand...
Click to collapse
Yeah you are correct, the location needs the secure settings permissions. It's real easy to do though.
Since we now only have location ON or OFF (not sure if that is from Pixel, or Android P)
- I don't know if it's worth messing with? (we used to have "High Accuracy (GPS and other connectivity on phone), "Battery Saving" (was cell tower locationing only), "GPS ONLY" (not sure why one would pick that and not the high accuracy)
Unless you want to flat out turn location off when not on GPS (I used to go between battery saving and high accuracy -- and it seems like tasker might let you force that still? I'm just not sure)
Also I think having wifi ON the whole time is really not a battery drain at all anymore.
I say this because I believe there is a bit of a battery drain to have tasker checking all of this stuff all of the time.
I could be incorrect though, hopefully someone clarifies if I am wrong on this.
thacounty said:
I need a setting that puts my 3XL into HSPA+ instead of LTE while at work. I have LTE signal, but it's unusable due to others syncinc constantly. HSPA+ runs fine. I can't find an app that's able to do this. I can't even find a widget that will let me make this toggle quickly without rooting.
Click to expand...
Click to collapse
I use 4G LTE Switch to stay in LTE at work, but I think HSPA+ is one of the options you can select to lock into.
https://play.google.com/store/apps/....myjio.volte.lte.jio.jio4gltewitcher&hl=en_US
I noticed a difference in battery life when I turned high accuracy off. Forgot I had it off when I used GPS the other day and it was still a accurate. May just leave it off for good
finsmaniac02 said:
Yeah you are correct, the location needs the secure settings permissions. It's real easy to do though.
Since we now only have location ON or OFF (not sure if that is from Pixel, or Android P)
- I don't know if it's worth messing with? (we used to have "High Accuracy (GPS and other connectivity on phone), "Battery Saving" (was cell tower locationing only), "GPS ONLY" (not sure why one would pick that and not the high accuracy)
Unless you want to flat out turn location off when not on GPS (I used to go between battery saving and high accuracy -- and it seems like tasker might let you force that still? I'm just not sure)
Also I think having wifi ON the whole time is really not a battery drain at all anymore.
I say this because I believe there is a bit of a battery drain to have tasker checking all of this stuff all of the time.
I could be incorrect though, hopefully someone clarifies if I am wrong on this.
Click to expand...
Click to collapse
Sent from my Pixel 3 XL using Tapatalk

Categories

Resources