Can 'Find My Mac' work while the computer is sleeping?

The problem is that that your iMac is not waking from sleep.

Several people have been affected by this and discussed this on discussions.apple.com in these two threads. Both threads have been opened recently and deal with the "Wake on network access" problem in Lion.

It's required for your Mac to wake up because it needs to build up a Wi-Fi connection. Your iMac disconnects from the Wi-Fi in sleep mode. But without a connection to a known Wi-Fi network, Find my Mac cannot locate your computer.

This is what the iCloud troubleshooting guide says:

Find My Mac can only locate your Mac if it is connected to an internet via a known Wi-Fi network. If your Mac is connected to the internet only by an ethernet cable, Find My Mac will not be able to locate your Mac.

Idea

Does your iMac support wake on Airport network access? Newer Macs can wake up on both Airport and Ethernet access. This is then called "wake on network access" instead of "wake on ethernet/airport access".

If you iMac supports waking on Airport access, disable your Ethernet port. Maybe this will force the iMac to stay connected to the Wi-Fi during sleep and the 'bug' will not occur then.

enter image description here


If the Mac is sleeping there is no way for iCloud to locate it and it appears offline.

However, as you noted, you can enable Wake for network access in energy preferences for it to periodically wake and check the network allow remote wake up using and AirPort.

When the Mac connects to iCloud next time, your commands (locate, lock, wipe, message/alert) are sent to it.

enter image description here


Yes it both can and is supposed to work while your mac sleeps, but it's far from perfect in several instances.


Apple has designed the hardware and software to let this specific and many other sorts of network accesses succeed even when a mac is sleeping to save energy.

This system relies on your Airport base station to proxy the incoming requests and wake up the mac when it detects and inbound request to locate, screen share, print to a shared printer or otherwise connect to the mac. Your AirPort doesn't sleep and is there to poke the mac and wake it up.

The two best articles to read up on this are:

  • Bonjour Sleep Proxy
  • Mac OS X v10.6: About Wake on Demand

In a nutshell, the mac will warn you if you have not set up the hardware to allow the router to wake it up on demand. This is also called "wake on lan" WOL and uses the concept of a "magic packet" that is broadcast to identify the specific machine that is being requested to wake up. Once the mac is set to actually listen for a wake up signal, then it communicates to the router about all of the services that it should be woken up for. This means the mac will wake from spell periodically to check in with the router to re-register as needing to be awoken.

As you can see - there are several components, so this isn't 100% perfectly reliable - if the router reboots while the mac is asleep, you will be unable to wake the mac up until it reaches its next timed interval to wake up and reregister. Also, problem networks and/or hardware can cause this to be less reliable, but I have been very happy with this for the past three years in several sites where I have this turned on.

Now - for the stolen mac situation, this is less useful than Find My Mac on an iOS device. First, the Wake on Demand does not succeed when a portable mac is not plugged in to power or an external display when the lid is shut. Second, the mac could be outside of WiFi access and unreachable. Third, the router where your mac might be sleeping (at a coffee shop for example) might not be an AirPort device or have the equivalent sleep proxy service enabled or even present. In those cases, your mac can not be located while sleeping. Until a data connection is added to a sleeping mac - the iOS devices will be far ahead in locating due to their near constant connection with the network when they are not powered off.


And at long last, many of my macs lost their registration some time between enabling this in Lion and upgrading to 10.7.3. I think the change to the Recovery HD might have caused the service to be looking for the old image and I am now in the practice of testing this monthly for important macs and just deleting and re-creating the Find My Mac registration after each software update that changes the core OS. Not knowing why they drop off, I'm trying to compensate and keep the system working by extra manual labor.