From owner-freebsd-current@FreeBSD.ORG Fri Jun 11 17:58:42 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3683516A4CE for ; Fri, 11 Jun 2004 17:58:42 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 713DC43D46 for ; Fri, 11 Jun 2004 17:58:41 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i5BHwWaI002011 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 11 Jun 2004 19:58:34 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i5BHvdUi015927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Jun 2004 19:57:40 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id i5BHvdwi033728; Fri, 11 Jun 2004 19:57:39 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id i5BHvdfE033727; Fri, 11 Jun 2004 19:57:39 +0200 (CEST) (envelope-from ticso) Date: Fri, 11 Jun 2004 19:57:39 +0200 From: Bernd Walter To: "Jacob S. Barrett" Message-ID: <20040611175738.GR51677@cicely12.cicely.de> References: <200406110844.52444.jbarrett@amduat.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406110844.52444.jbarrett@amduat.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de cc: freebsd-current@freebsd.org Subject: Re: devd and usb X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2004 17:58:42 -0000 On Fri, Jun 11, 2004 at 08:44:52AM -0700, Jacob S. Barrett wrote: > Should the vendor and product codes be accessable in devd. I have seen > examples while searching Google that suggest that they should be, but they > don't appear to be. The problem is that I have two devices that get > recognized as ucom devices, my Visor and my cell phone. Obviously the > actions I want to purform when they are detected are very different. I tried > matching based on vendor and product codes, but that doesn't work. The codes > are not available when devd processes the attach event. devd support for usb devices currently don't supply this informations. I have a patch to add them plus serial numbers, but it's not in commitable shape yet. See http://www.bwct.de/usb-devd.patch -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de