From owner-freebsd-bluetooth@FreeBSD.ORG Sun Nov 4 21:47:26 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 D592C16A421 for ; Sun, 4 Nov 2007 21:47:26 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.187]) by mx1.freebsd.org (Postfix) with ESMTP id 5F1D513C4AA for ; Sun, 4 Nov 2007 21:47:25 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by mu-out-0910.google.com with SMTP id i10so1601411mue for ; Sun, 04 Nov 2007 13:47:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=RxQBVmEM5wNU8mnCK85Kn9cuSKH5K7oalvH0Bp1nriE=; b=uGv11pxe592iUcJBmVbJL20IkuOsniM8XiWP06FrccvOzG46r2pEmFSCNEQFhXkgRJtDsOLWi0t5gzyVPULOzokqavMIb84z25TOeqv622hyJoA8CwwQZxjCW7JEht6ES27JGYLSPtH5KOCi+tDBDAPgrorr033WUWdfg6mIpc8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hG8blApFHq0XEbkEdW7qFTFIjhRSs6sCz+26grOdMynxPEJ1pO4sI/nQO/ET00WIWPnwL85RKX9m0ZN45WmlEMCpce41C/Y0uA8xaNN2uetMiWbxljbZmzA0tzVAmGDZROY3J5J1uMtNDupqWvZQKhXYa4ZHJlst7NmnmdGvIjE= Received: by 10.86.97.7 with SMTP id u7mr2832949fgb.1194212836482; Sun, 04 Nov 2007 13:47:16 -0800 (PST) Received: by 10.86.83.12 with HTTP; Sun, 4 Nov 2007 13:47:11 -0800 (PST) Message-ID: Date: Sun, 4 Nov 2007 14:47:11 -0700 From: "Maksim Yevmenkin" To: "Eric Millbrandt" In-Reply-To: <472E39A9.5090107@coldhaus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <472DFCE2.2010707@coldhaus.com> <472E39A9.5090107@coldhaus.com> Cc: 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: Sun, 04 Nov 2007 21:47:27 -0000 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 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