From owner-freebsd-bluetooth@FreeBSD.ORG Mon Nov 5 03:31:27 2007 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6E1716A41B for ; Mon, 5 Nov 2007 03:31:27 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by mx1.freebsd.org (Postfix) with ESMTP id 9B00813C4AA for ; Mon, 5 Nov 2007 03:31:27 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from [10.0.3.231] ([70.21.144.51]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JR0002ONHM9U780@vms042.mailsrvcs.net> for freebsd-bluetooth@freebsd.org; Sun, 04 Nov 2007 20:30:12 -0600 (CST) Date: Sun, 04 Nov 2007 21:29:50 -0500 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: To: Maksim Yevmenkin Message-id: <1194229790.861.5.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-type: text/plain Content-transfer-encoding: 7bit References: <472DFCE2.2010707@coldhaus.com> <472E39A9.5090107@coldhaus.com> Cc: Eric Millbrandt , freebsd-bluetooth@freebsd.org Subject: Re: bluetooth mouse/keyboard blues X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 03:31:27 -0000 On Sun, 2007-11-04 at 14:47 -0700, Maksim Yevmenkin wrote: > On 11/4/07, Eric Millbrandt 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