From owner-freebsd-bluetooth@FreeBSD.ORG Tue Mar 7 20:56:58 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 BB78416A420 for ; Tue, 7 Mar 2006 20:56:58 +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 378CC43D46 for ; Tue, 7 Mar 2006 20:56:58 +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 k27KunM28350; Tue, 7 Mar 2006 15:56:50 -0500 Message-ID: <440DF38F.7020707@savvis.net> Date: Tue, 07 Mar 2006 12:56:47 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Iain Hibbert References: <440DCFF0.6090809@savvis.net> <1141761895.037384.5308.nullmailer@galant.ukfsn.org> In-Reply-To: <1141761895.037384.5308.nullmailer@galant.ukfsn.org> 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: Tue, 07 Mar 2006 20:56:58 -0000 Iain, >>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. > > Max, this is excellent news because mine arrived friday and I am about to > start working on HID support for NetBSD. Mostly this means porting bthidd > and bthidcontrol though we have wscons/wsmux here which I hope means I can > inject events already. yes, i think it should be pretty straight forward on netbsd. many people wanted to have wscons/wsmux in freebsd as well. >>another minor issue, which has nothing to do with, bthidd(8) or >>bthidcontrol(8), is pairing procedure. it is not very user friendly, because >>there is no indication as to when user should type pin code on the keyboard. >>this can be addresses by teaching hcsecd(8) to use external processes to >>obtain pin codes. hcsecd(8) could call external process that will display >>dialog to the user and request pin code. > > How do bluez/linux manage this? I have seen mention of a 'bluepin' > application but have no idea how it works.. well, i do not really know about {gnome|kde}bluetooth. linux used to have (and maybe still is) hcid daemon that would answer pin code requests. hcid would call external process (i.e. bluepin) and use simple stdin/stdout redirection to get pin from it. bluepin was/is essentially a python script that displays X dialog window with pin input box and some buttons and waits for user to enter a pin code. bluepin prints pin code on stdout, hcid gets it and sends pin code reply. thanks, max