Status if input device hotplugging
Tiago Vignatti
vignatti at c3sl.ufpr.br
Thu May 31 14:03:12 PDT 2007
Nicolas Trangez escreveu:
> Hija,
Nicolas,
>
> Some time ago there was some discussion on the list regarding how to
> proceed with runtime addition of input devices to the server. Could
> anyone tell me what the final decission was (iirc add HAL-based
> detection optionally to the server, next to the current (optional) D-Bus
> based interface?), and whether work on this has started?
Yes, it's already working. The X server (in DIX) provides the necessary
API to support the plug and unplug of devices (all in xserver/config/).
What you've got to do is an external application that emits some event
to X (through dbus) when something are plugged/unplugged. The
application's goal is to talk with the API supported by X to decide what
to do when some device are connected to the machine. Daniel wrote the
respeclaration [0] and Enleth started some python script [1]. Both are
really raw, but simply works! Personally, I prefer Enleth's approach.
I'm playing with this all on the last days, so if you have some
questions concerning the configuration you can poke me on the IRC.
my regards
[0] http://gitweb.freedesktop.org/?p=users/daniels/respeclaration.git;a=tree
[1] http://lists.freedesktop.org/archives/xorg/2007-February/021599.html
--
Tiago Vignatti
C3SL - Centro de Computação Científica e Software Livre
www.c3sl.ufpr.br
More information about the xorg
mailing list