From owner-freebsd-bluetooth@FreeBSD.ORG Wed Mar 8 18:40:57 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7CB916A420 for ; Wed, 8 Mar 2006 18:40:57 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from ismybrain.com (ismybrain.com [64.246.42.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5158043D5D for ; Wed, 8 Mar 2006 18:40:57 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [10.254.186.111] (localhost.localdomain [127.0.0.1]) by ismybrain.com (8.11.6/8.11.6) with ESMTP id k28IesM26776; Wed, 8 Mar 2006 13:40:54 -0500 Message-ID: <440F2534.4080205@savvis.net> Date: Wed, 08 Mar 2006 10:40:52 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Brueffer References: <440DCFF0.6090809@savvis.net> <200603080249.11559.markus@brueffer.de> <1141786606.753.11.camel@RabbitsDen> <200603081517.43317.markus@brueffer.de> In-Reply-To: <200603081517.43317.markus@brueffer.de> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: apple bluetooth keyboard 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: Wed, 08 Mar 2006 18:40:57 -0000 >>>>i now own apple bluetooth keyboard. i had a minute to spare and tried >>>>bthidd(8) and bthidcontrol(8) with the most recent changes by Markus >>>>Brueffer. >>>> >>>>i'm very pleased to say that apple bluetooth keyboards almost works. in >>>>fact, i'm typing this email using apple bluetooth keyboard. >>> >>>Nice! Could you please post the output of a bthidcontrol query? >>> >>>Markus >> >>If you would settle for mine, here it is ;) > > Thanks! mine is identical (bdaddr is the only difference). >>bthidcontrol -a a_kbd query >>device { >> bdaddr 00:0a:95:45:0d:a9; >> control_psm 0x11; >> interrupt_psm 0x13; >> reconnect_initiate true; >> battery_power false; > ^^^^^ > Odd, the keyboard is battery powered, isn't it? yes, i noticed that too. strange... another unusual behavior is that the keyboard does not seem to close baseband connection. for example if i start bthidd(8) and press keys on the keyboard, it will connects to the bthidd(8) as expected. in other words baseband connection is initiated from the keyboard. however, if i kill bthidd(8) the keyboard keeps baseband connection open. now if start bthidd(8) the keyboard does not work. bthidd(8) waits for it to connect (because reconnect_initiate is set to true), but keyboard does not connect. you can get the keyboard re-connect by power cycling it or manually disconnecting baseband with hccontrol(8). also i think there is a bug in bthidd(8) kbd.c (kbd_process_keys function). i think it needs a rewrite :) thanks, max