I'm having quite an annoying problem with my imac: After I tell it to go to sleep, it wakes back up approximately 5s later. I've taken the following steps to try and diagnose the problem:
- disconnected all external usb/firewire devices, except for the keyboard.
- Turned off firewire.
- Turned off wifi
and none of these has been the culprit, my iMac still wakes up from sleep by itself.
googling around, I've found a way to find the wake reason:
$ syslog |grep -i "Wake reason" Jul 14 12:44:04 paul-sanwalds-mac-mini-2 kernel <Debug>: Wake reason: EHC2
Googling this error, it suggests that USB or possibly bluetooth is the problem, but again, I have disconnected all USB/firewire devices except for the keyboard, and turned off bluetooth.
How do I investigate this further?
Just in case it's interesting, I've included the output of pmset also
$ pmset -g assertions 7/14/12 12:52:22 PM EDT Assertion status system-wide: PreventUserIdleDisplaySleep 0 CPUBoundAssertion 0 DisableInflow 0 ChargeInhibit 0 PreventSystemSleep 0 PreventUserIdleSystemSleep 0 ExternalMedia 0 DisableLowPowerBatteryWarnings 0 EnableIdleSleep 1 NoRealPowerSources_debug 0 UserIsActive 0 ApplePushServiceTask 0