Notification on output hotplug
gmane at colin.guthr.ie
Thu May 8 00:53:44 PDT 2008
Ross Burton wrote:
> On Wed, 2008-05-07 at 23:15 +0300, Daniel Stone wrote:
>> 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.
> An option to poll would be much appreciated...
IIRC the problem with polling is power consumption. I remember KeithP (I
think) mentioning a while back that they had some power level measuring
gadgetry and they could do some tests on what effect it had... don't
remember seeing a follow up (but I could easily have missed it).
More information about the xorg