(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



OS X wake from sleep network problems

2008/11/09



At Slow Firefox DNS Mac OS X Leopard I had written about a strange DNS issue with OS X and Firefox. That's gone away, but for some time now I've had a new problem: when I wake from sleep, it takes a long time before I can do any network access. Firefox and Safari just hang with spinning beach balls, ssh times out.. it looks like networking is dead.

It isn't dead though: I often leave an ssh session to other machines connected when I sleep briefly. Those sessions remail connected without problem. I just can't start new sessions.

Maddeningly, the problem would sometimes disappear entirely, only to reappear a day or so later. I thought that an Apple update or Firefox upgrade had fixed it.. but no, it came back again.

I thought it might be a DNS issue again, so I tried with hard IP addresses. No, those don't work either.

I've found plenty of similar complaints on the Net, but for wireless activity. This is happening to me with a hard Ethernet cable on en0 - I have Airport shut off most of the time. But.. Airport did give me a clue.

I noticed that when I happened to be using Airport, whether here or elsewhere, I wouldn't get the sleep problem. As I said, I usually have Airport shut off. I don't know why - I just don't like anything running if I'm not using it. So I usually have it shut off.

So what's happening here? Is OS X trying to use Airport for new connections even though I have it shut off? That might explain why existing connections are still fine. Here's another clue: If I turn Airport on and then shut it off, the hanging after sleep goes away for a while. That probably explains the supposedly random nature of this - I had probably turned on Airport for some reason. Maybe OS X just gets confused and thinks Airport is on unless it has been turned off recently?

I don't know. The obvious fix is to just leave Airport on. I suppose that's what I'll do.


;


Click here to add your comments





Sun Nov 9 16:58:42 2008: Subject: Sleeping Problems   badanov
http://www.freefirezone.org

My guess would be if you disable ACPI most of your sleep problems will disappear.

It has been my experience FreeBSD has an ongoing problem with ACPI



Sun Nov 9 17:13:37 2008: Subject:   TonyLawrence

gravatar
That's often been the suggestion for Wireless wake from sleep problems, yes.

But given the symptoms, I think just leaving Airport enabled is a bit less drastic. I have no other APCI related issues, so why should I disable something that is useful?





Mon Nov 10 07:29:19 2008: Subject:   jtimberman


I've been maddened by this just this evening, in fact. My Samba mounts from my Windows system caused all kinds of networking problems when I returned from sleep.

The issue only happens when I shut the lid. System "inactive" sleep hasn't been an issue. I too normally have ethernet connected and Airport off, since GigE is faster than 54G wifi :-). My main question, is Mac OS smart enough to actually honor the first device listed for even local network traffic (except specifically on the wifi)? I know it uses en0 for internet access.



Mon Nov 10 10:52:00 2008: Subject:   TonyLawrence

gravatar
I don't know. I'm still scratching around on this one.

networksetup -listnetworkserviceorder

says the expected things.



Mon Nov 10 16:18:03 2008: Subject:   jtimberman


I did more investigating after the samba + itunes issue pretty much hosed up the system this morning :(. I couldn't access the status bar or dock to switch workspaces or applications after resuming from sleep. Unfortunately I couldn't find any specific correlation to the issue, as it didn't occur again in testing. Steps:

0. Turn Airport on, connect to network via ethernet.
1. Boot system and login. Mounted shares are in my login items.
2. Put system to sleep and resume.
3. Open iTunes and play a song from the share, works ok.
4. netstat -an shows my connection to the server IP and port 445.
5. Put system to sleep and resume.
6. netstat -an shows the same client port in the samba connection.
7. iTunes resumes playing the song.

I then disabled Airport, rebooted and repeated with the same results. Everything works fine.

Next step if this occurs again is to keep an eye on system.log, I suppose. Maybe this would be a good starter for learning DTrace :-).



Mon Nov 10 16:25:53 2008: Subject:   TonyLawrence

gravatar
In Googling around, I found /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport

Try that with -I

No help for this issue..

Also wondering just where en0 etc. live.. not in /dev apparently.





Thu Nov 27 16:01:30 2008: Subject:   TonyLawrence

gravatar
Hmmm.. the wake from sleep hangs have started up again. Turning on Airport doesn't seem to help but unplugging en0 did seem to..

This is very confusing.


Auto FTP Manager



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



numly esn 37734-081109-294472-80
numly barcode

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - MacOSX
       - TCP/IP


Unix/Linux Consultants

Skills Tests

Guest Post Here








card_image






My Favorites

Change Congress