From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 18:57:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C464716A415 for ; Sun, 17 Dec 2006 18:57:07 +0000 (UTC) (envelope-from patfbsds+questions@davenulle.org) Received: from smtp.lamaiziere.net (lamaiziere.net [213.41.172.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 764D243DD2 for ; Sun, 17 Dec 2006 18:55:43 +0000 (GMT) (envelope-from patfbsds+questions@davenulle.org) Received: from [192.168.0.59] (unknown [192.168.0.59]) by smtp.lamaiziere.net (Postfix) with ESMTP id 332E1A6CB0 for ; Sun, 17 Dec 2006 19:55:37 +0100 (CET) From: Patrick =?iso-8859-1?q?Lamaizi=E8re?= Organization: >/dave/nulle To: freebsd-questions@freebsd.org Date: Sun, 17 Dec 2006 19:55:36 +0100 User-Agent: KMail/1.9.4 References: <4583E577.6060205@mail.ru> In-Reply-To: <4583E577.6060205@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612171955.36456.patfbsds+questions@davenulle.org> Subject: Re: devd usage X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2006 18:57:07 -0000 Maxim Vetrov : > Hi, Hello, > I'm running 6.1 on Toshiba notebook SAtellite L100. Get stuck with > auto config of wireless cardbus adapter (D-Link DWL-G650). I want to > load kernel module (if_ath.ko) automatically when I insert it into the > slot. I found that I need /etc/devd.conf to be configured properly. > There is a Deqna example that is quite self-explaining excluding those > magic numbers assigned to "manufacturer" and "product". Where I can get > these? I think with the devd's socket : By sample i insert my usb mouse : # cat /var/run/devd.pipe ? at port=0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 release=0x0110 sernum="" on uhub1 +ums0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 release=0x0110 sernum="" intclass=0x03 intsubclass=0x01 at port=0 interface=0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 release=0x0110 sernum="" intclass=0x03 intsubclass=0x01 on uhub1 There are two events here, first an unknown device is detected '?' and then a new device is inserted '+ums0'. See man devctl Regards.