From owner-freebsd-bluetooth@FreeBSD.ORG Wed May 7 20:05:08 2008 Return-Path: Delivered-To: bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D55461065672 for ; Wed, 7 May 2008 20:05:08 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id E06538FC14 for ; Wed, 7 May 2008 20:05:04 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so952971fgb.35 for ; Wed, 07 May 2008 13:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; 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=5Zmav+SNvUKUPgFKuo+wGvERGlNWzbhv+YYcrP9KpSw=; b=TcVBSSGmmF10Sa0mIqDfepsMtMTtwzH7fZ/o4v8oECHSXJl8ojdynPDAWXWPDMSmBHdPAWawK5LBeOMXaDdd7HoTu/Ed6w1TscdiWtZxw3cL7JemS2KeQcye+b4hdNGAIaFVZplvDPegJwHl0KF81E/4HrcnhSGMHWFmzCj9jw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Mp+HRyuuK+kNRiSdIWnbub82Ggj3J+QTyZOWJz4XKvoXiQp5odZw7BXaWc3IMkcyy7Ftlt8OwYjscySOo8phFvQXc4/IPgN+mIYQdEP2qblCnAT2i2GfQYb+tYQM1osNv596n1TLlyOeksUJwWtjznjGwMite7JyRu9QSN0SeKU= Received: by 10.86.26.11 with SMTP id 11mr2419304fgz.23.1210190702967; Wed, 07 May 2008 13:05:02 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Wed, 7 May 2008 13:05:02 -0700 (PDT) Message-ID: Date: Wed, 7 May 2008 13:05:02 -0700 From: "Maksim Yevmenkin" To: "Alexander Leidinger" In-Reply-To: <20080507192434.32afce8b@deskjail> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080507192434.32afce8b@deskjail> Cc: bluetooth@freebsd.org Subject: Re: Fun with Logitech bluetooth keyboard (diNovo Edge)... 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, 07 May 2008 20:05:09 -0000 On Wed, May 7, 2008 at 10:24 AM, Alexander Leidinger wrote: > Hi, > > I bought a keyboard with an integrated touchpad from logitech. Just > plugging in the BT-dongle gives an usb hub with ums and ukbd. > Unfortunately the ums doesn't work for me yet (problem in a separate > mail to usb@). > > I googled a litte bit around and found a posting here > (http://lists.freebsd.org/mailman/htdig/freebsd-bluetooth/2006-December/000824.html) > which contains a program which puts the device into hci mode (by > accessing /dev/uhidX), so that I can use the HID devices with the > FreeBSD bluetooth stack directly. I haven't tried this yet (I would > have to remove ukbd and ums from the kernel...). > > Is there the possibility to get this hid2hci feature in our userland > (or into the kernel controllable via a sysctl)? I would would be good > to have this functionality at boot (in the kernel it would would allow > to have ukbd available while still being able to put the device into > hci mode). well, someone already ported hid2hci. http://lists.freebsd.org/pipermail/freebsd-bluetooth/2007-July/000989.html is a good starting point. i do not think that using sysctl is good solution for this. last time i looked this stuff was implemented on csr chips using so-called "boot mode" feature. basically, the device has a split personality - in one mode it pretends to be an usb hub with keyboard and mouse attached (hid) to it and in another - bluetooth dongle (hci). to switch between the modes one must set a so-called ps key and perform warm reset. the problems are 1) this is highly device specific 2) there is no good way to know if device can be switched between hid and hci. it is basically left to user to know that. 3) usually hid mode is made default, so device has to be switched into hci mode every time it is attached. the hid mode is really for user's advantage. its makes it possible to use wireless keyboards in bios screens etc. os does not need to know anything about bluetooth. all that is required from the os is usb support. while i do not object to hid2hci utility, personally, i would get a separate bluetooth dongle for another $20 or less. thanks, max