From owner-freebsd-bluetooth@FreeBSD.ORG Mon Oct 17 18:10:31 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7BE716A44A for ; Mon, 17 Oct 2005 18:10:31 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74CBA43D46 for ; Mon, 17 Oct 2005 18:10:31 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id j9HIAOJ22066; Mon, 17 Oct 2005 14:10:25 -0400 Message-ID: <4353E90E.7070602@savvis.net> Date: Mon, 17 Oct 2005 11:10:22 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: vova@fbsd.ru References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> <43534AD7.5070809@ebs.gr> <1129538709.1250.10.camel@localhost> In-Reply-To: <1129538709.1250.10.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org, Warner Losh Subject: Re: [RFC] rc.d integration for the bluetooth subsystem 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: Mon, 17 Oct 2005 18:10:32 -0000 [...] >>> Probably it should load vkbd module, but I am not sure now. >> >> Thanks, I don't have a HID device so I forgot all about them. Minor >> nits: - the rcvar line is not necessary if you don't have/need a >> bthidd_enable="YES" in rc.conf > > Yes, It was my intent. Just because I think not all users need bthidd > running with bluetooth stack. > > Probably there should be some interface between sdpd and devd to > report new BT device found. In this case bthidd should be stared on > mouse or keyboard appeared in range. > > Warner, Maksim what you think about the idea ? nope. you do not need anything. just have bthid(8) running at all time and you should be good to go. once bthidd(8) "knows" about the device, i.e. it has entry in /etc/bluetooth/bthidd.conf, it will try to either 1) connect to the device at specified interval or 2) wait for the device to connect bluetooth hid devices have "reconnect initiate" flag that will tell if device will initiate reconnect or it will expect connection from the host. bluetooth mice usually have "reconnect initiate" flag set, meaning that device will initiate reconnect. when mouse goes out of range bthidd(8) kills connection and waits for it to come back. when mouse is back in range and you wiggle it a bit it will try to connect back to bthidd(8). >> - bthidd shoud probably REQUIRE: hcsecd, since I suppose the >> communication wouldn't have been established without authentication > > No, It is not strictly necessary. My mouse works well without > authentication. It learns once peer and then do not talk with other > devices. yes, thats how it usually works. max