-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 11 Nov 2002 10:43, Alexander Stohr wrote:
> > This patch (attached) add support under Linux for talking to mice
> > directly from the event interface, IE, /dev/input/event<n>.
> >
> > It is stashed as a os specific protocol, evdev, the Device
> > option is not
> > a device, but instead is the device name, such as
> > 'A4Tech USB Optical Mouse'.
> >
> > It has some limits, specificly if you unplug a USB mouse and plug it
> > back in you have to cause it to be deactivated and reactivated, a good
> > way of doing that is to change VTs away from X, and then change back.
> >
> > Also if you have two identical mice with the same label it is somewhat
> > indeterminate which you will get, this could be improved.
>
> If i do remember right i have seen an USB mice that provides
> a serial number trough its device information which uniqely identifies it.
> Sorry if i am wrong for this - its just what i thought i have seen there.
Serial numbers are optional for USB devices (and most mice don't have such a 
thing). Also, some devices have them, but they are not unique (this is 
against spec). The name that comes back from EVIOCGNAME may not have 
meaningful text either, since some mice don't have any strings. You may get a 
null string, depending on the mouse type (won't happen on USB - you'll get 
the vendor and product IDs instead).

There is really only one unique identifier that is reliably useful: the 
physical path, as returned by EVIOCGPHYS. For example, there will always be 
one device like this: usb-00:01.2-2.1/input0

However if you plug it into another port (or you plug another input device 
into that port), you are basically screwed. It'd still be a nice option to 
offer for configuration though.

We still need proper hotplugging though.

Brad

- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9zv/lW6pHgIdAuOMRAu5YAKCCd5Ymuq5dNiiy7YqPrMXwj1c3XwCgqHKV
SNK5fPBc4IhJecJPxPnFiMo=
=R5eU
-----END PGP SIGNATURE-----

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to