From owner-freebsd-bluetooth@FreeBSD.ORG Wed Nov 17 19:55:17 2004 Return-Path: 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 60EFD16A4CE for ; Wed, 17 Nov 2004 19:55:17 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F46643D41 for ; Wed, 17 Nov 2004 19:55:17 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45])iAHJt1Jn001227; Wed, 17 Nov 2004 13:55:01 -0600 Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 17 Nov 2004 13:54:58 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 17 Nov 2004 13:54:47 -0600 Message-ID: <419BAC86.9040706@savvis.net> Date: Wed, 17 Nov 2004 11:54:46 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Hugo D. Valentim" References: <200411171924.20835.hvalentim@gmx.net> In-Reply-To: <200411171924.20835.hvalentim@gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Nov 2004 19:54:47.0893 (UTC) FILETIME=[4ADC2050:01C4CCDF] X-ECS-MailScanner: No virus is found cc: freebsd-bluetooth@freebsd.org Subject: Re: dongle recognized as keyboard (?) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 19:55:17 -0000 Hi, > My bluetooth dongle is automatically being recognized has a keyboard > (a /dev/ukbd0 is created but NO /dev/ubt0), whereas I want to use > it to connect to a mobile phone (see log bellow). > > This is a real nag since I am left without keyboard and have no way > to type whenever I plug the dongle. > > I am using 5.3-release. In 5.2.1 this did not happen. > > Any ideas, please? Am I am missing something? well, for once adjust your /etc/devd.conf (or /etc/usbd.conf if you are running usbd(8)) to NOT activate usb keyboard by default. you should be looking for lines like # When a USB keyboard arrives, attach it as the console keyboard attach 100 { device-name "ukbd0"; action "test -c /dev/kbd1 && kbdcontrol -k /dev/kbd1 < /dev/console"; }; detach 100 { device-name "ukbd0"; action "kbdcontrol -k /dev/kbd0 < /dev/console"; }; same for the usb mouse # The entry below starts moused when a mouse is plugged in. Moused # stops automatically (actually it bombs :) when the device disappears. device "Mouse" devname "ums[0-9]+" attach "/etc/rc.d/moused start ${DEVNAME}" > I have two USB plugs (Compaq laptop): one has a Tecom BT3033A dongle, > the other has nothing: > > uhci0: port 0x1800-0x181f irq 5 at device > 7.2 on pci0 uhci0: [GIANT-LOCKED] usb0: > on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, > rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ok that is hub on motherboard > uhub1: Broadcom product 0x3535, class 9/0, rev 2.00/1.00, addr 2 > uhub1: 3 ports with 0 removable, bus powered ubt0: Broadcom Corp ok that is hub(!) on your dongle > Bluetooth Transceiver, rev 1.10/1.00, addr 3 > ubt0: Broadcom Corp Bluetooth Transceiver, rev 1.10/1.00, addr 3 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 > ubt0: Interface 1 (alt.config 4) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=64; nframes=5, buffer size=320 ok that looks like normal bluetooth dongle > ukbd0: Broadcom product 0x0099, rev 1.10/1.00, addr 4, iclass 3/1 kbd1 at ukbd0 whoa! that looks like usb keyboard! > ums0: Broadcom product 0x0097, rev 1.10/1.00, addr 5, iclass 3/1 ums0: 3 buttons whoa! that looks like usb mouse! well, i got to have this specimen in my lab. from what i can see the dongle gives 3 (!) interfaces. 1) bluetooth usb dongle (ubt0) 2) bluetooth keyboard (ukbd0) 3) bluetooth mouse (ums0) all 3 appears active at the same time. this dongle has 'bluetooh hid proxy' feature active by default *and* at the same time is still accessible via hci. i've never seen anything like this before. from what i can see all 3 interfaces are recognized, so everything should work. and, btw there is no /dev/ubt0, so dont worry about it. try to run # ngctl li and you should see ubt0 netgraph node. if you do then just run # rc.bluetooth start ubt0 everything should be working. your keyboard is switched to ukbd0 (by default) and that is why you have to change /etc/devd.conf and/or /etc/usbd.conf. if you had bluetooth keyboard then it would work just like usb keyboard. hope that helps, max