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

Resolving Apple TV 2 & 3 Home Sharing Issues

I see that there are many users reporting problems with home sharing.


Unfortunately the problems are there to stay home sharing is actually not functional in full in certain scenarios so I thought I would give a summary of my experience


First of all airplay and home sharing have nothing to do with each other so the fact you have issues with airplay or that airplay works does not warrant any behaviour for home sharing


My set up is as follows

Apple TV 3

iMac

Set of iOS devices iPhone 5/5s/6 iPad 3/Air

Netgear NightHawk 7000


I have the largest iTunes library on the iMac running the latest Mavericks OSX.


In general everything works fine when all devices are awake however the moment the iMac or AppleTV goes to sleep this start creating problems


For who does not know the Apple TV 2/3 has a functionality called bonjour sleep proxy, the AppleTV is always visible on the network and retains and IP address even when it is in sleep mode. The other devices like iMac or MacBooks instead may disconnect from the network and loose their IP going to sleep. So before going to sleep the register with the AppleTV so that the apple Tv can wake those up if needed.


This is the theory so if you then launch remote app or go onto the AppleTV menu and look for computers you should see the shared libraries.

But you don't!

In the remote app the library disappears and when you go into the AppleTVand press computer it starts loading it and then fails or even better tells you home sharing is not active on other devices


Solution:

There are two solution to the problem

1, Set the iMac or other computer power saving to never go to sleep. This is not eco friendly but means the network card stays on and so does the link to home sharing

2. Uss standard power saving settings and use an application like Moka WOL. Register your computer MAC address on this app. When you need your home library go into this app and wake up the sleeping computer. The link to computers will go back to working on the apple TV and all will be normal


I am sorry to say that home sharing just does not work because contrary to what apple says the apple tv (and the extreme routers) fail to wake up any sleeping devices with home sharing on the network although they are aware of the existence once those devices loose an IP address is basically dead end

AppleTv3-OTHER

Posted on Oct 11, 2014 2:01 AM

Reply
37 replies

Oct 11, 2014 7:38 AM in response to Interceptor121

FWIW, I have found that when my ATV 3 will not wake up the Mac I use as my primary iTunes library server & I just get the spinner & 'loading' message on the TV, if I hold down the Menu button to return to the home screen, wait a few seconds, & then select Computers again, usually (but unfortunately not always) that wakes the Mac.


Stranger still, sometimes when I am certain the Mac is sleeping, everything works exactly as it should -- the Mac wakes up immediately after selecting the Computers app & there is essentially no delay at all, no spinner, no message, & the Library content is immediately available. This can happen even if the Mac was the last thing selected before the ATV went to sleep, & after waking it up with the Computer app still selected, the large area at the top of the screen where a few of the Library's items normally show up are still empty & all I see there is the Apple TV logo thing.


I have no idea why I get such different results at different times. It doesn't seem to have anything to do with how long the ATV or the Mac has been asleep, or if the last app selected on the ATV was the Computer one or something else. It may have something to do with having another of my Mac's awake & its iTunes app open when I try to wake the other one & but the 'no wake' behavior is so erratic that may just be coincidental.


For reference, I am using a 2008 vintage white MacBook running OSX 10.6.8 as my primary iTunes server & a 2 TB Time Capsule as my router. I also have a 2012 iMac running OSX 10.9.5 on the network with its own iTunes Library. Both Macs are connected to the Time Capsule via wired ethernet but the ATV is connected via WiFi, as is a third iMac.

Oct 11, 2014 3:20 PM in response to Interceptor121

If my MacBook was switching off its circuitry that supports "wake on network access," I could not wake it from my other Macs -- but I can do that, regardless of how long it has been sleeping, even if has been over two days since I last tried to wake it. This is true whether it or the Mac that is waking it is on WiFi or ethernet.


It works in all respects just like is described in About Wake on Demand and Bonjour Sleep Proxy -- except that sometimes it does not work when it is the ATV that is trying to wake it.

Oct 11, 2014 8:04 PM in response to Interceptor121

A little more about how wake on LAN ("WoL") works can be found at http://en.wikipedia.org/wiki/Wake-on-LAN#Principle_of_operation. Like it says, a network card or its equivalent that implements WoL operates in a low power state, listening for the 'magic packet' containing its MAC address, & sends a signal to the host computer's power supply or associated circuitry to wake the computer. The host computer's power supply just needs to supply the tiny amount of power needed to run the WoL circuitry, in the same way it does to power the circuitry that allows a USB device or built-in keyboard or power button to wake a sleeping host.


So in that respect the power supply in a Mac or PC that supports these features is never completely off unless it is completely disconnected from all sources of power. Otherwise, none of the circuits that wake it would get the power they need to do that.

Oct 12, 2014 1:52 AM in response to R C-R

Wake on demand works when implemented with magic packets so if you have a software that sends them the Mac will wake up


bonjour sleep proxy and wake on demand instead don't work and once the device has switched off the network card it never comes back


what you are observing is not a succesful behaviour of sleep proxy but just of wake on demand


you need to consider three things

  1. Generally only MacBooks go to sleep switching off the network card and if you enable power nap they will for most be reachable anyway when they are they wake up this explains the random behaviour
  2. IMac dont have power nap and if you have the last OS X will go in deep sleep Magic packets that broadcast messages to all devices by MAC address will Wake them but this is not what the Apple TV does
  3. magic packets will always work for any adapter that supports wake on demand


The reason why the AppleTv fails to wake up devices in deep sleep is because if you look at the console the type of events that the Apple TV sends are not actually magic packets

when I send a magic packet the console reports a wake on lan


Instead when when the appletv sends a wake signal you get a real time clock wake but the machine never wakes from sleep except the power nap case


so in summary bonjour sleep proxy works in respect of keeping a record of the devices but with regards to waking them up seems like Apple devices with iOS (same problem occurs with iphone and iPad where remote app fails to wake a sleeping mac) seems to fail


For what concerns the Mac there is no reason why a wake from lam should translate in a real time clock alarm so the issue may well be with the interaction between iOS and OS X

Oct 12, 2014 3:44 AM in response to Interceptor121

Thanks to the mod to removing my post but here we go again

This is the initial situation with an Apple TV and home library is my iMac running Mavericks

User uploaded file


After sending the mac to sleep all devices disappear from remote

User uploaded file

If I go to the apple tv and click computers I get the message that home sharing is off...!

User uploaded file

the apple tv shows on the router map with an IP address whilst the iMac has disappeared

User uploaded file


Despite the iMac console reports that clients are requesting wake the iMac does not wake

Oct 12 10:34:30 iMac.local powerd[28] <Notice>: Clients requested wake events: [proc=mDNSResponder request=Maintenance inDelta=7198]

Oct 12 10:34:30 iMac.local powerd[28] <Notice>: PM scheduled RTC wake event: MaintenanceImmediate inDelta=7198.04


At this point i use moka wake on lan to wake up the sleeping iMac that reappears on the network


User uploaded file

The console output is correctly reporting the wake and recreating the iTunes server

Oct 12 10:39:30 iMac.local powerd[28] <Notice>: PID 28(powerd) Created InternalPreventSleep "Network wake delay proxy assertion" 00:00:00 id:0xe00002341 [System: DeclUser SRPrevSleep kCPU kDisp]

Oct 12 10:39:30 iMac.local powerd[28] <Notice>: DarkWake [CDN] due to ARPT/Network: Using AC

Oct 12 10:39:30 iMac.local powerd[28] <Notice>: PID 28(powerd) Created InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:00 id:0xe00002342 [System: DeclUser SRPrevSleep kCPU kDisp]

Oct 12 10:39:40 iMac.local powerd[28] <Notice>: PID 196(iTunes) Created NetworkClientActive "com.apple.iTunes.server" 00:00:00 id:0x1200002350 [System: DeclUser BGTask SRPrevSleep NetAcc kCPU kDisp]


At this point the screen of the Apple TV shows the items from home sharing in the thumbnails


User uploaded file


And browsing of home library is established

User uploaded file


In short wake on demand with bonjour proxy fails somewhere. The wake on demand is successful when using magic packets

I wonder why apple devices running iOS (apple tv and iphones/ipad) don't use magic packets instead of this weird real time clock trigger event that seems not to work

Oct 12, 2014 3:50 AM in response to Interceptor121

Interceptor121 wrote:


Wake on demand works when implemented with magic packets so if you have a software that sends them the Mac will wake up


bonjour sleep proxy and wake on demand instead don't work and once the device has switched off the network card it never comes back

I don't understand what you mean by this. The low power part of the network interface (what I think you are calling the "network card"?) on my MacBook is not switching off -- if it was, then I could not wake the MacBook from my other Macs because there is no other way for them to reach it besides over the network. So I since can do that, that circuitry can't be switching off.


Also, I don't understand what you mean about getting a "real time clock wake" in response to an ATV wake signal. Like the term suggests, RTC wakes are triggered by the realtime clock in the Mac. They occur for example when users set up a time-of-day wake schedule in Energy Saver preferences, or (like the Apple article I mentioned earlier says) periodically to maintain active shared service registrations with the Bonjour Sleep Proxy. (On my MacBook that occurs every two hours or so.)


Maybe I'm missing something, but every source I can find suggests that the Bonjour "Wake on demand" (Sleep Proxy) is just a supplement to the WoL (or WoWLAN) standard that provides support for on-demand services (like iTunes, iPhoto, printer, & file sharing services) & it is still necessary for the proxy server to send a magic packet to the sleeping device to wake it up to share any of those services over the network.

Oct 12, 2014 3:54 AM in response to R C-R

read the previous post. the mod has deleted it so i had to create it again and you can see what i mean

the wake on demand on the Apple TV does not actually trigger a wake on demand on the machine but a real time clock event probably this is where the problem lies.

I have submitted a bug to apple. it could be that this is interoperability between iOS and osx or it is just osx either way home sharing does not work

Oct 12, 2014 4:10 AM in response to Interceptor121

Unfortunately, I can't see any of your images because the Jive software running ASC is acting up & failing to display image attachments to many posts, but from what I can tell from your descriptions, I am not seeing the same thing on my systems as you are on yours.


For one thing, I never get the message on the ATV that home (or family) sharing is off. For another, asleep or awake, all my Macs that have iTunes running always show up on the iOS Remote app "Devices" screen.


Because I'm using an Apple Time Capsule as my router & Apple's AirPort Utility to access its settings, I can only see the wireless clients it is currently connected to & not the wired ones, but when I switch my MacBook from ethernet to WiFi it shows up in Airport Utility & does not vanish when the MacBook is asleep.

Oct 12, 2014 4:26 AM in response to Interceptor121

Not to keep belaboring the point but there is no way for anything external to the Mac to trigger a real time clock event. The realtime clock built into a Mac is a separate subsystem very much like a digital alarm clock. It can be programmed to send a wake or sleep signal to the system based on its time of day info or on an elapsed time interval, but it can't respond to a network event.

Oct 12, 2014 5:38 AM in response to Interceptor121

Interceptor121 wrote:

That's exactly the point. The Apple Tv triggers the wrong event and therefore the iMac does not wake.

But an ATV or an iOS device cannot trigger a real time clock event. The only thing that can do that is the realtime clock itself. It has nothing to do with the software. The clock subsystem has a bidirectional data port for programming event times & informing the OS about those settings, the current time, & so on, but it has no way of communicating with the network ports or any of its associated circuitry. IOW, it can send a wake signal to the system but it can't receive or respond to them from any source.


I have done a little more research on this issue & one thing I noticed is that, according to Apple, for Wake on Demand to work reliably over WiFi the local wireless network must be the first one listed in the Preferred Networks list in the Advanced > WiFi tab of the Network System Preferences. If this isn't the way your Mac is set up, it might explain why we get such different results.


I also noticed that in System Profiler/Information in the Network section, either the "Buit-in Ethernet" or "Airport" line should display a "Sleep Proxies" section at the bottom with the network name of the sleep proxy it communicates with. (It should do this at least for Apple Airport base Stations or Time Capsules, but I'm not sure if it will list Apple TV's since I have a TC & that overrides an ATV as the sleep proxy server.) I think in any event it should show the network name of your wireless router/access point, so I would be interested in what, if anything, you see listed there on your Mac.

Oct 12, 2014 10:33 AM in response to R C-R

Thanks for pointing to the apple support articles that I have already all read and the configuration is exactly what it needs to be


Have a look at the console


Oct 12 10:34:30 iMac.local powerd[28] <Notice>: Clients requested wake events: [proc=mDNSResponder request=Maintenance inDelta=7198]

Oct 12 10:34:30 iMac.local powerd[28] <Notice>: PM scheduled RTC wake event: MaintenanceImmediate inDelta=7198.04


mDNSResponder is what bonjour uses to receive wake events. mDNSResponder uses real time clock to then trigger events

In theory here it is triggering an immediate wake however the computer does not wake up


mDNSresponder is part of the implementation of bonjour sleep proxy which is failing between iOS and OS X

Wireless magic packets that are broadcasted on the network looking for a specific MAC address (as opposed to the proxy MAC address) will successfully wake up the sleeping mac as in the example I posted earlier



you can read more about it here



http://stuartcheshire.org/SleepProxy/index.html

Resolving Apple TV 2 & 3 Home Sharing Issues

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