[RFC PATCH] Initial libudev input-hotplug support

Peter Hutterer peter.hutterer at who-t.net
Wed Oct 7 17:02:08 PDT 2009

On Wed, Oct 07, 2009 at 06:58:57AM -0700, Ping wrote:
> On Wed, Oct 7, 2009 at 4:38 AM, Julien Cristau <jcristau at debian.org> wrote:
> > On Tue, Oct  6, 2009 at 14:07:33 -0700, Ping wrote:
> >
> > > Does xserver have mechanism to create multiple X input devices in a
> > single
> > > instance now?
> >
> > As far as I know, you can check that you're being hotplugged via udev
> > and that the Type option is not set, set up the needed additional
> > devices with the appropriate Type options added, and call
> > NewInputDeviceRequest on them.  Or does that not work?
> >
> Thank you, Julien, for the hint. A google of NewInputDeviceRequest returned
> quite a few error messages related to the call though :). I'll have to
> try it before I can say it works or not.  Do you guys feel this (I mean
> fixing the Wacom driver) is a clean (or better) way to go?  Can I
> still change the settings for individual tools, such as stylus, eraser, etc,
> separately?  I guess I would be able to figure it out myself when I use it.
> Do you have a link to an example for my case?

not for the faint of heart.

when cleaning up you have to make sure you're only cleaning up those devices
that you've initialized yourself, otherwise you're going to top the server.
i'm not sure if I can recommend the above at all, mjg59's HAL trickery was a
lot nicer but then again, udev.


More information about the xorg-devel mailing list