From owner-freebsd-bluetooth@FreeBSD.ORG Sun Nov 4 20:25:00 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 765A516A417 for ; Sun, 4 Nov 2007 20:25:00 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id F0A7D13C4A6 for ; Sun, 4 Nov 2007 20:24:59 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so984618nfb for ; Sun, 04 Nov 2007 12:24: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=zdq6RRA1gmA/BViN4ELvdzU3KzWHI2kcb6th6FaT1LU=; b=WaACoessawTFsFVmQFYExlWaY2JRZGgTB5cMu6dIOyHkZ4wo2PKAXQKQWG8JIUM1qaxtJwpoSk/DLiJCMyVhgCbvjVtKScKxmcHViRgr6ovSkau0AonoBjB/ydELR3wbB5rUg8EdYp7Nvj7PWsJ+B23+/o5r9Glr8Sa3zK47Rts= 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=eTaNfef0M4uboUpfvTg3hKyyF0t6YJZDFkwhP+ZWqLSr/OVsR4F++RtJ1T23qiBLJIu9wLOWZIJUUJrnjM/7puBaonsC0duXZUWP2NEisVAv+4ua2WwhLdynxdvAaVvL5qWkhapOE+JI0RjUJTG2B+gmh+t2rBFpNEiJkdC1ukQ= Received: by 10.86.4.2 with SMTP id 2mr2809922fgd.1194207887509; Sun, 04 Nov 2007 12:24:47 -0800 (PST) Received: by 10.86.83.12 with HTTP; Sun, 4 Nov 2007 12:24:47 -0800 (PST) Message-ID: Date: Sun, 4 Nov 2007 13:24:47 -0700 From: "Maksim Yevmenkin" To: "Eric Millbrandt" In-Reply-To: <472DFCE2.2010707@coldhaus.com> 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:25:00 -0000 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