Apple Event: May 7th at 7 am PT

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

Why does my iMac wake up immediatly after being put to sleep ?

My iMac 2011 wakes up immediatly after being put to sleep, except the first time after a restart.

I had the same problem with my iMac from 2007.

I've tried quitting all running applications, unplugging all cables except the keyboard and mouse, and of course I have "wake up when network activity is detected" turned off.

It never worked.


I've gathered the following informations in the Terminal:


syslog |grep -i "Wake reason ="

Last login: Mon Jan 30 13:57:22 on ttys002

SiPe-iMac-27-2011:~ SiPe$ syslog |grep -i "Wake reason ="

Tue Jan 24 09:08:34 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Tue Jan 24 12:31:19 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Tue Jan 24 17:05:36 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Wed Jan 25 13:21:01 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Thu Jan 26 09:48:48 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Thu Jan 26 10:30:30 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Thu Jan 26 15:24:24 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Thu Jan 26 16:56:51 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Fri Jan 27 01:11:11 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Fri Jan 27 01:13:02 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Fri Jan 27 01:22:39 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Fri Jan 27 15:52:47 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Sat Jan 28 08:57:52 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Sat Jan 28 13:10:36 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Sun Jan 29 04:17:59 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

Mon Jan 30 05:02:35 SiPe-iMac-27-2011 kernel[0] <Debug>: Wake reason = EHC1

SiPe-iMac-27-2011:~ SiPe$ pmset -g

Active Profiles:

AC Power -1*

Currently in use:

hibernatemode 0

halfdim 0

womp 0

sleep 15

powerbutton 1

disksleep 10

hibernatefile /var/vm/sleepimage

ttyskeepawake 1

autorestart 0

displaysleep 5

SiPe-iMac-27-2011:~ SiPe$

iMac, Mac OS X (10.6.8)

Posted on Jan 31, 2012 3:20 AM

Reply
13 replies

Jan 31, 2012 3:41 PM in response to Somolian

For starters do a smc and pram reset.


The wake reason codes can be found here. So for ECH:


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.


Don't know what else to suggest if you disconnected all additional devices. Are you using a apple keyboard and mouse or another brand?

Feb 1, 2012 4:51 AM in response to fane_j

SiPe-iMac-27-2011:~ SiPe$ ioreg -rn EHC1
+-o EHC1@1D,7  <class IOPCIDevice, id 0x1000001b2, registered, matched, a$
  | {
  |   "assigned-addresses" = <10ef008200000000006890a80000000000040000>
  |   "IOInterruptSpecifiers" = (<1600000007000000>)
  |   "AAPL,current-extra-in-sleep" = 2700
  |   "class-code" = <20030c00>
  |   "IODeviceMemory" = (({"address"=2828036096,"length"=1024}))
  |   "IOPowerManagement" = {"ChildrenPowerState"=2,"CurrentPowerState"=2$
  |   "subsystem-vendor-id" = <86800000>
  |   "built-in" = <00>
  |   "acpi-device" = "IOACPIPlatformDevice is not serializable"
  |   "AAPL,current-extra" = 2700
  |   "AAPL,device-internal" = 2
  |   "IOInterruptControllers" = ("io-apic-0")
  |   "name" = "pci8086,1c26"
  |   "vendor-id" = <86800000>
  |   "device-id" = <261c0000>
  |   "acpi-pmcap-offset" = 80
  |   "IOPCIResourced" = Yes
  |   "AAPL,current-available" = 2100
  |   "compatible" = <"pci8086,7270","pci8086,1c26","pciclass,0c0320">
  |   "AAPL,max-port-current-in-sleep" = 2100
  |   "USBBusNumber" = 253
  |   "locationID" = 18446744073659219968
  |   "acpi-path" = "IOACPIPlane:/_SB/PCI0@0/EHC1@1d0007"
  |   "subsystem-id" = <70720000>
  |   "revision-id" = <05000000>
  |   "pcidebug" = "0:29:7"
  |   "IOName" = "pci8086,1c26"
  |   "reg" = <00ef00000000000000000000000000000000000010ef00020000000000$
  | }
  | 
  +-o IOService  <class IOService, id 0x1000001f1, !registered, !matched,$
  +-o AppleUSBEHCI  <class AppleUSBEHCI, id 0x1000001f2, registered, matc$
    +-o EHCI Root Hub Simulation@1D,7  <class IOUSBRootHubDevice, id 0x10$
    | +-o AppleUSBHub  <class AppleUSBHub, id 0x100000211, registered, ma$
    | +-o IOUSBInterface@0  <class IOUSBInterface, id 0x100000213, !regis$
    +-o HubDevice@fd100000  <class IOUSBHubDevice, id 0x10000024f, regist$
    | +-o AppleUSBHub  <class AppleUSBHub, id 0x100000253, registered, ma$
    | +-o IOUSBInterface@0  <class IOUSBInterface, id 0x100000255, !regis$
    +-o Card Reader@fd110000  <class IOUSBDevice, id 0x100000277, registe$
    | +-o IOUSBCompositeDriver  <class IOUSBCompositeDriver, id 0x1000002$
    | +-o IOUSBInterface@0  <class IOUSBInterface, id 0x10000027b, regist$
    |   +-o com_apple_driver_AppleUSBCardReaderUMC  <class com_apple_driv$
    |     +-o IOSCSIPeripheralDeviceNub  <class IOSCSIPeripheralDeviceNub$
    |       +-o com_apple_driver_AppleUSBCardReaderSBC  <class com_apple_$
    |         +-o IOBlockStorageServices  <class IOBlockStorageServices, $
    |           +-o IOBlockStorageDriver  <class IOBlockStorageDriver, id$
    +-o Keyboard Hub@fd140000  <class IOUSBHubDevice, id 0x10000028f, reg$
    | +-o AppleUSBHub  <class AppleUSBHub, id 0x10000029d, registered, ma$
    | +-o IOUSBInterface@0  <class IOUSBInterface, id 0x10000029f, !regis$
    +-o Apple Keyboard@fd142000  <class IOUSBDevice, id 0x1000002b3, regi$
    | +-o IOUSBCompositeDriver  <class IOUSBCompositeDriver, id 0x1000002$
    | +-o IOUSBInterface@0  <class IOUSBInterface, id 0x1000002b6, regist$
    | | +-o AppleUSBHIDKeyboard  <class AppleUSBHIDKeyboard, id 0x1000002$
    | |   +-o IOHIDInterface  <class IOHIDInterface, id 0x1000002bb, regi$
    | |   | +-o AppleHIDKeyboardEventDriver  <class AppleHIDKeyboardEvent$
    | |   |   +-o IOHIDKeyboard  <class IOHIDKeyboard, id 0x1000002bf, re$
    | |   |   | +-o IOHIDSystem  <class IOHIDSystem, id 0x100000231, regi$
    | |   |   |   +-o IOHIDUserClient  <class IOHIDUserClient, id 0x10000$
    | |   |   |   +-o IOHIDParamUserClient  <class IOHIDParamUserClient, $
    | |   |   |   +-o IOHIDEventSystemUserClient  <class IOHIDEventSystem$
    | |   |   |   +-o IOHIDEventSystemUserClient  <class IOHIDEventSystem$
    | |   |   +-o IOHIDSystem  <class IOHIDSystem, id 0x100000231, regist$
    | |   |     +-o IOHIDUserClient  <class IOHIDUserClient, id 0x1000004$
    | |   |     +-o IOHIDParamUserClient  <class IOHIDParamUserClient, id$
    | |   |     +-o IOHIDEventSystemUserClient  <class IOHIDEventSystemUs$
    | |   |     +-o IOHIDEventSystemUserClient  <class IOHIDEventSystemUs$
    | |   +-o IOHIDLibUserClient  <class IOHIDLibUserClient, id 0x1000006$
    | +-o IOUSBInterface@1  <class IOUSBInterface, id 0x1000002b7, regist$
    | | +-o AppleUSBHIDKeyboard  <class AppleUSBHIDKeyboard, id 0x1000002$
    | |   +-o IOHIDInterface  <class IOHIDInterface, id 0x1000002c3, regi$
    | |   | +-o CMUSBDevice  <class com_orderedbytes_ControllerMate_drive$
    | |   |   +-o IOHIDConsumer  <class IOHIDConsumer, id 0x1000002c5, re$
    | |   |   | +-o IOHIDSystem  <class IOHIDSystem, id 0x100000231, regi$
    | |   |   |   +-o IOHIDUserClient  <class IOHIDUserClient, id 0x10000$
    | |   |   |   +-o IOHIDParamUserClient  <class IOHIDParamUserClient, $
    | |   |   |   +-o IOHIDEventSystemUserClient  <class IOHIDEventSystem$
    | |   |   |   +-o IOHIDEventSystemUserClient  <class IOHIDEventSystem$
    | |   |   +-o IOHIDSystem  <class IOHIDSystem, id 0x100000231, regist$
    | |   |   | +-o IOHIDUserClient  <class IOHIDUserClient, id 0x1000004$
    | |   |   | +-o IOHIDParamUserClient  <class IOHIDParamUserClient, id$
    | |   |   | +-o IOHIDEventSystemUserClient  <class IOHIDEventSystemUs$
    | |   |   | +-o IOHIDEventSystemUserClient  <class IOHIDEventSystemUs$
    | |   |   +-o CMUSBDevicesUserClient  <class com_orderedbytes_Control$
    | |   +-o IOHIDLibUserClient  <class IOHIDLibUserClient, id 0x1000006$
    | +-o IOUSBDeviceUserClientV2  <class IOUSBDeviceUserClientV2, id 0x1$
    | +-o IOUSBDeviceUserClientV2  <class IOUSBDeviceUserClientV2, id 0x1$
    +-o Apple Optical USB Mouse@fd143000  <class IOUSBDevice, id 0x100000$
    | +-o IOUSBCompositeDriver  <class IOUSBCompositeDriver, id 0x1000002$
    | +-o IOUSBInterface@0  <class IOUSBInterface, id 0x1000002ca, regist$
    | | +-o AppleHIDMouse  <class AppleHIDMouse, id 0x1000002cc, register$
    | |   +-o IOHIDInterface  <class IOHIDInterface, id 0x1000002cd, regi$
    | |   | +-o IOHIDEventDriver  <class IOHIDEventDriver, id 0x1000002ce$
    | |   |   +-o IOHIDPointing  <class IOHIDPointing, id 0x1000002d0, re$
    | |   |   | +-o IOHIDSystem  <class IOHIDSystem, id 0x100000231, regi$
    | |   |   |   +-o IOHIDUserClient  <class IOHIDUserClient, id 0x10000$
    | |   |   |   +-o IOHIDParamUserClient  <class IOHIDParamUserClient, $
    | |   |   |   +-o IOHIDEventSystemUserClient  <class IOHIDEventSystem$
    | |   |   |   +-o IOHIDEventSystemUserClient  <class IOHIDEventSystem$
    | |   |   +-o IOHIDSystem  <class IOHIDSystem, id 0x100000231, regist$
    | |   |     +-o IOHIDUserClient  <class IOHIDUserClient, id 0x1000004$
    | |   |     +-o IOHIDParamUserClient  <class IOHIDParamUserClient, id$
    | |   |     +-o IOHIDEventSystemUserClient  <class IOHIDEventSystemUs$
    | |   |     +-o IOHIDEventSystemUserClient  <class IOHIDEventSystemUs$
    | |   +-o IOHIDLibUserClient  <class IOHIDLibUserClient, id 0x1000006$
    | +-o IOUSBDeviceUserClientV2  <class IOUSBDeviceUserClientV2, id 0x1$
    +-o IR Receiver@fd120000  <class IOUSBDevice, id 0x10000041a, registe$
      +-o IOUSBCompositeDriver  <class IOUSBCompositeDriver, id 0x1000004$
      +-o IOUSBInterface@0  <class IOUSBInterface, id 0x10000041e, regist$
        +-o RBAIRDriver  <class RBAIRDriver, id 0x10000045b, registered, $

Feb 1, 2012 1:04 PM in response to Somolian

So it looks like EHC1 is an Intel USB controller, which is in charge of a card reader, a keyboard, an optical mouse, and an IR receiver. Since, as you uncovered, EHC1 seems to be the reason for the wake event, any one of those could be the insomniac.


I guess there isn't much you can do about the SDXC slot, so check one by one the other three. As suggested, try covering the Apple Remote receiver with a piece of paper (I shouldn't try tape directly over it, because you don't want to leave sticky residue there). Try disconnecting the mouse, then the keyboard. Remember, test them one by one, not all at once, to try to isolate which one is the problem.

Feb 1, 2012 1:24 PM in response to fane_j

I suspect the IR receiver.

Some time ago it stoped working with my old remote, I had to use Remote Buddy to get it to work again but the demo expired. Candelair's diagnostic told me that ControllerMate Helper was using the IR receiver but even after I quit it, computer still woke up.

I turned off the IRR with candelair, also unplugged the KB, then the mouse, still wakes up.

Feb 1, 2012 1:48 PM in response to Somolian

Somolian wrote:


I suspect the IR receiver.

Could be. Maybe it's defective, in which case i've no idea what to do. I don't know if it's possible to disconnect it physically, I guess you'll have to google that. But first, make sure there's no piece of software left behind by the apps you mentioned (I've haven't used or heard of any of them) which might want access to the IR port. This might be consistent with the behaviour you report, ie, that the Mac does go to sleep once, the first time after restarting.

Feb 1, 2012 1:52 PM in response to Somolian

Hang on...


version 1.9 of Candelair brings this change:


Fix: Now correctly handles sleep/wakeup of the Apple® IR Receiver on iMac 2011 models. Previously, the Apple® IR Receiver became unavailable on some of these machines after a sleep/wake cycle.


I uninstalled 1.7 and when I restarted the Mac, 1.9 was not yet installed, but it stays asleep and the remote works again, so I'll leave it like this.


Thanks for all the help.

Why does my iMac wake up immediatly after being put to sleep ?

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