Date: Wed, 17 Nov 2004 10:39:41 +0300 From: "Roman V. Kiseliov" <unicorn@kurskline.ru> To: Anish Mistry <mistry.7@osu.edu>, freebsd-hardware@freebsd.org, freebsd-questions@freebsd.org, <freebsd-bugs@freebsd.org>, FreeBsdBeni <freebsdbeni@spymac.com> Subject: Re[2]: HID support (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/63837) Message-ID: <1304396369.20041117103941@mail.kurskline.ru> In-Reply-To: <200411142119.24870.mistry.7@osu.edu> References: <766270721.20041114161914@mail.kurskline.ru> <200411142119.24870.mistry.7@osu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1304396369.20041117103941>