From owner-freebsd-bluetooth@FreeBSD.ORG Wed Nov 14 18:54:19 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 2880316A420 for ; Wed, 14 Nov 2007 18:54:19 +0000 (UTC) (envelope-from emillbrandt@coldhaus.com) Received: from workbench.coldhaus.com (workbench.coldhaus.com [74.0.48.218]) by mx1.freebsd.org (Postfix) with ESMTP id D5DB213C46E for ; Wed, 14 Nov 2007 18:54:17 +0000 (UTC) (envelope-from emillbrandt@coldhaus.com) Received: from localhost (localhost [127.0.0.1]) by workbench.coldhaus.com (8.14.1/8.14.1) with ESMTP id lAEIsGVo003848; Wed, 14 Nov 2007 13:54:16 -0500 (EST) X-Virus-Scanned: amavisd-new at coldhaus.com Received: from workbench.coldhaus.com ([127.0.0.1]) by localhost (workbench.coldhaus.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Gsw-ExWkepoL; Wed, 14 Nov 2007 13:53:30 -0500 (EST) Received: from slate.coldhaus.com (maenad.coldhaus.com [74.0.48.222]) by workbench.coldhaus.com (8.14.1/8.14.1) with ESMTP id lAEIr6LH012326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Nov 2007 13:53:08 -0500 (EST) Message-ID: <473B4412.3090505@coldhaus.com> Date: Wed, 14 Nov 2007 13:53:06 -0500 From: Eric Millbrandt User-Agent: Thunderbird 2.0.0.6 (X11/20070806) MIME-Version: 1.0 To: Maksim Yevmenkin References: <472DFCE2.2010707@coldhaus.com> <472E3F45.3080909@coldhaus.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 14 Nov 2007 18:54:19 -0000 Maksim Yevmenkin wrote: > On 11/4/07, Eric Millbrandt wrote: > >> Maksim Yevmenkin wrote: >> >>>> 1) make sure you have paired bluetooth keyboard/mouse and your pc >>>> >>>> >>>> >>>> >> Oops, I just figured out how to pair the keyboard. You need to hold the >> power button down for three seconds and then enter the pin. The >> keyboard works great. >> > > ok > > >> Why would the mouse buttons work but not cursor movement? >> > > what bluetooth mouse do you have exactly? > > you tell me that buttons work, so i assume, bluetooth communication > channel works. > > i dumped the hid descriptor that you have provided in your previous > email, and got > > > === > > Collection page=Consumer usage=Consumer_Control > Input id=20 size=2 count=1 page=Generic_Desktop usage=Mouse > Variable, logical range 0..3 > Input id=20 size=1 count=1 page=Microsoft usage=0xfe11 Variable, > logical range 0..1 > End collection > Collection page=Generic_Desktop usage=Mouse > Collection page=Generic_Desktop usage=Pointer > Input id=17 size=1 count=1 page=Button usage=Button_1 Variable, > logical range 0..1 > Input id=17 size=1 count=1 page=Button usage=Button_2 Variable, > logical range 0..1 > Input id=17 size=1 count=1 page=Button usage=Button_3 Variable, > logical range 0..1 > Input id=17 size=1 count=1 page=Button usage=Button_4 Variable, > logical range 0..1 > Input id=17 size=4 count=1 page=Generic_Desktop usage=X Variable > Relative, logical range 0..127 > End collection > End collection > Collection page=Consumer usage=Consumer_Control > Feature id=25 size=8 count=1 page=Microsoft usage=0xff18 Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff19 Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff1a Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff1b Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff1c Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff1d Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff1e Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff1f Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff20 Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff21 Variable, > logical range 0..255 > Feature id=25 size=8 count=1 page=Microsoft usage=0xff22 Variable, > logical range 0..255 > Feature id=25 size=1 count=1 page=Microsoft usage=0xff23 Variable, > logical range 0..1 > End collection > > === > > one thing that is very strange is that i'm not seeing input report for > the Y axis. this could be the problem with usb hid descriptor parsing, > or (less likely), perhaps, this mouse uses non-standard hid report. i > will need to decode it manually to see where the problem is. > > thanks, > max > > > I tried the mouse with a linux distribution and had better luck. I was able to use sdptool, from the bluez package, I think..., to get a working hid descriptor. The mouse reports itself as a 'Microsoft Bluetooth Notebook Mouse 5000' 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 0x95 0x03 0x75 0x08 0x15 0x81 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 0x00 Now I get cursor movement and all the buttons and mouse wheel work. Thanks for the help. Eric