Notification on output hotplug

Daniel Stone daniel at fooishbar.org
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.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20080507/895a022c/attachment.pgp>


More information about the xorg mailing list