From owner-freebsd-bluetooth@FreeBSD.ORG Wed May 7 17:24:41 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 3F9BE1065671 for ; Wed, 7 May 2008 17:24:41 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id EBA6B8FC1E for ; Wed, 7 May 2008 17:24:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A558A6.dip.t-dialin.net [84.165.88.166]) by redbull.bpaserver.net (Postfix) with ESMTP id E724E2E1FB for ; Wed, 7 May 2008 19:24:36 +0200 (CEST) Received: from deskjail (unknown [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id 94202109B1F for ; Wed, 7 May 2008 19:24:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1210181074; bh=96eB3lFGQHWVo2b0TUSaXhqsdFDWBFFxL 7N+iYmoi7A=; h=Date:From:To:Subject:Message-ID:Mime-Version: Content-Type:Content-Transfer-Encoding; b=spWWaM6GW2b+mnTxukd2o6/B CgIZUVmt5PHZgS5nAaX/1h2T8okqjfkxdBdWFaAR1FZBtLhO+j0fj2/xG9T77EmNm0z SRW+uQfs1UidJDllXwNib7kccX7f14y5ZWejOgVaso3taV+3+soCSXCiamLk4TBEN0X i85jqeTnwACW4PVja3YsqhCqX+b8kxdg2zeU3u5Gq5pDBX49nH9izvdGNk5raX5y6DR 5eksWGppGPZrWZncnM8UsKPPLsOnwmq5VKtdVDJznaIygkJoYMm+K269JsMtqe2rDdT 2Zd4hiNpaIrf9JsRsLZVpl70ZqeEG8G1tUYw8ui5y6HdeAqo5w== Date: Wed, 7 May 2008 19:24:34 +0200 From: Alexander Leidinger To: bluetooth@freebsd.org Message-ID: <20080507192434.32afce8b@deskjail> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; i686-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.323, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, NO_RDNS 0.50, RDNS_DYNAMIC 0.10, TW_KB 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: Subject: 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 17:24:41 -0000 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). Any hints regarding this specific keyboard/mouse kombo? Bye, Alexander. -- Ferengi Rule of Acquisition #65: Win or lose, there's always Hupyrian beetle snuff. -- ST: Legends of the Ferengi http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-bluetooth@FreeBSD.ORG Wed May 7 18:53:00 2008 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 05357106564A for ; Wed, 7 May 2008 18:53:00 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.freebsd.org (Postfix) with ESMTP id A040A8FC1A for ; Wed, 7 May 2008 18:52:59 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from [192.168.1.100] (adsl-68-252-38-213.dsl.wotnoh.ameritech.net [68.252.38.213]) (authenticated bits=0) by mail.united-ware.com (8.14.2/8.14.2) with ESMTP id m47Ig0Jj026307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 May 2008 14:42:01 -0400 (EDT) (envelope-from amistry@am-productions.biz) From: Anish Mistry Organization: AM Productions To: freebsd-bluetooth@freebsd.org Date: Wed, 7 May 2008 14:32:40 -0400 User-Agent: KMail/1.9.7 References: <20080507192434.32afce8b@deskjail> In-Reply-To: <20080507192434.32afce8b@deskjail> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5755898.fHQzh58U11"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200805071432.48331.amistry@am-productions.biz> X-Virus-Scanned: ClamAV 0.93/7008/Thu May 1 15:52:04 2008 on mail.united-ware.com X-Virus-Status: Clean Cc: Alexander Leidinger 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 18:53:00 -0000 --nextPart5755898.fHQzh58U11 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 07 May 2008, 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-Dece >mber/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). That program should really be changed so that you don't have to=20 specify a uhid device. I did something similar with my device=20 suspend program where you just specify the uhub device and a port=20 number. I think you might be able to modify the hid2hci program to=20 do that. http://am-productions.biz/docs/upower.c =2D-=20 Anish Mistry amistry@am-productions.biz AM Productions http://am-productions.biz/ --nextPart5755898.fHQzh58U11 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkgh9ckACgkQxqA5ziudZT2arwCeLeYtYU5kK4oiqLA+NOWXJZ4H +k0AnjGNfM2biiMofFGYGqtL2j83BbkJ =7LO/ -----END PGP SIGNATURE----- --nextPart5755898.fHQzh58U11-- 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 From owner-freebsd-bluetooth@FreeBSD.ORG Wed May 7 23:07:55 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 A43551065673 for ; Wed, 7 May 2008 23:07:55 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 33E218FC16 for ; Wed, 7 May 2008 23:07:55 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A550B9.dip.t-dialin.net [84.165.80.185]) by redbull.bpaserver.net (Postfix) with ESMTP id 7AF482E163; Thu, 8 May 2008 01:07:49 +0200 (CEST) Received: from deskjail (unknown [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id A8AAE1022FA; Thu, 8 May 2008 01:07:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1210201666; bh=UldtfPmY3+USbRk656kvyXkg2QyuKM0Tp c/JZAW0k1g=; h=Date:From:To:Subject:Message-ID:In-Reply-To: References:Mime-Version:Content-Type:Content-Transfer-Encoding; b=3Ud9n9jp1U9G9wwk8M/auq/Ngp/lu8Q5bEQudE+4uybU3XTW9tMHrptTX5+JAL8Rk ANkhNfiFpX6v2iF9k9nP5jOUB5T+nlE+Q7nZdxlW1HvtTzl7T1Ev7ZPRtul2kMwNXMn hEd1k6uj10Lgg7zG9HFGYFqHTG0W6G2rfryYN8m4XOzJi+QW+ESOvtRIzxuPXCdxvG6 qtqJiRWglH7Z0uN5rP/uYvoe95wdBEOwJbfhMtPkt0RCEVwTFAJwjQ5yaHatBy3+Nqp xx9gG/8qfutNyFZtA6Me2WxffBd4jkfADO3E/TcQ8/Q6qrfjipqeR7ZoexnmzGNl7JB HyyuHN59Q== Date: Thu, 8 May 2008 01:07:46 +0200 From: Alexander Leidinger To: "Maksim Yevmenkin" , bluetooth@freebsd.org Message-ID: <20080508010746.0388b146@deskjail> In-Reply-To: References: <20080507192434.32afce8b@deskjail> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.8; i686-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.323, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, NO_RDNS 0.50, RDNS_DYNAMIC 0.10, TW_KB 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: 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 23:07:55 -0000 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? > 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. There's no way to know this based upon some vendor/product IDs? > 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 Yes, I understand that, the problem is: the ums part does not work for me (8-current from March). > 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. I have a separate dongle, but having a second one (the logitech one) would not be bad. We just need a way to say "I want this to be a hci device when I plug it in automatically". Bye, Alexander. -- Fry: I'm not a robot like you. I don't like having disks crammed into me... unless they're Oreos, and then only in the mouth. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-bluetooth@FreeBSD.ORG Wed May 7 23:19:40 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 10B0B106564A for ; Wed, 7 May 2008 23:19:40 +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 3B2738FC14 for ; Wed, 7 May 2008 23:19:38 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1067101fgb.35 for ; Wed, 07 May 2008 16:19:37 -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=H/5kzzYx1xRaA7ClTpO4RkbUKfvChlGQnBOmH09vuQw=; b=b+xcyDXSZy/LJZ8HArpaM1fHhZICrV/GpDn9yg3qlTG/Fe+RDLmY6r2TcKB/y295xBy67CWR6ww5mOmaf59+z4pHDTq9LRTqMkByUi+6YBqgrbyUl7cdKEhsDQHbspqj+G3UD2AEpRi9ow8gux1jcTtHBwg7CJpW/cpBDiX55k8= 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=UMxtt0I/D/9vdEi9q3eUmp/tXrgnJf2feIK5PajIENtocHj/1UixRLzWlcpJ3rKeNkOJnRmB/T/fXWOb/EY7YkFcCd7yKQOFKg4WfkmSJYxLkk22rAVZ+4XeP0fqpsXI+o7MKtoJw8REpQ5+2d42qgwsc+YEmff3+C4c4rXbOYs= Received: by 10.86.77.5 with SMTP id z5mr4937284fga.13.1210202377469; Wed, 07 May 2008 16:19:37 -0700 (PDT) Received: by 10.86.71.15 with HTTP; Wed, 7 May 2008 16:19:37 -0700 (PDT) Message-ID: Date: Wed, 7 May 2008 16:19:37 -0700 From: "Maksim Yevmenkin" To: "Alexander Leidinger" In-Reply-To: <20080508010746.0388b146@deskjail> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080507192434.32afce8b@deskjail> <20080508010746.0388b146@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 23:19:40 -0000 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. >> 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. > > There's no way to know this based upon some vendor/product IDs? well, yes, that is the only way to know. the thing is that someone has to keep this list up-to-date. >> 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 > > Yes, I understand that, the problem is: the ums part does not work for > me (8-current from March). > >> 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. > > I have a separate dongle, but having a second one (the logitech one) > would not be bad. We just need a way to say "I want this to be a hci > device when I plug it in automatically". devd(8) could be used to run hid2hci automatically when device is plugged. devd.conf entry will contain device name, vendor id/device id pair to match againts. after device warm resets itself it will be recognized (hopefully) as bluetooth dongle. thanks, max 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