NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/42546: wireless usb mouse not recognized



>Number:         42546
>Category:       kern
>Synopsis:       wireless usb mouse not recognized
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 30 19:05:00 +0000 2009
>Originator:     leo%marco.de@localhost
>Release:        NetBSD 5.99.23
>Organization:
Matthias Pfaller                            Software Entwicklung
marco Systemanalyse und Entwicklung GmbH    Tel   +49 8131 5161 41
Hans-Böckler-Str. 2, D 85221 Dachau         Fax   +49 8131 5161 66
http://www.marco.de/                        Email leo%marco.de@localhost
>Environment:
        
        
System: NetBSD slug 5.99.23 NetBSD 5.99.23 (SLUG) #38: Tue Dec 29 16:10:09 CET 
2009 leo@slug:/usr/src/sys/arch/i386/compile/SLUG i386
Architecture: i386
Machine: i386
>Description:
        I have a wireless usb mouse
                Dec 22 19:38:38 slug /netbsd: uhidev2 at uhub0 port 1 
configuration 1 interface 0
                Dec 22 19:38:38 slug /netbsd: uhidev2: Mosart Wireless Mouse, 
rev 1.10/1.00, addr 2, iclass 3/1
                Dec 22 19:38:38 slug /netbsd: uhidev2: 225 report ids
                Dec 22 19:38:38 slug /netbsd: uhid1 at uhidev2 reportid 17: 
input=6, output=0, feature=0
                Dec 22 19:38:38 slug /netbsd: uhid2 at uhidev2 reportid 224: 
input=0, output=0, feature=4
                Dec 22 19:38:38 slug /netbsd: uhid3 at uhidev2 reportid 225: 
input=0, output=0, feature=15
        that is not recognized by netbsd.
        The reason is, that it identifies itself as a pointer device and not
        as a mouse. I do not know what the difference between a pointer device
        and a mouse device should be, but the appended patch fixes the problem
        for me. But it might still be very wrong...

>How-To-Repeat:
        Try to use a mosart wireless mouse
>Fix:
        apply this patch:
Index: ums.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/ums.c,v
retrieving revision 1.77
diff -u -w -u -r1.77 ums.c
--- ums.c       27 Nov 2009 08:35:05 -0000      1.77
+++ ums.c       30 Dec 2009 18:59:42 -0000
@@ -137,7 +137,9 @@
 
        uhidev_get_report_desc(uha->parent, &desc, &size);
        if (!hid_is_collection(desc, size, uha->reportid,
-                              HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE)))
+                              HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_MOUSE)) &&
+           !hid_is_collection(desc, size, uha->reportid,
+                              HID_USAGE2(HUP_GENERIC_DESKTOP, HUG_POINTER)))
                return (UMATCH_NONE);
 
        return (UMATCH_IFACECLASS);

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index