From owner-freebsd-bluetooth@FreeBSD.ORG Sun Nov 4 20:44:56 2007 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 9F76F16A46C for ; Sun, 4 Nov 2007 20:44:56 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.186]) by mx1.freebsd.org (Postfix) with ESMTP id 1FA2813C48E for ; Sun, 4 Nov 2007 20:44:55 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by mu-out-0910.google.com with SMTP id i10so1588005mue for ; Sun, 04 Nov 2007 12:44:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; 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=4G4U2SjRPYJe0FtAohTkoY+ETgApRCsCrjgehV5afCg=; b=FEAnvwS5mjTcXrsgg8uGzxnluZ6ks2deBVVxLrKzMs7VDxoXNSKIubH7MA4ZVv6TTK/GMXMUxRx60XeB4SIsIB7kJMrVmFBiNfNP0FOtCaCG6ViZtkmiVfM+FNHIlQNwxSSDbFDJqGsSfPK2WVvDva/6r63lSD94ScZl2KZr4vI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Sg2DaXbWojF0RYlN4TW5y5oY59Ml3d4+LGKv+SJ3Q0EMBhgIh1TRwDGpCsPE+Bdc1elHHCx06OqLrqpA2ag1sWe++YLWz0RbvyqioI03iEgbR/hQpSDOu4JxZgxlNNwWj0r5SLLZ49FkP+4VxFTlounYtH0gR9ZadsmyIyX3G78= Received: by 10.86.65.11 with SMTP id n11mr2819535fga.1194208670486; Sun, 04 Nov 2007 12:37:50 -0800 (PST) Received: by 10.86.83.12 with HTTP; Sun, 4 Nov 2007 12:37:49 -0800 (PST) Message-ID: Date: Sun, 4 Nov 2007 13:37:49 -0700 From: "Maksim Yevmenkin" To: "Eric Millbrandt" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <472DFCE2.2010707@coldhaus.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: bluetooth mouse/keyboard blues 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: Sun, 04 Nov 2007 20:44:56 -0000 Eric, i just tried apple keyboard with FreeBSD ant.private.org 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Wed Sep 12 20:40:41 PDT 2007 root@ant.private.org:/usr/obj/usr/src/sys/GENERIC i386 and it works just fine. granted, it almost a couple month old system, but bthidd(8) code has not changed in a while, so it still should work. i'm cvsup'ing RELENG_7 and will build it later. thanks, max On 11/4/07, Maksim Yevmenkin wrote: > Eric, > > > I am having trouble setting up a bluetooth mouse and keyboard on FreeBSD > > 7.0-BETA1. I followed the instructions from the handbook and what I > > found on google here... > > http://destari.blogspot.com/2006/01/setting-up-bluetooth-mouse-on-freebsd.html > > . The keyboard does not work at all, but I am able to pull a > > configuration from bthidcontrol. The mouse buttons work, but I can't > > move the cursor. These issues occur in both on the console and in X. I > > included log messages and config files below. Any help would be greatly > > appreciated. > > 1) make sure you have paired bluetooth keyboard/mouse and your pc > > 2) what bluetooth keyboard and mouse are you using? > > 3) for keyboard, please make sure you have both vkbd(4) and kbdmux(4) > loaded. also make sure kbdmux(4) keyboard is the default keyboard. > > 4) are there any messages from bthidd(8) in /var/log/messages? > > 5) try to run bthidd(8) in foreground to see if it prints anything strange > > > 11:58 emillbrandt@slate:/home/emillbrandt# uname -a > > FreeBSD slate.coldhaus.com 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Mon Oct 29 > > 23:40:03 EDT 2007 > > emillbrandt@slate.coldhaus.com:/usr/obj/usr/src/sys/SLATE i386 > > ok > > > from dmesg > > Nov 4 10:57:38 slate kernel: ubt0: > 224/1, rev 2.00/19.58, addr 2> on uhub3 > > Nov 4 10:57:38 slate kernel: ubt0: Interface 0 endpoints: > > interrupt=0x81, bulk-in=0x82, bulk-out=0x2 > > Nov 4 10:57:38 slate kernel: ubt0: Interface 1 (alt.config 5) > > endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, > > buffer size=294 > > Nov 4 10:57:38 slate kernel: WARNING: attempt to > > net_add_domain(bluetooth) after domainfinalize() > > Nov 4 10:57:38 slate kernel: WARNING: attempt to > > net_add_domain(netgraph) after domainfinalize() > > Nov 4 11:51:27 slate bthidd[1453]: Opening outbound session for > > 00:1b:63:fc:6c:2c (new_device=1, reconnect_initiate=1) > > Nov 4 11:51:57 slate bthidd[1453]: Could not connect to > > 00:1b:63:fc:6c:2c. Host is down (64) > > Nov 4 11:52:27 slate kernel: kbd3 at vkbd0 > > this looks mostly ok. please make sure you have bluetooth connection > between your keyboard and your pc > > > 10:59 emillbrandt@slate:/home/emillbrandt# bthidcontrol -a keyboard query > > device { > > bdaddr 00:1b:63:fc:6c:2c; > > control_psm 0x11; > > interrupt_psm 0x13; > > reconnect_initiate true; > > battery_power false; > > normally_connectable true; > > hid_descriptor { > > 0x05 0x01 0x09 0x06 0xa1 0x01 0x85 0x01 > > 0x05 0x07 0x19 0xe0 0x29 0xe7 0x15 0x00 > > 0x25 0x01 0x75 0x01 0x95 0x08 0x81 0x02 > > 0x75 0x08 0x95 0x01 0x81 0x01 0x75 0x01 > > 0x95 0x05 0x05 0x08 0x19 0x01 0x29 0x05 > > 0x91 0x02 0x75 0x03 0x95 0x01 0x91 0x01 > > 0x75 0x08 0x95 0x06 0x15 0x00 0x26 0xff > > 0x00 0x05 0x07 0x19 0x00 0x2a 0xff 0x00 > > 0x81 0x00 0xc0 0x05 0x0c 0x09 0x01 0xa1 > > 0x01 0x85 0x47 0x05 0x01 0x09 0x06 0xa1 > > 0x02 0x05 0x06 0x09 0x20 0x15 0x00 0x26 > > 0xff 0x00 0x75 0x08 0x95 0x01 0x81 0x02 > > 0xc0 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 > > 0x85 0x11 0x15 0x00 0x25 0x01 0x75 0x01 > > 0x95 0x03 0x81 0x01 0x75 0x01 0x95 0x01 > > 0x05 0x0c 0x09 0xb8 0x81 0x02 0x06 0xff > > 0x00 0x09 0x03 0x81 0x02 0x75 0x01 0x95 > > 0x03 0x81 0x01 0x05 0x0c 0x85 0x12 0x15 > > 0x00 0x25 0x01 0x75 0x01 0x95 0x01 0x09 > > 0xcd 0x81 0x02 0x09 0xb3 0x81 0x02 0x09 > > 0xb4 0x81 0x02 0x09 0xb5 0x81 0x02 0x09 > > 0xb6 0x81 0x02 0x81 0x01 0x81 0x01 0x81 > > 0x01 0x85 0x13 0x15 0x00 0x25 0x01 0x75 > > 0x01 0x95 0x01 0x06 0x01 0xff 0x09 0x0a > > 0x81 0x02 0x75 0x01 0x95 0x07 0x81 0x01 > > 0xc0 > > }; > > } > > this looks fine to me > > > 10:59 emillbrandt@slate:/home/emillbrandt# bthidcontrol -a mouse query > > device { > > bdaddr 00:12:5a:57:a6:9a; > > control_psm 0x11; > > interrupt_psm 0x13; > > reconnect_initiate true; > > battery_power true; > > normally_connectable false; > > hid_descriptor { > > 0x05 0x0c 0x09 0x01 0xa1 0x01 0x05 0x01 > > 0x09 0x02 0x85 0x14 0x06 0x00 0xff 0x0a > > 0x12 0xfe 0x95 0x01 0x75 0x02 0x15 0x00 > > 0x25 0x03 0x81 0x02 0x0a 0x11 0xfe 0x75 > > 0x01 0x25 0x01 0x81 0x02 0x95 0x05 0x81 > > 0x01 0xc0 0x05 0x01 0x09 0x02 0xa1 0x01 > > 0x05 0x01 0x09 0x02 0x85 0x11 0x09 0x01 > > 0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x04 > > 0x95 0x04 0x75 0x01 0x25 0x01 0x81 0x02 > > 0x75 0x04 0x95 0x01 0x81 0x01 0x05 0x01 > > 0x09 0x30 0x09 0x31 0x09 0x38 0x00 0x00 > > 0x00 0x00 0x00 0x00 0x25 0x7f 0x81 0x06 > > 0x95 0x01 0x81 0x01 0xc0 0xc0 0x05 0x0c > > 0x09 0x01 0xa1 0x01 0x85 0x19 0x06 0x00 > > 0xff 0x1a 0x18 0xff 0x2a 0x22 0xff 0x95 > > 0x0b 0x75 0x08 0x15 0x00 0x26 0xff 0x00 > > 0xb1 0x02 0x0a 0x23 0xff 0x95 0x01 0x75 > > 0x01 0x25 0x01 0xb1 0x02 0x75 0x07 0xb1 > > 0x01 0xc0 > > }; > > } > > I added both of these to bthidd.conf > > this looks fine too. > > > from hcsecd.conf > > device { > > bdaddr 00:1b:63:fc:6c:2c; > > name "Apple Wireless Keyboard"; > > key nokey; > > pin "5625264"; > > } > > > > device { > > bdaddr 00:12:5a:57:a6:9a; > > name "Microsoft Bluetooth Notebook Mouse 5000"; > > key nokey; > > pin "0000"; > > } > > looks fine > > > DING! emillbrandt@slate:/home/emillbrandt# l2ping -a keyboard > > 0 bytes from keyboard seq_no=0 time=1905.898 ms result=0 > > 0 bytes from keyboard seq_no=1 time=38.023 ms result=0 > > 0 bytes from keyboard seq_no=2 time=13.141 ms result=0 > > looks normal (some bluetooth devices will always return 0 bytes in > l2cap echo response) > > > 11:45 emillbrandt@slate:/home/emillbrandt# l2ping -a mouse > > 0 bytes from mouse seq_no=0 time=1428.790 ms result=0 > > 0 bytes from mouse seq_no=1 time=47.168 ms result=0 > > 0 bytes from mouse seq_no=2 time=53.263 ms result=0 > > looks normal (some bluetooth devices will always return 0 bytes in > l2cap echo response) > > > rc.conf > > hcsecd_enable="YES" > > bthidd_enable="YES" > > looks ok > > btw, i have apple bluetooth keyboard here, so i will try to reproduce > the problem. > > thanks, > max >