Mac Not Going To Sleep

Unknown to me, my Mac wasn’t going to sleep anymore for several days or weeks, until I finally noticed it one weekend. NOT a good thing when the computer is on and stuck in a drawer!

Here’s how I finally found out what was keeping it awake.
Open Terminal and type: pmset -g
Look for the line that says “sleep” In my case it said sleep 0 (imposed by 1733) (Normally when everything is hunky-dory, it will just say sleep 0)

What that means, is that process ID 1733 was keeping my Mac from sleeping.
So grabbing that ID and sticking it into this command: ps -ef | grep -e 1733
Gave me this: 0 1733 1 0 8:39pm ?? 0:00.04 /usr/libexec/InternetSharing (It will also spit out a bunch of other stuff but you can see that this was the only relevent item that matched our ID of 1733.)

AHA! So internet sharing was to blame!
Since I don’t need it I have no idea why it was on, but there it was. Turning it off from the Sharing preference pane made my Mac a happy sleeper again.

Another way to see what is causing the hangup,
pmset -g assertions | grep -E "Listed| pid"

It will show you this
Listed by owning process:
pid 4944: [0x0000012c00001350] PreventSystemSleep named: “com.apple.InternetSharing”

Advertisement

2 Comments on “Mac Not Going To Sleep”

  1. My Macbook Pro 13″ will not sleep when the lip is open, only if I close the lid. I tried your command but no matter what I see “sleep 1″. Ran it after a failed sleep attempt (sleep time-out set to 1 minute) and after forcing it to sleep with the shortcut keys. In both cases I just see “sleep 1″.

    • McYukon says:

      If it will sleep when you close the lid, then the problem I described is different from yours.
      Go to System Preferences>Energy saver> and make sure “Computer sleep” isn’t set to Never.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.