From owner-freebsd-usb@freebsd.org Mon Dec 3 20:26:19 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8ADA130B062 for ; Mon, 3 Dec 2018 20:26:19 +0000 (UTC) (envelope-from nir@sarfsc.ru) Received: from forward400j.mail.yandex.net (forward400j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "YandexInternalCA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E3946D9D8 for ; Mon, 3 Dec 2018 20:26:18 +0000 (UTC) (envelope-from nir@sarfsc.ru) Received: from mxback3j.mail.yandex.net (mxback3j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10c]) by forward400j.mail.yandex.net (Yandex) with ESMTP id 6E67C6E0F4B for ; Mon, 3 Dec 2018 23:26:08 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback3j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id FxkNSZoHql-Q7rmo99J; Mon, 03 Dec 2018 23:26:07 +0300 Received: by iva7-d29a8296bc3c.qloud-c.yandex.net with HTTP; Mon, 03 Dec 2018 23:26:07 +0300 From: Igor Chudov To: freebsd-usb@freebsd.org Subject: Add support for USB devices MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 03 Dec 2018 23:26:07 +0300 Message-Id: <1855191543868767@iva7-d29a8296bc3c.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Rspamd-Queue-Id: 3E3946D9D8 X-Spamd-Result: default: False [-3.83 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[sarfsc.ru]; MX_GOOD(-0.01)[mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru,mx.yandex.ru]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; IP_SCORE(-1.73)[ipnet: 2a02:6b8::/32(-4.83), asn: 13238(-3.85), country: RU(0.01)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2018 20:26:19 -0000 Hello! Recently I bought 2 USB devices: - Logitech C310 webcam - Defender Game Master G2 joystick I'm running `FreeBSD 11.2` on `HP Pavilion` notebook. I have `usbids-20180815` package installed but when I run `sudo usbconfig` it shows just Vendor ID and Product ID, not the description. I checked the USB ID database and found out that at least Logitech C310 is present in the database (since 2010). The second problem is that when I configure the joystick in Xorg I get errors just like ones specified in this bugreport: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217047 So the number of fixes I expect to introduce: 1) Fix problems with usbconfig so it will show the description of my devices instead of IDs. 2) Fix UVC driver for webcamd so it will recognize my webcam (now I have only black screen). 3) Fix the joystick driver for Xorg. At the moment I want to make `usbconfig` to show the device names instead of IDs (at first). I looked at `/usr/src` and found that `usbconfig` uses FreeBSD's own `libusb` but I had no luck finding description database. Could anyone help me to find the device description database (or tell about sources organization) so I'll be able to introduce new ID descriptions? P. S.: I also want to know how to send patches so it'll be possible to merge them in -CURRENT. How's the process organized? --- With best regards, Igor Chudov. Saratov Free Software Center Work phone: +7 8452 98-78-18 Work (mobile) phone: +7 917 208-78-18 Personal (mobile) phone: +7 937 266-51-34