From owner-freebsd-bluetooth@FreeBSD.ORG Fri Jun 29 18:45:05 2007 Return-Path: X-Original-To: bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A201B16A469 for ; Fri, 29 Jun 2007 18:45:05 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by mx1.freebsd.org (Postfix) with ESMTP id 5FE4D13C455 for ; Fri, 29 Jun 2007 18:45:05 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so233222anc for ; Fri, 29 Jun 2007 11:45:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; 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; b=pH2rU3nHcZayZFTFNLhc+137BNLn77c9H5+sZrWEcrRsPpwZ3Eoo+U7k/Snqt3p4lmnDEreokeZt76JDwkeSgvAWG1aW85AgjYGxfqRxSgHYkwG5RI7W/NW7Ln4ZJ5mtDKy+LaQmyjvd4cUgZy4i+0Lj24cvnPzMvPm5IOcAFT4= 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=nDmIsizjPihEx6tgxLCTiUxRYbrKgmNpysUSDJLHKKT7/maoxt+NFF+P/xac2IFghyrfcoU4prl4zj9tfhzpnN07N2VUi9IVHxol44vm7nQge5R3AHDZi26zXPTiqRd6o8KX4SkRm3Qb9xBbLLo4DDi3Rd2VlIpwGFfXjaZTnf4= Received: by 10.100.94.3 with SMTP id r3mr2299815anb.1183141074374; Fri, 29 Jun 2007 11:17:54 -0700 (PDT) Received: by 10.100.154.8 with HTTP; Fri, 29 Jun 2007 11:17:54 -0700 (PDT) Message-ID: Date: Fri, 29 Jun 2007 11:17:54 -0700 From: "Maksim Yevmenkin" To: "Vladimir Grebenschikov" In-Reply-To: <1183067346.1319.10.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1183067346.1319.10.camel@localhost> Cc: bluetooth Subject: Re: Microsoft Wireless Mouse 8000 with bthhid 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: Fri, 29 Jun 2007 18:45:05 -0000 On 6/28/07, Vladimir Grebenschikov wrote: > Hi > > It was easily detect and attached to bthidd. > (review on http://www.ixbt.com/peripheral/ms-wlm-8000.shtml - sorry on > Russian) > > HID descriptor is big (see below). > > But it works a bit strange: > > 1,2,3 buttons works as expected. > Mouse wheel does not produce any events according to xev. > Horizontal scroll does not works also. > Additional buttons produce Button8, Button9 events. > > Any hints how to make wheel work ? i dumped the descriptor and there are some things that looks strange, i.e. Collection page=Generic_Desktop usage=Mouse 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=1 count=1 page=Button usage=Button_5 Variable, logical range 0..1 Input id=17 size=8 count=1 page=Generic_Desktop usage=X Variable Relative, logical range -127..127 Input id=17 size=8 count=1 page=Generic_Desktop usage=Y Variable Relative, logical range -127..127 Collection page=0x0000 usage=0x0000 Feature id=18 size=2 count=1 page=Generic_Desktop usage=Resolution_Multiplier Variable, logical range 0..1, physical range 0..16 Input id=17 size=8 count=1 page=Generic_Desktop usage=Wheel Variable Relative, logical range -127..127 End collection Collection page=0x0000 usage=0x0000 Feature id=18 size=2 count=1 page=Generic_Desktop usage=Resolution_Multiplier Variable, logical range 0..1, physical range 0..16 Input id=17 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, logical range -127..127 End collection End collection End collection End collection as you can see buttons, x and y are in the first collection Generic_Desktop/Pointer, however, wheel and ac_pan appear in another collection with usage and page set to 0x0000. it looks like there is another parsing bug in libusbhid(3). once it fixed wheel should just work. also someone needs to teach bthidd(8) to handle ac_pan usage. thanks, max