From owner-freebsd-bluetooth@FreeBSD.ORG Mon Oct 17 06:55:53 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 DAE6016A41F for ; Mon, 17 Oct 2005 06:55:53 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD1D443D53 for ; Mon, 17 Oct 2005 06:55:52 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j9H6td9V037020; Mon, 17 Oct 2005 09:55:39 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (pc158.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id j9H6tpoJ035232; Mon, 17 Oct 2005 09:55:52 +0300 (EEST) (envelope-from past@ebs.gr) Message-ID: <43534AD7.5070809@ebs.gr> Date: Mon, 17 Oct 2005 09:55:19 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051008) X-Accept-Language: en-us, en MIME-Version: 1.0 To: vova@fbsd.ru References: <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost> In-Reply-To: <1129491219.1616.18.camel@localhost> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-bluetooth@freebsd.org 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 06:55:54 -0000 Vladimir Grebenschikov wrote: > В вс, 16/10/2005 в 02:44 +0300, Panagiotis Astithas пишет: > >>Hi all, >> >>I've been playing with integrating the bluetooth subsystem into our rc.d >> infrastructure and I'd like to submit the results of my efforts for >>review. My testing has been centered around my USB bluetooth dongle and >>I know that it works, but I suppose other bluetooth devices should work >>as well. I have taken the existing rc.bluetooth script (that is not >>installed by default) and converted it to rc.d, renaming it as >>'bluetooth'. I also added a couple of other scripts for hcsecd and sdpd, >>that are started from bluetooth, but can also function independently, id >>so desired. Finally I have added a devd configuration file that makes >>sure the bluetooth script gets started on insertion and removal of the >>USB dongle. >> >>With these changes, when I plug in my USB bluetooth dongle, all the >>necessary initialization happens behind the scenes and I can start using >>my bluetooth peripherals right away. When I unplug the dongle all the >>services stop and the necessary shutdown operations are performed on the >>bluetooth stack. There is still some work left, like specifying >>different flags for sdpd & hcsecd, but the defaults work fine. >> >>In order to test this stuff you have to: >> >>- copy bluetooth, hcsecd and sdpd into /etc/rc.d >>- copy ubt.conf into /usr/local/etc/devd (creating it if necessary), or >>add its contents to /etc/devd.conf >>- add a line in /etc/rc.conf with: >> bluetooth_enable="YES" >> >>In an eventual merge into the base system the devd configuration should >>be merged into /etc/devd.conf and /etc/defaults/rc.conf should contain >>the following line instead: >> bluetooth_enable="NO" >> >>I'd appreciate any comments you may have. > > > Great ! It just works, Thank you. > > I've added bthidd script (in attachment) to start human interface daemon > (bt mouse in my case). > > 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 - bthidd shoud probably REQUIRE: hcsecd, since I suppose the communication wouldn't have been established without authentication Thanks again, Panagiotis