Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

"Sudden sleep" issue with Macbook Pro & Lion

Hi everyone,


I have a 2010 MacBook Pro. I have just upgraded to Lion and it seems to have acquired a major glitch. It suddenly it goes to sleep at random moments. I can't quite work out what the trigger might be at the moment, but doubtless over time it will become clearer. Is this a known bug? If so are there any fixes for it?


Thanks!


Dan

MacBook Pro, Mac OS X (10.7.3)

Posted on Apr 9, 2012 3:55 AM

Reply
10 replies

Apr 10, 2012 5:06 AM in response to Linc Davis

Hi, thanks for the response. However it doesn't seem to have fixed the problem. From what I can tell, the screen goes to sleep at regular half hour intervals - which is when I have set it to in System Preferences. However it doesn't wait for half an hour of inactivity to elapse, it simply sleeps regardless of what I'm doing. So I could be in the middle typing something, or watching something, and pop - off it goes. I suspect it's a bug, but I'm not sure what the fix might me. Thanks again!

Apr 10, 2012 8:13 AM in response to Linc Davis

Hi Linc,


I apologise if I was unclear in my original post - the fact was I was having trouble spotting a pattern at first, all I knew was that it was behaving oddly and I was slightly alarmed by that. However after spending a whole day working solidly on it I was able to ascertain the half-hourly thing.


Also, my further error was in reporting it going to "display sleep" - in actual fact it was kicking into screen saver. So, I took your advice, and I set the screen saver to 3 mins... and sure enough the screen saver started up in the middle of me doing something.


As a workaround, I am happy to disable the screen saver, and just rely on the display sleeping (which doesn't seem to activate in the same uninvited way) but that's not ideal in the long run. It would seem that the screen saver was set to default since upgrading to Lion - as have certain other functions, which are a little irksome but I can live with it.

So, again, sorry for beating around the bush, thanks for your help, and any further thoughts and fixes would be welcome!

Apr 10, 2012 12:54 PM in response to DHaythorn

OK, so now the issue is that the screen saver is engaging regardless of input activity.


Please read this whole message before doing anything.


This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.


Step 1


The purpose of this step is to determine whether the problem is localized to your user account.


Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.


While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.


While logged in as Guest, set the screen saver to engage on a short timeout. Test. Same problem?


After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.


Note: If you’ve activated “Find My Mac” or FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. Create a new account in which to test, and delete it, including its home folder, after testing.


Step 2


The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.


Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:


  • Be sure your Mac is shut down.
  • Press the power button.
  • Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
  • Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).


Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.


The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.


Test while in safe mode. Same problem?


After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

Apr 13, 2012 4:37 AM in response to Linc Davis

Hi there Linc,


Thanks for the info. I have undertaken both tests, and the results are:


1) Guest User Login - yes, screensaver activates during use when set to 3 mins.


2) Safe Mode - no, screensaver doesn't kick in, problem sseems to not occur.


NB: It might be worth noting that when I start up the computer, and it automatically lands on the login screen (ie my login + Guest user option) the screen saver kicks in then too, without me having even logged in!


The fact is that I am happy to set the screensaver to "Never", as this is what I've always done before - it was only because it was changed to default that I noticed the problem. However, I'd also happily try and solve the problem if you think it's easily solvable.


Thanks again,


Dan

Apr 13, 2012 5:56 AM in response to DHaythorn

Please read this whole message before doing anything.


This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.


Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.


These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.


Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.


Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.


Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.


Launch the Terminal application in any of the following ways:


☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)


☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.


☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Terminal in the page that opens.


When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” (without the quotes) and press return. You should then get a new line ending in a dollar sign.


Step 1


Copy or drag — do not type — the line below into the Terminal window, then press return:


kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'


Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.)


Step 2


Repeat with this line:


sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}'


This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.


Step 3


launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'


Step 4


ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null


Important: If you synchronize with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting.


Step 5


osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null


Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.


You can then quit Terminal.

"Sudden sleep" issue with Macbook Pro & Lion

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