From owner-freebsd-bluetooth@FreeBSD.ORG Thu Jul 12 18:30:46 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C1D0316A41F for ; Thu, 12 Jul 2007 18:30:46 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by mx1.freebsd.org (Postfix) with ESMTP id 3C62813C4BB for ; Thu, 12 Jul 2007 18:30:46 +0000 (UTC) (envelope-from rpaulo@fnop.net) Received: from core.fnop.net (mx.fnop.net [82.102.11.82]) by core.fnop.net (Postfix) with ESMTP id BCF77690DCD; Thu, 12 Jul 2007 19:25:19 +0100 (WEST) Received: by core.fnop.net (Postfix, from userid 1015) id 7DD9A690DD2; Thu, 12 Jul 2007 19:25:19 +0100 (WEST) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on core.fnop.net X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from epsilon.local (62.169.115.40.rev.optimus.pt [62.169.115.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by core.fnop.net (Postfix) with ESMTP id 5CEB1690DCD; Thu, 12 Jul 2007 19:25:18 +0100 (WEST) Message-ID: <4696734F.4040201@fnop.net> Date: Thu, 12 Jul 2007 19:30:39 +0100 From: Rui Paulo User-Agent: Thunderbird 2.0.0.4 (X11/20070704) MIME-Version: 1.0 To: Anish Mistry References: <469593F2.1040703@fnop.net> <200707121307.38442.amistry@am-productions.biz> <46966301.7060004@fnop.net> <200707121347.29676.amistry@am-productions.biz> In-Reply-To: <200707121347.29676.amistry@am-productions.biz> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-bluetooth@freebsd.org Subject: Re: HCI - HID proxy X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2007 18:30:46 -0000 Anish Mistry wrote: >> Anyway, if you want to use devd it would be something like: >> >> attach 100 { >> match "vendor" "0x05ac"; >> match "product" "0x1000"; >> action "/usr/bin/ubthid2hci -m 0 $device-name"; >> }; >> >> And then repeat this for every device that needs to be switched to >> HCI mode. This has the problem of not being able to switch the >> device to HID mode because when you try to do that, devd will >> automatically switch it back to HCI mode if this attach rule is >> present. I don't think this is a serious issue because the HID mode >> is normally only needed before the operating system has booted. > > Right. Actually that brings up a good point. Is there a way (API) > that allows us to enable/disable certain devd entries at runtime? If > not I think that this might be a useful feature. If this was > available we'd then be able to programmatically disable an entry when > we want to switch back to HID mode without having to change the > devd.conf file. AFAIK, no. -- Rui Paulo