software development for the
existentially challenged
Older | Newer Older | Newer
Solved my MacBookPro Not Sleeping Problem
comment share
Since I upgraded to 10.7, my MacBook Pro would only sleep when I did both of these:

  • Unplugged the power adapter
  • Selected Sleep from the Apple menu

It would not sleep when I shut the lid or selected Sleep with the adapter plugged in.

As it turns out, not sleeping is common among MBPs running 10.7. There appear to be a number of causes talked about on this Apple Support thread, but user jcarpio had the fix for my version of the problem.

In Terminal invoke the power manager settings utility:

start ) pmset -g

This is the output:

Active Profiles:
Battery Power  -1
AC Power  -1*
Currently in use:
 womp  1
 halfdim 1
 sms  1
 panicrestart 15
 gpuswitch 2
 hibernatefile /var/vm/sleepimage
 networkoversleep 0
 disksleep 10
 sleep  0 (imposed by 70, 30977)
 hibernatemode 3
 ttyskeepawake 1
 displaysleep 10
 acwake  0
 lidwake 1

The entry for sleep shows that 2 processes are preventing it: 70 and 30977. To find the owners excute:

start ) ps -ef | grep 70
    0    70     1   0  6Nov11 ??         0:01.26 /usr/libexec/InternetSharing
start ) ps -ef | grep 30977
    0 30977     1   0 11:06PM ??         0:26.89 /System/Library/CoreServices/backupd

I turned off Internet Sharing and stopped the current Time Machine Backup.
    
start ) pmset -g
Active Profiles:
Battery Power  -1
AC Power  -1*
Currently in use:
 womp  1
 halfdim 1
 sms  1
 panicrestart 15
 gpuswitch 2
 hibernatefile /var/vm/sleepimage
 networkoversleep 0
 disksleep 10
 sleep  0
 hibernatemode 3
 ttyskeepawake 1
 displaysleep 10
 acwake  0
 lidwake 1

Notice that "(imposed by ...)" is now gone. Now the laptop sleeps when I close the lid again. No more smoking hot laptop!

0 comments:

Post a Comment

What is this site?!

t (a professional software developer for a big company) writes about software development and stuff. Unix, Java, Groovy, OS X, and lots of open source libraries and tools.