From owner-freebsd-questions@FreeBSD.ORG Wed Mar 10 00:53:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E39E016A4CE for ; Wed, 10 Mar 2004 00:53:39 -0800 (PST) Received: from vp4.netgate.net (vp4.netgate.net [205.214.170.248]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8A3B43D46 for ; Wed, 10 Mar 2004 00:53:39 -0800 (PST) (envelope-from admin2@forkthepenguin.com) Received: from localhost (ibrew@localhost) by vp4.netgate.net (8.11.6/8.11.7) with ESMTP id i2A8rdE29371 for ; Wed, 10 Mar 2004 00:53:39 -0800 (PST) Date: Wed, 10 Mar 2004 00:53:39 -0800 (PST) From: admin2@forkthepenguin.com X-X-Sender: ibrew@vp4.netgate.net To: freebsd-questions@freebsd.org In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: USB Driver Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2004 08:53:40 -0000 I figured it out. To dynamically load/unload the driver it has to be excluded from the kernel config. Only then will the kld* tools allow to manipulate the module. Chris On Tue, 9 Mar 2004 admin2@forkthepenguin.com wrote: > > How does one force the use of a particular driver for a USB device without > removing the preferred driver from the kernel conf? For example, I have an > HID compliant device that is handled by the uhid driver, however I wish to > use the ugen driver temporarily for some testing. I created the > appropriate entry in /etc/usbd.conf with : > > devname "ugen[0-9]+" > > But uhid0 continues to be used after restarting usbd. I also tried to > unload the uhid kernel module with kldunload, but I received an error that > the module could not be found even though it showed up under kldstat. > Recompiling the kernel without uhid support caused the desired effect, but > I'd rather not have to reboot everytime I want to switch drivers. > > Thanks in advance, > > Chris >