Am 24.10.2011 13:26, schrieb Aaron Plattner: > On 10/24/2011 07:45 AM, Kai-Uwe Behrmann wrote: >> what's the way to get monitor hotplug events in a user desktop session? >> I want to setup ICC profiles during monitor connections and >> deconnections. Currently this is done inside Compiz. But I want to put >> the setup code into a speperate application. Ideally this application >> would be called on demand. >> >> Is DBus the right thing to register to? If yes, how? > > RandR generates events when outputs change states. You should listen > for those events: > > http://cgit.freedesktop.org/xorg/proto/randrproto/tree/randrproto.txt?id=randrproto-1.3.2#n326 >
I read this from a nvidia developer. Does that mean XRandR-1.3 is going to be supported soon in the nvidia driver? >> Code examples are welcome too if any. > > Michael Thayer's changes to xev to make it print the events might be a > good place to start. > > http://cgit.freedesktop.org/xorg/app/xev/commit/?id=7965bc6efbf5db244593735bbb98f0ffa759cd1a > This means, the setup application needs to stay active all the time like a daemon, which I initially hoped to can circumvent. Thanks for your hints and kind regards Kai-Uwe _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
