Date: Sun, 4 Nov 2007 14:47:11 -0700 From: "Maksim Yevmenkin" <maksim.yevmenkin@gmail.com> To: "Eric Millbrandt" <emillbrandt@coldhaus.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: bluetooth mouse/keyboard blues Message-ID: <bb4a86c70711041347y4742ea7bxc287f1c9a1183108@mail.gmail.com> In-Reply-To: <472E39A9.5090107@coldhaus.com> References: <472DFCE2.2010707@coldhaus.com> <bb4a86c70711041224i36bd2db6v824d92ab9a8655d8@mail.gmail.com> <bb4a86c70711041237k2f715a8em682c5cfc54bed7a4@mail.gmail.com> <472E39A9.5090107@coldhaus.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 6) now you should type pin code on the bluetooth keyboard and press enter so, to summarize, after you start bthidd (i.e. after step 4 above) wait a couple of seconds then try to type pin code and hit enter. if you dual boot your system and use the same bluetooth device you will need to re-pair your keyboard every time you boot to another os. (if) you can get a link key from win xp registry (or elsewhere) you can put the same link key into hcsecd.conf and then you will not need to re-pair. thanks, max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb4a86c70711041347y4742ea7bxc287f1c9a1183108>