Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Internet connection not working after computer wakes up from sleep. OSX Lion

After upgrading to Lion, I noticed that my internet connection doesn't work when I wake my computer from sleep. I have to turn off the WiFi connection, turn it back on and it will work. I guess this is a glitch that will be fixed later on. Just wanted to point it out. I don't know if someone else is having the same problem? I am not very happy with the upgrade to Lion, things seem to be slower, I've had several freezes requiring to reboot. I guess Lion needed a little more twicking before release. Not worth the $29.99 price tag.

OSX 10.7 Lion-OTHER, Mac OS X (10.7)

Posted on Jul 23, 2011 2:41 PM

Reply
109 replies

Jan 19, 2012 9:42 AM in response to techtim89

I think we are not talking about the same bug. I am able to ping and ssh from a terminal. Even firefox works, but safari, mail, chrome, adium, irc dont. It means there is something weird in the network dns or something like that. Why firefox works ? I dont know but I think it's a good question and maybe support could have a look how firefox manage dns or network.

Jan 19, 2012 5:27 PM in response to trigrou

@trigrou, You're definitely correct that a lot of people are talking about different bugs. The bug you're talking about is with mDNSResponder. Terminal apps (ping, ssh, etc...) use the resolver libraries to look up IP addresses. It seems that most GUI apps use the mDNSResponder daemon to look up IP addresses. This is why some apps can work while some don't.


When you see the problem, try going to terminal and doing this:


sudo killall mDNSResponder


After that, GUI apps should work again. I'm not sure why Firefox doesn't have the same problem (except that it must use the resolver libraries instead of mDNSResponder).


BTW: I created an app to do the above command that I can run from the dock. If it helps, you can get it here: http://goo.gl/T7zle


-kai

Feb 20, 2012 7:17 AM in response to Y_NO

For what its worth, I have been having this problem with my 2011 MBA with Lion since I bought it. I upgraded to Mountain Lion Developer Preview and the problem is largely gone. Still see it once in a while but WIFI works much better. Also my airport with wireless N+G now works well with my laptop in my office. Before ML I had to have a second WIFI in my office due to the position of walls and size of the place.


I believe these issues are software, not hardware


FYI...

- ML does not support VMware fusion software (as host) or virtualbox

- I haven't found a way to reinstall Lion back on my MBA after upgrading to ML...the recovery USB launches a ML restore, NOT Lion. 😕 My fault for upgrading of course...


(edited for clarity)

Mar 5, 2012 6:15 AM in response to AB5000

If you want to autoconnect to a WiFi network after sleep you have to use no better encryption than WEP.


If you try anything higher in the securuty chain i.e. WPA, it will not connect automatically and you will have to manually connect.


I have tested this on a unibody 2010 MacBook Pro running 10.7.3. This was fine on the same hardware before Lion.


Before you go formatting, resetting and all the other tasks above, just try changing your router to WEP authentication (sometimes also called Shared Key or Legacy 802.1X) because that may well save you a lot of trouble.


As a result, this confirms this is a software issue and I can't for the life of me understand why Apple still don't have a fix for it when using WPA.


HTH!

Mar 5, 2012 6:30 AM in response to HappyFatty

Please stop posting this Miss Information. It is TOTALLY Incorrect, WRONG.

Thanks.

HappyFatty wrote:


If you want to autoconnect to a WiFi network after sleep you have to use no better encryption than WEP.


If you try anything higher in the securuty chain i.e. WPA, it will not connect automatically and you will have to manually connect.


I have tested this on a unibody 2010 MacBook Pro running 10.7.3. This was fine on the same hardware before Lion.


Before you go formatting, resetting and all the other tasks above, just try changing your router to WEP authentication (sometimes also called Shared Key or Legacy 802.1X) because that may well save you a lot of trouble.


As a result, this confirms this is a software issue and I can't for the life of me understand why Apple still don't have a fix for it when using WPA.


HTH!

Mar 5, 2012 6:33 AM in response to Shootist007

Please stop posting this Miss Information. It is TOTALLY Incorrect, WRONG.

Thanks.



Based on what?


I did the above and it worked.


Unless someone is planting images in my eyes and casting spells on my fingers I just presented facts - the result of physically testing on an actual device.


You however have presented nothing other than a bad attitude.


And my name isn't Miss Information.

Mar 5, 2012 7:00 AM in response to HappyFatty

To clarify:


This experience is across six different WiFi routers (Sky, Netgear (two models), Linksys, MiFi and Cisco) and five different machines (MacBook Pro Unibody, 2009 MacBook, Mini, iMac 21" and 27" in various chip configurations) so that is a pretty good sample IMHO.


I have not tried it with any Apple WiFi products.


So, if you are having issues reconnecting to WiFi after sleep, try what I say. It is not destructive and takes a couple of minutes. It may not work, but will save you hours based on other suggestions.

Mar 20, 2012 9:53 PM in response to andresg01

Thought I'd post my experiences with this problem, and what fixed it for me. My symptoms:


After every wake from sleep the network was unavailable to Safari, Mail etc, even though it looked like the network was up according to iStat Menus, Network Prefs etc. Using wired LAN.


After a couple of minutes, according to Hardware Growler, my IP address was released and re-acquired. After that, everything worked.


Killing mDNSResponder during the initial period got things working, although the IP address was still re-acquired after 2 or 3 minutes.


This problem started happening suddenly for me. Then I realised that I had been testing my Epson flatbed scanner with Lion and it was still turned on. It's connected via Firewire through a Firewire hub. Believe it or not, turning off the scanner cured the problem! This is 100% repeatable. Scanner on, no network after sleep. Scanner off, everything's fine.


Go figure!

Mar 20, 2012 10:25 PM in response to andresg01

I think I've found an easy workaround to "sometimes won't re-connect wifi after sleep".


I wake up by pressing the power button.


Previously I was waking up by hitting spacebar.


I have a 2010 iMac with the latest Lion and all updates. Don't use time-machine. Don't have wired connection. Do use a bluetooth mouse.


Apple, I hope you're listening, as this might be a clue. I also have a 2011 Air, which does not have this problem -unless I have bluetooth enabled.

Mar 20, 2012 10:53 PM in response to dizm

dizm wrote:


I think I've found an easy workaround to "sometimes won't re-connect wifi after sleep".


I wake up by pressing the power button.


Previously I was waking up by hitting spacebar.


I have a 2010 iMac with the latest Lion and all updates. Don't use time-machine. Don't have wired connection. Do use a bluetooth mouse.


Apple, I hope you're listening, as this might be a clue. I also have a 2011 Air, which does not have this problem -unless I have bluetooth enabled.

Mac's They just work, Sometimes and sometimes Not.

Mar 21, 2012 6:20 AM in response to AB5000

I've been having this problem from the beginning and have been commenting in this thread. I was finally able to resolve it by wiping and reinstalling OS X Lion entirely. This occured after I upgraded to ML beta for a bit, then wiped it and reinstalled Lion under it (restoring my files and aps through a timemachine backup)


Now it works without fail. I do think this is a software issue and not a hardware issue. Interesting to note that I had reinstalled OS X Lion before and it did not fix the issue. I do not know what was different this time...maybe some combination of the new install and some patches...just know its good to go now...


2011 13 inch MBA i7

Internet connection not working after computer wakes up from sleep. OSX Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.