Computer stays awake when shut (and sleeps when open)

I have always had my MacBook Pro (13-inch, 2010 model) automatically sleep when I close the lid, and then wake up when I open it again. A few weeks ago, my screen started going off suddenly (as if asleep) randomly during normal use of the computer. It could be as simple as browsing, or more complicated things like video or photo editing (although these problems were more rare). I thought little of it, until a few days ago, when the opposite started happening. I noticed the Apple logo would illuminate after I had shut the lid. After shutting the lid, it would first dim, as normal, but then come back on a few seconds later. I had to reopen and close it a number of times before it would sleep.


I've tried Googling responses, but all the results came up as people trying to turn off the feature where their Mac sleeps when the lid is closed, which I don't want to do.


This may or may not be related, but in the centre of my screen there has been for a while now what appears to be a darker spot (for lack of a better description. Possibly due to pressure against the screen or something similar.

MacBook Pro, Mac OS X (10.6.8)

Posted on Jul 2, 2011 1:16 PM

Reply
11 replies

Jul 2, 2011 1:41 PM in response to Zagorath

You have ttyskeepawake on.


"ttyskeepawake - prevent idle system sleep when any tty (e.g. remote login session) is ’active’. A tty is ’inactive’ only when its idle time exceeds the system sleep timer. (value = 0/1)"


It could be conflicting with another program, and preventing sleep.


Try turning it off:


sudo pmset -a ttyskeepawake 0


But I'm shooting in the dark. I'm not real sure on this one.


Couldn't hurt though.


In fact there was a member asking how to keep his screen awake when he closed the lid just today... I'm sure he'll swap with you! 😝

Jul 3, 2011 2:38 AM in response to AussieDJ

It seems to be a similar issue to that one, but I don't use LogMeIn. I have recently installed TeamViewer though, now that that comes to mind.

Haven't updated caffeine in a long time though. I doubt it's the issue. Is there anything to do with TeamViewer that could have caused a problem?


EDIT: Sorry I took so long to reply then. I'm away from home and on unreliable internet connections.

Jul 3, 2011 2:50 AM in response to AussieDJ

After that, if it STILL doesn't work. Please disconnect everything from the macbook pro, keyboards, mouse, HDD's, everything, as one of those may be the cause of sending a remote wakeup.


Also disconnect ethernet cables & turn off Airport & Bluetooth please.


I'm pretty sure you should find one of those causing your problem.


Otherwise, I'll keep digging.


ADD: Please also disable Caffeine.

Jul 4, 2011 12:51 PM in response to AussieDJ

Hey, sorry again for the late reply.

I'v tried that. Even tried shutting down every single application and restarting the computer. Turned off all sharing options, disabled Airport (Bluetooth already off). No cables were ever connected to it. The biggest issue is that as far as I can tell, no software change has really occured that could cause this result, unless it was caused as a result of a recent Mac OS X update.

Thanks for all your help so far though.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Computer stays awake when shut (and sleeps when open)

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