-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 11 Nov 2002 19:44, Zephaniah E. Hull wrote: > On Mon, Nov 11, 2002 at 12:03:34AM -0500, Zephaniah E. Hull wrote: > > On Mon, Nov 11, 2002 at 03:12:49PM +1100, Brad Hards wrote: > > <snip> > > > > > > Hmm, obviously this makes my current identification method rather > > > > suboptimial. > > > > > > Depends on the problem we need to solve. If the machine only has one of > > > each device, then it doesn't matter where it is plugged in, and we can > > > use EVIOCGNAME or EVIOCGID. > > > > > > If the machine is multi-headed, then perhaps the physical path will be > > > better. > > > > > > > What about using the bus, vendor, product, and version tags? > > > > (Returned by EVIOCGID) > > > > > > That isn't different to using the strings on USB, except for the odd > > > case where the string just says "mouse" or something silly. > > > > > > > The main catch is that I don't have a clue what those would be set to > > > > for ADB or PS2 mice for 2.5.x. > > > > > > They will exist, but may not be unique (same as if you have two > > > identical mice). There is an ioctl() for a unique identifier > > > (EVIOCGUNIQ), but on most devices, it'll return NULL. > > > > Hmm, this is really starting to tell me that we need the ability to > > specify any of these, not too hard, I think. > > Argh, more interesting problem. > > EVIOCGUNIQ does not even exist in the 2.4.x headers, and EVIOCGBUS > happily returns 0 0 0 0, instead of useful data. What kernel are you using? I'll take a look if I can get some time. Note that EVIOCGBUS is gone in 2.5 (replaced by EVIOCGPHYS, which returns a string instead of short[4]).
> This means that, at least with 2.4.x, it is impossible to tell the > difference between two identical mice. We'll backport whatever is important to 2.4 > I guess this means that my next step is seeing what is available for > 2.5.x drivers. By the time that people are shipping X with event drivers, the kernel will be 2.6, and 2.4 will probably have enough coverage to work. 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 iD8DBQE9z3FKW6pHgIdAuOMRAr9vAKCb+Y2GE1uhwUX98peHOAvJ447VgACgp1E5 0bdZ6yLIamAUvCM1Vf3VT4E= =Aabl -----END PGP SIGNATURE----- _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
