You should get an XRRScreenChangeNotify whenever and output is hotplugged.
However, you might not because of XBMCs implementation or xrandr.
On 28/10/2013 3:27 pm, "Rainer Hochecker" <notifications@github.com> wrote:

> In xbmc/windowing/WinEventsX11.cpp:
>
> > +      serial = xevent.xgeneric.serial;
> > +    }
> > +#endif
> > +
> > +  }// while
> > +
> > +#if defined(HAS_XRANDR)
> > +  if (WinEvents && WinEvents->m_xrrEventPending && WinEvents->m_xrrFailSafeTimer.IsTimePast())
> > +  {
> > +    CLog::Log(LOGERROR,"CWinEventsX11::MessagePump - missed XRR Events");
> > +    g_Windowing.NotifyXRREvent();
> > +    WinEvents->m_xrrEventPending = false;
> > +  }
> > +  else if (!g_application.m_pPlayer->IsPlaying() && WinEvents && WinEvents->m_xrrPollTimer.IsTimePast())
> > +  {
> > +    g_Windowing.NotifyXRREvent(true);
>
> This allows to poll AVRs. Without this users have to power on the AVR
> first, then start the X server.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/xbmc/xbmc/pull/3505/files#r7241285>
> .
>