Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A possible fix for failure to sleep when inactive System
I recently purchased a 17" MacBook Pro and after I first started using it, it would sleep when inactive (as set in System Preferences » Energy Saver » Sleep ». Put the computer to sleep when it inactive for). After installing the applications I require, and playing with settings (I didn't use Migration Assistant from my previous PowerBook), I noticed that the laptop had become an insomniac. This same thing happened with my previous PowerBook and the one before that, but I didn't investigate it too much. But with my week-old MBP displaying the same behaviour, an investigation was warranted.

Sleep worked when booted up in Safe Boot. So using Terminal, I output all the running processes to a text file using top -l 1 > /Users/jj/Desktop/Processes.txt (-l being logging mode, and 1 being the number of samples) during Safe Boot, and then again after a normal boot and compared them. Note that I didn't have any login items set up from my account.

I narrowed it down to networking, as this is disabled in Safe Boot. Then I narrowed it down to AirPort. Turn AirPort off, all was OK. Initially I thought it was maybe slpd or ntpd. After killing processes and slowly getting to the answer, I decided to check Console output. In system.log, I found the following:
ICBM-266 kernel[0]: Stealth Mode connection attempt to
 UDP 192.168.0.101:3283 from 192.168.0.100:3283
...with .100 being my D-Link router and .101 being the MBP. So I disabled stealth mode in System Preferences » Sharing » Firewall » Advanced... » Enable Stealth Mode. (Port 3283 is net-assistant.)

I'm not sure yet why my router polls this every 20 seconds; that's the next step. But on initial investigation, I have found nothing. Maybe it's UPNP? In any event, now my computers happily count electric sheep.
    •    
  • Currently 3.50 / 5
  You rated: 5 / 5 (4 votes cast)
 
[13,054 views]  

A possible fix for failure to sleep when inactive | 10 comments | Create New Account
Click here to return to the 'A possible fix for failure to sleep when inactive' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A possible fix for failure to sleep when inactive
Authored by: wuf810 on Feb 14, '07 10:55:58AM

My MacBook has never gone to sleep when inactive whilst plugged into the mains. On battery its just fine!

I will however turn off Stealth mode and let you know what happens....

M.



[ Reply to This | # ]
A possible fix for failure to sleep when inactive
Authored by: wuf810 on Feb 14, '07 12:12:28PM

No change! Shame...was hoping this might be the answer.



[ Reply to This | # ]
A possible fix for failure to sleep when inactive
Authored by: JadeNB on Feb 23, '07 10:06:57AM

Of course, you know that the power management (including sleep) settings are set independently for plugged-in and battery operation, right? It's possible that your computer is just set not to sleep while plugged in.



[ Reply to This | # ]
A possible fix for failure to sleep when inactive
Authored by: JohnnyMnemonic on Feb 14, '07 12:25:50PM

My MBP will sometimes fail to sleep on lid close; other times it works fine.

I find that the behavior will change on a reboot.

I haven't been able to narrow down the cause, however, and my stealth mode is already off.

I suspect that is has something to with power connection and lid-close timing, or how peripherals are disconnected.



[ Reply to This | # ]
A possible fix for failure to sleep when inactive
Authored by: kainewynd2 on Feb 14, '07 03:02:45PM

We recently came across this with a user on a 17" MBP. It turned out that Bluetooth was waking the machine up... even though it wasn't set to wake the computer in System Preferences. We disabled BlueTooth and the machine has been sleeping fine ever since.



[ Reply to This | # ]
A possible fix for failure to sleep when inactive
Authored by: n1mie on Feb 14, '07 03:16:24PM

I have the same problem with the same experiences on reboot (had to do it today in fact). I really wish I had some idea how to fix it without a reboot (so time consuming). Another oddity I noticed today before the reboot was that exposé stopped working around the time I noticed that the sleep wasn't working. Don't know if there's a correlation or not ...

---
--Chip



[ Reply to This | # ]
A possible fix for failure to sleep when inactive
Authored by: jtoly on Feb 14, '07 12:42:43PM

Stealth mode is probably not the problem. You probably have Energy Saver "Options" set to "Wake for Ethernet network administrator access"

As to why your router is querying on that port is a different question. Since you're on a private IP address I'd guess your router is port forwarding the net-assistant to your MBP.



[ Reply to This | # ]
A possible fix for failure to sleep when inactive
Authored by: dino_p on Feb 14, '07 03:58:04PM

With all due respect, I would assume the author did check the energy saver control panel settings.
The "Wake on ethernet admin" settings only apply during sleep, when the machine is hooked up via ethernet. Thus, I don't think this prevents the MBP from sleeping.
However, I noticed in my system logs that my netgear router also sends such UDP packets. Looks kinda like a port scan... no idea why it's doing that. I also couldn't turn that off on the router.
Ironically, I understood the "Enable Stealth Mode" the other way around: when turned on, the computer just ignores uninvited network packets; when it's turned off, it might actually respond to some. Still, I don't see why this should affect sleep.



[ Reply to This | # ]
A possible fix for failure to sleep when inactive
Authored by: JayJay1974 on Feb 14, '07 05:32:44PM

Yes dino p, you're right, I did check these setting and yes you are right about the "Wake on ethernet admin" settings only applying during sleep.
But as far as I know, the stealth mode DOES respond to uninvited network packets, but only internally, say, to Console.app.
Stealth mode does not reply externally from you computer to the outside world.
If stealth mode is off, packets get rejected and sent back to the originator saying, for example, port XXXX is not open.



[ Reply to This | # ]
USB an issue?
Authored by: yergnov on Feb 15, '07 07:08:27AM

My iMac has a similar problem and I have narrowed it down to USB keeping it awake. As soon as I unplug my peripherals it sleeps like normal. I am suspecting it is a mouse thing but am still narrowing...



[ Reply to This | # ]