Date: Sun, 24 Oct 2004 14:09:51 +0200 (CEST) From: Markus Wild <mwild@vianetworks.ch> To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no> Cc: hardware@freebsd.org Subject: Re: Logitech cordless mouse / keyboard Message-ID: <200410241209.i9OC9pdp062222@smsgw.vianetworks.ch> In-Reply-To: <xzpk6tge3re.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
> I recently got a Logitech cordless mouse / keyboard combo. The
> keyboard works fine (with recent -CURRENT), the mouse (MX700) doesn't.
> According to google, some people at least have got it working with
> FreeBSD.
Somehow the thread to fix the code died, possibly because the
attempted goal to reimport current NetBSD USB code involved too
many changes.
> moused is running, but there's no reaction to either movement or
> buttons. I've done the connect thing a million times, but I have no
I don't know what other things this may break, but for me, the following
change to ums.c correctly recognizes the mouse:
diff -u -r1.23 hid.c
--- hid.c 24 Aug 2003 17:55:54 -0000 1.23
+++ hid.c 24 Oct 2004 12:06:12 -0000
@@ -374,8 +374,9 @@
int size, id;
id = 0;
+ bzero (&h, sizeof (h));
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;
Cheers,
Markus
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410241209.i9OC9pdp062222>
