On Sunday 09 February 2003 15.34, Zephaniah E. Hull wrote:
> On Sun, Feb 09, 2003 at 03:08:26AM +0000, Mikael Andersson wrote:
> > On Saturday 08 February 2003 05.12, Zephaniah E. Hull wrote:
> > > The good news is that I have basic patches, that support just about
> > > everything.
> >
> > I had some problems getting this patch to work on a 2.4.20 kernel
> > since the EVIOCGPHYS failed with an EINVAL status. And as far is
> > i can see the EVIOCGBUS ( whis is the 2.4.20 name of IOCTL #7 )
> > And as far as i can see this ioctl is not implemented in 2.4.20.
> >
> > This isn't critical, but the "Dev Phys" option must be left out
> > of the configuration file or no devices will match. But other than
> > that mouse support seems to work.
>
> I'll add it to the readme.
>
> Sadly, keyboard support has another major problem that I still don't
> know how to fix.
>
> > I haven't tried keyboard yet but noticed that my keyboard reports
> > the 'name'  045e:000b ( Old Ms Natural Elite USB ). This wasn't
> > obvious and the reason i tried with "Dev Phys" option and discovered
> > that it didn't work as expexted.
> > It is the vendor and prodId number for the device. And i don't know
> > if it's kernel generated or if the device actually reports it as name.
>
> The device supplies the name in the case of USB.
>

Yes, normally it does. I got curios and checked it out. It all boils down
to that if a device lacks a  string representation for it's manufacturer
then the device name will containg the vendorid:productid notation.

        if (usb_string(dev, dev->descriptor.iManufacturer, buf, 63) > 0) {
                strcat(hid->name, buf);
                if (usb_string(dev, dev->descriptor.iProduct, buf, 63) > 0)
                        sprintf(hid->name, "%s %s", hid->name, buf);
        } else
                sprintf(hid->name, "%04x:%04x", dev->descriptor.idVendor, 
dev->descriptor.idProduct);


/Mikael Andersson.
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to