Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have an early 2009 24" iMac. Lately, when in sleep mode it will occasionally wake up for around ten seconds with the screen off, then go back to sleep. Wake on LAN is turned off so I can't figure out why this is happening!

share|improve this question
    
Take a look inside Console.app which could reveal some helpful information. To open it press Cmd+Spacebar and enter "Console". When this happens again, select the last, then copy those by pressing Cmd+C and paste them here by pressing Cmd+V. –  user40276 Jan 24 '13 at 10:00

2 Answers 2

up vote 8 down vote accepted

There are a number of possible reasons, and the system actually logs the cause of each 'wake from sleep'.

Open a terminal and enter:

syslog | grep -i "wake reason"

This may take some time to return a result, but when it does, you should get a series of lines that look something like the following:

Jan 24 08:52:19 hostname kernel[0] : Wake reason: OHC1

Here are the possible 'Wake Reason' codes (lifted from OSXDaily)

  • OHC: stands for Open Host Controller, is usually USB or Firewire. If you see OHC1 or OHC2 it is almost certainly an external USB keyboard or mouse that has woken up the machine.
  • EHC: standing for Enhanced Host Controller, is another USB interface, but can also be wireless devices and bluetooth since they are also on the USB bus of a Mac.
  • USB: a USB device woke the machine up
  • LID0: this is literally the lid of your MacBook or MacBook Pro, when you open the lid the machine wakes up from sleep.
  • PWRB: PWRB stands for Power Button, which is the physical power button on your Mac
  • RTC: Real Time Clock Alarm, is generally from wake-on-demand services like when you schedule sleep and wake on a Mac via the Energy Saver control panel. It can also be from launchd setting, user applications, backups, and other scheduled events.

Happy hunting!

share|improve this answer
    
Thanks - I'll try these tonight and report! –  surfitscrollit Jan 24 '13 at 10:55
    
It was OHC, it turns out. It's very peculiar, as when I put it to sleep then press the keyboard to wake it, it shows EHC. So I assumed OHC referred to the bluetooth mouse, but switching that off didn't fix the problem. However, unplugging the keyboard fixed it. Not ideal having to unplug the keyboard each time but it's better than nothing. Thanks! –  surfitscrollit Jan 25 '13 at 9:13
    
Glad that this was of help to you. You might want to consider trying a different keyboard for a while to see if the problem persists. –  macaco Jan 28 '13 at 11:23
    
The only other one I have is a bluetooth one, but I'll give it a try :) –  surfitscrollit Jan 28 '13 at 11:26

A common reason for random wake-ups is network accesses.

If you go to System Preferences>Energy Saver, there you will see an option saying "Wake for network access". If this option is enabled, then your sleeping Mac will be able to wake-up for network accesses. For example, when you initiate a screen sharing from another Mac on your local network.

Anyway, this is all okay BUT when this option is enabled it's also documented on Apple's site that it will cause random wake-ups by just running the hard-drives but not starting up the screen; and it will go immediately back to sleep.

Also @macaco have putten it beautifully that you'll probably get a code for this reason.

share|improve this answer
    
Thanks - this describes the issue exactly. –  surfitscrollit Jan 25 '13 at 9:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.