From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 23 23:00:52 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1FD573D3 for ; Fri, 23 Nov 2012 23:00:52 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 66CD38FC13 for ; Fri, 23 Nov 2012 23:00:51 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id E493140002 for ; Sat, 24 Nov 2012 00:00:49 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id D34FE40004; Sat, 24 Nov 2012 00:00:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (h-45-105.a163.priv.bahnhof.se [94.254.45.105]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 7996A40002 for ; Sat, 24 Nov 2012 00:00:49 +0100 (CET) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3Y7Y0K0rY1z8hVn for ; Sat, 24 Nov 2012 00:00:49 +0100 (CET) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([10.1.0.3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [10.1.0.6]) (amavisd-new, port 10025) with ESMTPS id uY8s9gSBy85Y for ; Sat, 24 Nov 2012 00:00:46 +0100 (CET) Received: from mail.daemonic.se (mail.daemonic.se [10.1.0.4]) by mx.daemonic.se (Postfix) with ESMTPS id 3Y7Y0G66nkz8hVm for ; Sat, 24 Nov 2012 00:00:46 +0100 (CET) Received: from tifa.daemonic.se (tifa.daemonic.se [IPv6:2001:470:dca9:1::6]) by mail.daemonic.se (Postfix) with ESMTPSA id 3Y7Y0G5c7Pz9Ctj for ; Sat, 24 Nov 2012 00:00:46 +0100 (CET) Received: from tifa.daemonic.se (localhost [IPv6:::1]) by tifa.daemonic.se (Postfix) with ESMTP id 5CE62228F2 for ; Sat, 24 Nov 2012 00:00:45 +0100 (CET) Message-ID: <50B0001C.6050202@daemonic.se> Date: Sat, 24 Nov 2012 00:00:44 +0100 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: hackers@freebsd.org Subject: Questions about USB, uhid, ukbd and quirks Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Nov 2012 23:00:52 -0000 Hi! I have a couple of questions about USB. I recently bought a new USB keyboard, a Logitech K120. When attaching this to a FreeBSD system, however, it is detected as a hid device (attaching to uhid) rather than a keyboard (attaching to ukbd). The keyboard works fine, but I'm just curious as to why it doesn't use ukbd. The output from usbconfig for this keyboard is: ugen2.3: at usbus2, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x046d idProduct = 0xc31c bcdDevice = 0x6400 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 If I add the qurik UQ_HID_IGNORE, it attaches with ukbd and works fine. I don't know if this is appropriate to add to the general quriks though. I have another keyboard, also Logitech, but older. This one attaches to ukbd, but the manufacture string says LITEON. Is this string fetched from the device, or is it somehow stored in the usb drivers? The output from usbconfig for this keyboard is: ugen4.2: at usbus4, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x046d idProduct = 0xc312 bcdDevice = 0x0101 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 These issues probably have natural explanations, but it's making me slightly confused, so I hope someone can shed some light on them. Regards! -- Niclas