From owner-freebsd-usb@FreeBSD.ORG Tue Aug 7 18:40:03 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6600B1065677 for ; Tue, 7 Aug 2012 18:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 31E578FC17 for ; Tue, 7 Aug 2012 18:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q77Ie34G004147 for ; Tue, 7 Aug 2012 18:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q77Ie3Ef004146; Tue, 7 Aug 2012 18:40:03 GMT (envelope-from gnats) Date: Tue, 7 Aug 2012 18:40:03 GMT Message-Id: <201208071840.q77Ie3Ef004146@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Tomasz Olejniczak Cc: Subject: Re: usb/170358: [ums] Wrong (duplicate) button numbers X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tomasz Olejniczak List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2012 18:40:03 -0000 The following reply was made to PR usb/170358; it has been noted by GNATS. From: Tomasz Olejniczak To: bug-followup@FreeBSD.org, tomek.apostata@gmail.com Cc: Subject: Re: usb/170358: [ums] Wrong (duplicate) button numbers Date: Tue, 7 Aug 2012 20:32:49 +0200 Hi, > The request in question is for the keyboard. I see you have a dual- > keyboard/mouse device. To be exact - This is Logitech M510 with 'Unifying' usb dongle which allows to connect several devices (from logitech). > Re-run command like this: # usbconfig -d 3.2 do_request 0x81 0x06 0x2200 1 0x100 REQUEST = <0x05 0x01 0x09 0x02 0xa1 0x01 0x85 0x02 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x10 0x15 0x00 0x25 0x01 0x95 0x10 0x75 0x01 0x81 0x02 0x05 0x01 0x16 0x01 0xf8 0x26 0xff 0x07 0x75 0x0c 0x95 0x02 0x09 0x30 0x09 0x31 0x81 0x06 0x15 0x81 0x25 0x7f 0x75 0x08 0x95 0x01 0x09 0x38 0x81 0x06 0x05 0x0c 0x0a 0x38 0x02 0x95 0x01 0x81 0x06 0xc0 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x85 0x03 0x75 0x10 0x95 0x02 0x15 0x01 0x26 0x8c 0x02 0x19 0x01 0x2a 0x8c 0x02 0x81 0x00 0xc0 0x05 0x01 0x09 0x80 0xa1 0x01 0x85 0x04 0x75 0x02 0x95 0x01 0x15 0x01 0x25 0x03 0x09 0x82 0x09 0x81 0x09 0x83 0x81 0x60 0x75 0x06 0x81 0x03 0xc0 0x06 0xbc 0xff 0x09 0x88 0xa1 0x01 0x85 0x08 0x19 0x01 0x29 0xff 0x15 0x01 0x26 0xff 0x00 0x75 0x08 0x95 0x01 0x81 0x00 0xc0><)%u&u01%u88u&*u%`u)&u> If it helps I have also older Logitech LX7 mouse with tilt wheel which worked fine in FreeBSD 8.0 RELEASE. But with 9.0 it behaves even stranger - the buttons are duplicated the same as with M510 - "tilt left" and "back" emits press and release for button 4 but release emits also button 7. So tilting emits button 4 when pressing and button 4 and 7 when releasing. Below is the info about Logitech LX7. ugen1.2: at usbus1 ums2: on usbus1 ums2: 16 buttons and [XYZT] coordinates ID=0 And the descriptor: REQUEST = <0x05 0x01 0x09 0x02 0xa1 0x01 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x08 0x15 0x00 0x25 0x01 0x95 0x08 0x75 0x01 0x81 0x02 0x05 0x01 0x09 0x30 0x09 0x31 0x09 0x38 0x15 0x81 0x25 0x7f 0x75 0x08 0x95 0x03 0x81 0x06 0x05 0x0c 0x0a 0x38 0x02 0x95 0x01 0x81 0x06 0xc0 0x05 0x01 0x09 0x3c 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x01 0xb1 0x22 0x95 0x07 0xb1 0x01 0x05 0x08 0x09 0x4b 0x15 0x00 0x25 0x01 0x95 0x08 0x75 0x01 0x81 0x02 0x05 0x09 0x19 0x09 0x29 0x10 0x81 0x02 0xc0><)%u018%u8%u"K%u)> -- Tomek