From owner-freebsd-questions@FreeBSD.ORG Mon Jul 11 14:03:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 CDEDF16A41C for ; Mon, 11 Jul 2005 14:03:53 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6834743D55 for ; Mon, 11 Jul 2005 14:03:53 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 25375 invoked from network); 11 Jul 2005 14:03:53 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 Jul 2005 14:03:52 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 3E39431; Mon, 11 Jul 2005 10:03:52 -0400 (EDT) Sender: lowell@be-well.ilk.org To: George Fazio References: <42CF2CE2.60009@n3gqf.net> From: Lowell Gilbert Date: 11 Jul 2005 10:03:52 -0400 In-Reply-To: <42CF2CE2.60009@n3gqf.net> Message-ID: <44vf3hmoc7.fsf@be-well.ilk.org> Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: device.hints question 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: Mon, 11 Jul 2005 14:03:53 -0000 George Fazio writes: > I was installing apcupsd with an APC USB UPS, and found that I needed > to disable the uhid driver. The instructions on the apcupsd site > specifically say to recompile the kernel. But, I try to keep my kernel > as generic as possible, so I tried entering the following line into > the device.hints file. > > hint.uhid.0.disabled="1" > > This did not work, and I'm not sure if it's a syntax issue on my part, > or if disabling this driver via device.hints is just not supported. I > did a web search for information on device.hints and uhid, but did not > find anything specific. Recompiling with a custom kernconf worked, and > everything is up and running.. But, I'm interested in a little bit of > background on why the device hint did not work. If anyone has a quick > answer great. Like I said, everything is working, so it's not like I > need an answer. But, I'm still fairly new to Unix and FreeBSD, and > trying to learn the why behind how things work. So, any information > would be helpful. The hints aren't generated automatically, so there's no reason to think a module disable would be in place unless someone found it useful. If you find it useful, then feel free to write the code and submit it. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/