Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2005 11:10:22 -0700
From:      Maksim Yevmenkin <maksim.yevmenkin@savvis.net>
To:        vova@fbsd.ru
Cc:        freebsd-bluetooth@freebsd.org, Warner Losh <imp@bsdimp.com>
Subject:   Re: [RFC] rc.d integration for the bluetooth subsystem
Message-ID:  <4353E90E.7070602@savvis.net>
In-Reply-To: <1129538709.1250.10.camel@localhost>
References:  <43519460.1090605@ebs.gr> <1129491219.1616.18.camel@localhost>	<43534AD7.5070809@ebs.gr> <1129538709.1250.10.camel@localhost>

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

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





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