Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Nov 2007 21:29:50 -0500
From:      "Alexandre \"Sunny\" Kovalenko" <alex.kovalenko@verizon.net>
To:        Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
Cc:        Eric Millbrandt <emillbrandt@coldhaus.com>, freebsd-bluetooth@freebsd.org
Subject:   Re: bluetooth mouse/keyboard blues
Message-ID:  <1194229790.861.5.camel@RabbitsDen>
In-Reply-To: <bb4a86c70711041347y4742ea7bxc287f1c9a1183108@mail.gmail.com>
References:  <472DFCE2.2010707@coldhaus.com> <bb4a86c70711041224i36bd2db6v824d92ab9a8655d8@mail.gmail.com> <bb4a86c70711041237k2f715a8em682c5cfc54bed7a4@mail.gmail.com> <472E39A9.5090107@coldhaus.com> <bb4a86c70711041347y4742ea7bxc287f1c9a1183108@mail.gmail.com>

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

On Sun, 2007-11-04 at 14:47 -0700, Maksim Yevmenkin wrote:
> On 11/4/07, Eric Millbrandt <emillbrandt@coldhaus.com> wrote:
> >
> >
> > Maksim Yevmenkin wrote:
> > > Eric,
> > >
> > > i just tried apple keyboard with
> > >
> > > FreeBSD ant.private.org 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Wed Sep 12
> > > 20:40:41 PDT 2007
> > > root@ant.private.org:/usr/obj/usr/src/sys/GENERIC  i386
> > >
> > > and it works just fine. granted, it almost a couple month old system,
> > > but bthidd(8) code has not changed in a while, so it still should
> > > work.  i'm cvsup'ing RELENG_7 and will build it later.
> > >
> > > thanks,
> > > max
> > >
> > How did you pair the apple keyboard?  I paired it initially with windows
> > xp, and put that passkey directly into hcsecd.conf.  Is there a step
> > that I am missing?
> 
> first of all, what you did is not going to work. pin code only used
> once - when pairing. after that link key is generated and stored.
> unless you store link key into the bluetooth device itself, each os
> will store link key someplace. the point is that this link key will
> only be known to the os that initiated the pairing.
> 
> so you need to re-pair keyboard and device (or rather os). apple
> keyboard is tricky because it does not give any visual of when user
> should enter pin code.  so, what i do is
> 
> 1) make sure hcsecd is running and configured with pin for your keyboard
> 
> 2) if bthidd is running - stop it
> 
> 3) run as root "bthidcontrol -a keyboard_bd_addr forget"
> 
> 4) start bthidd - this should cause bthidd to initiate connection to
> your keyboard. the later in turn will make keyboard to request the
> key.
> 
> 5) because freebsd does not know about the link key you have created
> under windows xp, freebsd will reject that link request and will
> request pin code
I have vague recollection that I had to remove /var/db/hcsecd.keys or
some such thing after pairing my keyboard with the Windows incarnation
of my laptop, so FreeBSD will generate new link key. However, now I do
not see such file in /var/db. Was that thing of the past, or are there
some conditions to be met for it to exist? And if it still is around,
does it need to be removed or would "bthidcontrol -a keyboard_bd_addr
forget" be sufficient?

-- 
Alexandre "Sunny" Kovalenko




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