HID support (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/63837)

Roman V. Kiseliov unicorn at kurskline.ru
Tue Nov 16 23:39:48 PST 2004


AM> On Sunday 14 November 2004 08:19 am, Roman V. Kiseliov wrote:
>> It seems that "USB keyboard and mouse" wireless sets doesn't work
>> properly in FreeBSD (my opinion based on mailing lists archives). At
>> least sets from A4Tech (see my earlier post), Logitech, Chicony & M$.
>>
>> These sets works fine in Linux and M$ Windows.
>> I think because of better HID support. Mouse and keyboard must thought
>> as one HID device.
>>
>> How I can configure my funny FreeBSD to work with my keyboard and
>> mouse set as with one HID device?
>>
AM> Does the patch I posted here solve you problem?
AM> http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/63837

AM> If so, go ahead and reply to the PR saying that it worked.

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/63837

 --- /sys/dev/usb/hid.c.orig    Sun Jun 20 17:20:03 2004
 +++ /sys/dev/usb/hid.c Tue Jun 29 00:51:39 2004
 @@ -373,9 +373,10 @@
        struct hid_item h;
        int size, id;
  
 +      h.report_ID = 0;
        id = 0;
        for (d = hid_start_parse(buf, len, 1<<k); hid_get_item(d, &h); )
 -              if (h.report_ID != 0)
 +              if (h.report_ID != 0 && !id)
                        id = h.report_ID;
        hid_end_parse(d);
        size = h.loc.pos;

This patch (written by Anish Mistry <mistry.7 at osu.edu>) solved problem existing in 4.9-STABLE, 5.3-STABLE.
Without patch USB HID keyboard+mouse sets (at least from A4Tech, Logitech,
Chicony, Microsoft) doesn't work properly: keyboard work but mouse
doesn't. Problem arise because HID driver looks only for first item in
HID collection.

I would like to thank all people who help me find solution,
especially Mr. Anish Mistry <mistry.7 at osu.edu>

To comitters: why this patch isn't comitted? Why we must boot M$
Windows hated by us because this patch isn't applied and mouse work
only in NetBSD, Linux and M$? Why we must be in troubles with Lovely,
Funny FreeBSD?

Sorry for emotion






More information about the freebsd-bugs mailing list