Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Oct 2005 23:33:39 +0400
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        Panagiotis Astithas <past@ebs.gr>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: [RFC] rc.d integration for the bluetooth subsystem
Message-ID:  <1129491219.1616.18.camel@localhost>
In-Reply-To: <43519460.1090605@ebs.gr>
References:  <43519460.1090605@ebs.gr>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1129491219.1616.18.camel>