Logitech cordless mouse / keyboard

Markus Wild mwild at vianetworks.ch
Sun Oct 24 05:09:56 PDT 2004


> 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


More information about the freebsd-hardware mailing list