Sleep mode and peripherals

Until now, I've always powered my iMac off every night. Having read various sources (including Apple itself) saying that it's best to just put it to sleep at night, I decided to give this a try. (Note: I am not asking for opinions on the benefits of putting the Mac to sleep versus powering down – that's a subject that has been widely covered.)


I have an Apple Bluetooth Wireless Keyboard, a Magic Trackpad and a La Cie desktop USB hard drive connected to the machine. I left them all switched on and just put the machine to sleep in the evening. However, when I got up the next morning, I found that the machine was awake – in fact, the internet radio player that I had stopped prior to putting it to sleep the previosu evening was playing away happily to itself. I tried putting it to sleep again the next evening? The following morning, no radio was playing, but the La Cie desktop HD was awake. It normally goes to sleep when the computer powers down or goes into sleep mode, so I assume the computer must have woken up at some point in order for the La Cie to be awake. Also, I noticed that the battery level on my Magic Trackpad seemed to have declined by about 8% overnight. I thought I had read somewhere that Apple wireless keyboards and trackpads will go into sleep/battery save mode when the Mac is asleep.


Can anyone explain what's going on here? I'd really like to be able to let the iMac sleep rather than shutting it down, but I need to know that it will go to sleep, my external HD will sleep, and the wireless keyboard and trackpad will not be eating up batteries all night long.


Thanks in advance!

iMac, Mac OS X (10.7.4), 21.5", 2.8 GHz i7 quad core, 16 GB

Posted on May 15, 2012 9:07 AM

Reply
8 replies

May 15, 2012 9:31 AM in response to robgrayson

Try these suggestions:

  • Make sure your computer’s sleep settings are set the way you want. In Energy Saver preferences, use the slider that controls the computer’s sleep.
  • Open Energy Saver preferences

    Other users may be waking your computer remotely to use its shared resources. If you don’t want this to happen, open Energy Saver preferences and deselect “Wake for network access.”

    Open Energy Saver preferences

    Bluetooth devices can wake your computer. If you don’t want a Bluetooth keyboard or mouse to be able to wake the computer, open Bluetooth preferences, click Advanced, and then deselect “Allow Bluetooth devices to wake this computer.”

    Open Bluetooth preferences

    Key presses and mouse or trackpad clicks can wake your computer. If your computer wakes when you’re not present, something may be pressing the mouse button or keyboard.

    Applications that access a disk can keep your computer from going to sleep. For example, iTunes accesses your disk to read the songs it plays, and DVD Player accesses the optical disc drive to play movies.

    People using shared services on your computer can prevent it from sleeping. For example, they may be using a printer connected to your computer or accessing shared files stored on it. In Sharing preferences, turn off any services you don’t need to use by deselecting the On checkbox next to the service.

    Open Sharing preferences

    • If Spotlight is indexing your hard disk, your computer won’t go to sleep. Click the Spotlight icon on the right side of the menu bar and check whether it says it’s indexing. Indexing your files can take several hours, depending on the number of files on your computer.
    • Malfunctioning USB, FireWire, or Thunderbolt devices may keep your computer from going to sleep. Disconnect your USBUSB, FireWire, and Thunderbolt devices and see if your computer goes to sleep. If it does, reconnect the devices one by one, until you find the one that’s malfunctioning. Contact that device’s manufacturer for more information.
    • Some PCI extension cards intentionally prevent a computer from going to sleep. Refer to the documentation that came with your card.

May 15, 2012 11:19 AM in response to robgrayson

I'm not sure what's waking your iMac during sleep mode. Don't know what apps you have that might be scheduled to wake up your iMac (e.g. Time Machine).


I have a Macbook Pro that I use the same kb and trackpad you have. Both devices in System Preferences/Bluetooth/Advance button have the box checked to allow the device to wake up my Macbook Pro. Both devices work all the time in doing so with no depletion of battery life. These checkboxes need to be checked in order to wake up your iMac assuming there is nothing else set to wake it up. I also close all applications and I don't have any USB drives connected before putting the laptop to sleep. I make sure my Mac Mini is not 'connected' in anyway to my Macbook Pro. The Pro sleeps all night and in the morning I click or press a keyboard key to wake it up. Works 100% of the time.

May 15, 2012 11:47 AM in response to keg55

I'm not sure what's waking your iMac during sleep mode. Don't know what apps you have that might be scheduled to wake up your iMac (e.g. Time Machine).

To my knowledge, there are no apps that should be waking my iMac up. Time Machine is overridden so that it only runs twice a day, at midday and 6pm. There's nothing else that I'm aware of.


I have a Macbook Pro that I use the same kb and trackpad you have. Both devices in System Preferences/Bluetooth/Advance button have the box checked to allow the device to wake up my Macbook Pro. Both devices work all the time in doing so with no depletion of battery life. These checkboxes need to be checked in order to wake up your iMac assuming there is nothing else set to wake it up.


I confirm that checkbox is checked for both devices.


I also close all applications and I don't have any USB drives connected before putting the laptop to sleep. I make sure my Mac Mini is not 'connected' in anyway to my Macbook Pro. The Pro sleeps all night and in the morning I click or press a keyboard key to wake it up. Works 100% of the time.


Hmm. So maybe it's the USB HD that is causing it to wake up. It shouldn't – it's supposed to just go to sleep when the computer goes to sleep, and that's what it appears to do if ever the computer goes to sleep during the day. Perhaps I should try switching it off overnight and see if that solves it.


Thanks for taking the time to reply.

May 16, 2012 4:11 AM in response to robgrayson

The mystery deepens. Yesterday evening I disconnected and switched off my external HD, shut down all extraneous apps and put the machine to sleep. When I got up this morning, lo and behold it was awake. The battery power on my keyboard was unchanged from yesterday evening, but the battery power on my trackpad was reported as having fallen from 46% to 44% overnight.


I've just checked the Energy Saver preferences, and I can confirm that the "Wake for network access" option is not selected. I'm not sure what else to try. Is there any way of telling what woke the machine up – e.g. some kind of system log?

May 16, 2012 4:24 AM in response to robgrayson

OK, so… In an attempt to answer my own question, I found the following terminal command that identifies wake events:


     syslog |grep -i "Wake reason"


This delivered the following result:


May 16 04:56:34 robsmac-3 kernel[0] <Debug>: Wake reason: EHC2


Apparently, the code "EHC2" indicates a UBS device. Rooting around in the console, I found the following entry listed at 04:56:34:


16/5/2012 4:56:34.000 AM kernel: The USB device HubDevice (Port 1 of Hub at 0xfa000000) may have caused a wake by issuing a remote wakeup (2)


Now, the only USB devices plugged into the iMac are a printer and two external HDs, all of which were switched off. So how can one of these devices have issued a remote wakeup?


Is there any way to determine more specifically exactly where the "remote wakeup" came from?

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.

Sleep mode and peripherals

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