Notification on output hotplug

Daniel Stone daniel at
Wed May 7 13:15:40 PDT 2008

On Wed, May 07, 2008 at 09:12:49PM +0100, Ross Burton wrote:
> Is there some way for X clients to be notified when output devices are
> hotplugged?  I have a script that I manually run when I plug in my
> external monitor (xrandr, change wallpaper, etc) which I'd like to have
> ran automatically instead.

See RROutputChangeNotifyEvent.  Unfortunately, this only really works
for TMDS/DVI, as VGA requires polling.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <>

More information about the xorg mailing list