From owner-freebsd-bluetooth@FreeBSD.ORG Thu May 8 22:21:26 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 675681065670 for ; Thu, 8 May 2008 22:21:26 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id D96478FC23 for ; Thu, 8 May 2008 22:21:25 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so924657nfh.33 for ; Thu, 08 May 2008 15:21:24 -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:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=XSQvL5zRSTQK+L0ImR33dsqDqX6LckxR0037QPJLqNw=; b=sIldOhzfP6jXmxv49MZc8jjXvMf0YhPD7FqZPqTG2tjc0Jg8YzW7i/DBrPnNLeVS0pgwFV6N9ktyE88dZjYUPWFxO4F6tQlHFHF3CfOLIBhIoRVQ5280y3o8id4Ejt9FmYu7mqhLAy/0urhL3hqJjxn/hkIQRt7qfojvrLm1am8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=Kpf2OV5nKOzlDGCwAqtZfD0AhjrUfKRn8mcVMrZNtlOK2g/23CxzmoDB5q0oXBngZUlwHON7h/V+0ngitGfdavj7oissfW/OfaE4SXJiVB3MLSfZzVxiPFxW8/kLtvric9nX9uAUwC5HrXomFdFw6NuiT2Ruew6E/ZzikbWYgMk= Received: by 10.210.13.17 with SMTP id 17mr3683764ebm.94.1210283737592; Thu, 08 May 2008 14:55:37 -0700 (PDT) Received: from epsilon.local ( [89.214.211.167]) by mx.google.com with ESMTPS id f4sm3095381nfh.0.2008.05.08.14.55.35 (version=SSLv3 cipher=RC4-MD5); Thu, 08 May 2008 14:55:36 -0700 (PDT) Message-ID: <482376CC.8020108@FreeBSD.org> Date: Thu, 08 May 2008 22:55:24 +0100 From: Rui Paulo User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Maksim Yevmenkin References: <20080507192434.32afce8b@deskjail> <20080508010746.0388b146@deskjail> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Rui Paulo Cc: Alexander Leidinger , 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: Thu, 08 May 2008 22:21:26 -0000 Maksim Yevmenkin wrote: > On Wed, May 7, 2008 at 4:07 PM, Alexander Leidinger > wrote: >> Quoting "Maksim Yevmenkin" (Wed, 7 May 2008 13:05:02 -0700): >> >>> 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 >> It doesn't make sense to have something like this in the base system? > > yes, it does. however, one should be careful. original tool is under > gpl. there is a lot of code that looks very similar (if not identical) > to gpl version. also, at least for csr chips, the utility contain some > information about csr chips that they may or may not want be released. > i realize that this information is already public (due to gpl tool) > but you never know... i think port would be better solution for now. Then that's a problem for me because I wrote the utility. IANAL, but I don't think there's a problem here, because: * The utility I wrote reads a file with matching USB IDs. The original one has a list hardcoded into the program * I don't use libusb, I call ioctl()'s specific to the BSD USB stack * I didn't copy any code. * I don't think my program can be considered a derived work There are several open source tools out there that are similar, but have incompatible licenses. This is another case. Also, the author of hid2hci reads this list. If he considered that I have used code from his utility, he would probably have tried to convince me to change it, or even a threat to sue. (I don't know him, I'm just saying out loud what could happen.) Either way, I'm willing to do a port. Thanks, -- Rui Paulo