From owner-freebsd-usb@FreeBSD.ORG Sun Jul 30 14:22:51 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 903DF16A4DF for ; Sun, 30 Jul 2006 14:22:51 +0000 (UTC) (envelope-from lil_tux@web.de) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8CF143D4C for ; Sun, 30 Jul 2006 14:22:50 +0000 (GMT) (envelope-from lil_tux@web.de) Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate03.web.de (Postfix) with ESMTP id D23FECCDC6F for ; Sun, 30 Jul 2006 16:22:49 +0200 (CEST) Received: from [195.71.190.177] (helo=[192.168.168.77]) by smtp08.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.107 #114) id 1G7CBt-0008Gg-00 for freebsd-usb@freebsd.org; Sun, 30 Jul 2006 16:22:49 +0200 Mime-Version: 1.0 (Apple Message framework v752.2) To: freebsd-usb@freebsd.org Message-Id: Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-15--131394637" From: Heiko Przybyl Date: Sun, 30 Jul 2006 16:24:23 +0200 Content-Transfer-Encoding: 7bit X-Pgp-Agent: GPGMail 1.1.2 (Tiger) X-Mailer: Apple Mail (2.752.2) Sender: lil_tux@web.de X-Sender: lil_tux@web.de Subject: Logitech iFeel Mouseman USB - UN53B X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2006 14:22:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --Apple-Mail-15--131394637 Content-Type: multipart/mixed; boundary=Apple-Mail-14--131395050 --Apple-Mail-14--131395050 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, I'm not quite sure if this is the right way to post a message to this list and/or to request a patch-review/-inclusion. Well, I have problems with the mouse mentioned in the subject. It is neither recognized in the normal boot-up nor when re-plugging it after the boot-up. Turning on USB_DEBUG has shown: "usbd_get_string: getting string failed, using 0". I have searched your list and the net, but without any success. Ok, there was a hint about commenting out the code, but I think this is not the way it is ment to be. So I decided to have a look into the sources under /usr/src/sys/dev/usb. In fact, there is already a Logitech iFeel Mouse under usbdevs, but with a different device id. The listed device is 0xc030 whilst mine is 0xc032. So I added a new entry "product LOGITECH UN53B 0xc032 iFeel MouseMan". Actually this did not solve the problem of failing recognition of the device :-) So I took a closer look on usbdi.c::usbd_get_string() which is the point of failure and found "if (dev->quirks->uq_flags & UQ_NO_STRINGS)" which in turn checks the device for being unable to provide the strings usbdi.c::usbd_get_string() wants to extract. So the next step was to add the newly created usbdevs entry to usb_quirks.c with UQ_NO_STRINGS as the corresponding quirk. Now the mouse is shown in usbdevs, works fine in moused and under Xorg. It is successfully recognized as /dev/ums0 4-button mouse with scroll wheel. Attached there are the patches of the changes I did. Hopefully they will find their way into the tree, since there seem to be a lot of people struggling with that (mouse') problem. Btw. system is: AthlonXP on VIAKT400A+ (VT82xxxxx UHCI USB) running 7.0-CURRENT-200607. Best regards, Heiko --Apple-Mail-14--131395050 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=ifeel_mouseman_usb_quirks.c.patch Content-Disposition: attachment; filename=ifeel_mouseman_usb_quirks.c.patch --- sys/dev/usb/usb_quirks.c.orig Sun Jul 30 15:22:38 2006 +++ sys/dev/usb/usb_quirks.c Sun Jul 30 16:02:53 2006 @@ -110,6 +110,7 @@ ANY, { UQ_HID_IGNORE }}, { USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2, ANY, { UQ_HID_IGNORE }}, + { USB_VENDOR_LOGITECH, USB_PRODUCT_LOGITECH_UN53B, ANY, { UQ_NO_STRINGS }}, { 0, 0, 0, { 0 } } }; --Apple-Mail-14--131395050 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=ifeel_mouseman_usbdevs.patch Content-Disposition: attachment; filename=ifeel_mouseman_usbdevs.patch --- sys/dev/usb/usbdevs.orig Sun Jul 30 15:23:12 2006 +++ sys/dev/usb/usbdevs Sun Jul 30 16:00:51 2006 @@ -1166,6 +1166,7 @@ product LOGITECH WMMOUSE 0xc004 WingMan Gaming Mouse product LOGITECH BD58 0xc00c BD58 mouse product LOGITECH UN58A 0xc030 iFeel Mouse +product LOGITECH UN53B 0xc032 iFeel MouseMan product LOGITECH BB13 0xc401 USB-PS/2 Trackball product LOGITECH WMPAD 0xc208 WingMan GamePad Extreme product LOGITECH WMRPAD 0xc20a WingMan RumblePad --Apple-Mail-14--131395050-- --Apple-Mail-15--131394637 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEzMEbqrqqic7aKcsRAmu0AJ98yHo9uw4MV2eVQ/A3Q/o+GpVXBACeIYRB oMVHhEnxLjfG+kEBfIXcLlw= =FrCV -----END PGP SIGNATURE----- --Apple-Mail-15--131394637--