From owner-freebsd-bluetooth@FreeBSD.ORG Mon Oct 17 08:22:39 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 D7C3C16A41F for ; Mon, 17 Oct 2005 08:22:39 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A80543D75 for ; Mon, 17 Oct 2005 08:22:30 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.54 (FreeBSD)) id 1EREGJ-0002bJ-Qk; Sun, 16 Oct 2005 23:33:39 +0400 From: Vladimir Grebenschikov To: Panagiotis Astithas In-Reply-To: <43519460.1090605@ebs.gr> References: <43519460.1090605@ebs.gr> Content-Type: multipart/mixed; boundary="=-ZiuFh4KaC3qhqZeeeS+f" Organization: SWsoft Date: Sun, 16 Oct 2005 23:33:39 +0400 Message-Id: <1129491219.1616.18.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 Reply-To: vova@fbsd.ru 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 08:22:40 -0000 --=-ZiuFh4KaC3qhqZeeeS+f Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable =F7 =D7=D3, 16/10/2005 =D7 02:44 +0300, Panagiotis Astithas =D0=C9=DB=C5=D4= : > Hi all, >=20 > I've been playing with integrating the bluetooth subsystem into our rc.d=20 > infrastructure and I'd like to submit the results of my efforts for=20 > review. My testing has been centered around my USB bluetooth dongle and=20 > I know that it works, but I suppose other bluetooth devices should work=20 > as well. I have taken the existing rc.bluetooth script (that is not=20 > installed by default) and converted it to rc.d, renaming it as=20 > 'bluetooth'. I also added a couple of other scripts for hcsecd and sdpd,=20 > that are started from bluetooth, but can also function independently, id=20 > so desired. Finally I have added a devd configuration file that makes=20 > sure the bluetooth script gets started on insertion and removal of the=20 > USB dongle. >=20 > With these changes, when I plug in my USB bluetooth dongle, all the=20 > necessary initialization happens behind the scenes and I can start using=20 > my bluetooth peripherals right away. When I unplug the dongle all the=20 > services stop and the necessary shutdown operations are performed on the=20 > bluetooth stack. There is still some work left, like specifying=20 > different flags for sdpd & hcsecd, but the defaults work fine. >=20 > In order to test this stuff you have to: >=20 > - copy bluetooth, hcsecd and sdpd into /etc/rc.d > - copy ubt.conf into /usr/local/etc/devd (creating it if necessary), or=20 > add its contents to /etc/devd.conf > - add a line in /etc/rc.conf with: > bluetooth_enable=3D"YES" >=20 > In an eventual merge into the base system the devd configuration should=20 > be merged into /etc/devd.conf and /etc/defaults/rc.conf should contain=20 > the following line instead: > bluetooth_enable=3D"NO" >=20 > 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. > Cheers, > Panagiotis --=20 Vladimir B. Grebenschikov vova@fbsd.ru --=-ZiuFh4KaC3qhqZeeeS+f--