From owner-freebsd-current@FreeBSD.ORG Wed Jan 6 14:56:21 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC92C106566B; Wed, 6 Jan 2010 14:56:21 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id 3BDEF8FC17; Wed, 6 Jan 2010 14:56:20 +0000 (UTC) Received: by ewy26 with SMTP id 26so15516310ewy.3 for ; Wed, 06 Jan 2010 06:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=SPucWQlSdFEC0E1BS6tfnSORGu7BGWRhx+MSoTd+Q8c=; b=pwJKH94D6rra/ji7dDQx/sTgXTGmVDTkyhVu+STPnUoQAVrsqowe7xh7sNLn1h2KCt pWxSsxKTDZspzuqNdR/0v+ska8cBSzGu7mV3bW+rSZDjGM9JLdHdEWj2fDN9YlooKC6F i00W2JnIXY1bwgiKVh7JBSncYOuec8XCnXLxU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=CPhSG0cATVFZK3mmP2DFLDc5eoQ7uxRgDn6XwJgYellsy48aofCCKiXOa2HLiPZ8bR dkylnUFXQVvD2uK88KHyjqyhnVxeWMIT1vSPvY8S1NWxDOFyhsJNZKloXPzltet6ntla cG1yRZBjE2245a/RpnuNFNTHOU/+tnTxYlLno= MIME-Version: 1.0 Received: by 10.216.87.81 with SMTP id x59mr3988361wee.147.1262789776817; Wed, 06 Jan 2010 06:56:16 -0800 (PST) In-Reply-To: <201001061358.16919.hselasky@c2i.net> References: <747dc8f31001051046v3fd62732j85b3df10e7db4d8d@mail.gmail.com> <201001061216.12121.hselasky@c2i.net> <747dc8f31001060336j51d6c350x4abda99d18ec3423@mail.gmail.com> <201001061358.16919.hselasky@c2i.net> From: Renato Botelho Date: Wed, 6 Jan 2010 12:55:56 -0200 Message-ID: <747dc8f31001060655l186ca965g88240271a4b27605@mail.gmail.com> To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org, Andrew Thompson Subject: Re: USB stop to identify sun keyboard X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jan 2010 14:56:22 -0000 On Wed, Jan 6, 2010 at 10:58 AM, Hans Petter Selasky wrote: > On Wednesday 06 January 2010 12:36:58 Renato Botelho wrote: >> On Wed, Jan 6, 2010 at 9:16 AM, Hans Petter Selasky > wrote: >> > That is because these devices provide a device string, while your SUN >> > keyboard does not. See: >> > >> > usbconfig -u X -a Y dump_device_desc dump_curr_config_desc >> > >> > Look for fields starting with iXXXX . >> >> There is an iProduct string there: > > Yes. Could you dump the language table aswell: > > usbconfig -u X -a Y do_request 0x80 0x06 0x0300 0 0x100 And here is the data for Hub that this keyboard have: root@botelhor:/home/garga# usbconfig -u 0 -a 2 dump_device_desc dump_curr_config_desc ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x0430 idProduct = 0x100e bcdDevice = 0x0104 iManufacturer = 0x0000 iProduct = 0x0000 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0009 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0001 bInterval = 0x00ff bRefresh = 0x0000 bSynchAddress = 0x0000 root@botelhor:/home/garga# usbconfig -u 0 -a 2 do_request 0x80 0x06 0x0300 0 0x100 REQUEST = <0x04 0x03 0x09 0x04><> -- Renato Botelho