From owner-freebsd-bluetooth@FreeBSD.ORG Thu Jun 28 22:24:55 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 ADCD516A469 for ; Thu, 28 Jun 2007 22:24:55 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by mx1.freebsd.org (Postfix) with ESMTP id 8FE9713C483 for ; Thu, 28 Jun 2007 22:24:54 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.67 (FreeBSD)) (envelope-from ) id 1I41rO-0000qh-Uj for bluetooth@freebsd.org; Fri, 29 Jun 2007 01:49:06 +0400 From: Vladimir Grebenschikov To: bluetooth Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Fri, 29 Jun 2007 01:49:06 +0400 Message-Id: <1183067346.1319.10.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: Subject: 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: Thu, 28 Jun 2007 22:24:55 -0000 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 ? device { bdaddr 00:12:5a:62:31:6d; 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 0xa1 0x02 0x85 0x13 0x05 0x0c 0x0a 0x38 0x02 0x95 0x01 0x75 0x08 0x15 0x81 0x25 0x7f 0x81 0x06 0x85 0x14 0x06 0x00 0xff 0x0a 0x01 0xfe 0x75 0x02 0x15 0x00 0x25 0x03 0x81 0x02 0x0a 0x00 0xfe 0x95 0x01 0x75 0x01 0x25 0x01 0x81 0x02 0x95 0x05 0x81 0x01 0x85 0x17 0x0a 0x06 0xff 0x0a 0x0f 0xff 0x25 0x01 0x35 0x01 0x45 0x10 0x95 0x02 0x75 0x02 0xb1 0x02 0x0a 0x04 0xff 0x35 0x00 0x45 0x00 0x95 0x01 0x75 0x01 0xb1 0x02 0x75 0x03 0xb1 0x01 0xc0 0xc0 0x05 0x01 0x09 0x02 0xa1 0x01 0x05 0x01 0x09 0x02 0xa1 0x02 0x85 0x11 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x05 0x95 0x05 0x75 0x01 0x25 0x01 0x81 0x02 0x75 0x03 0x95 0x01 0x81 0x01 0x05 0x01 0x09 0x30 0x09 0x31 0x95 0x02 0x75 0x08 0x15 0x81 0x25 0x7f 0x81 0x06 0xa1 0x02 0x85 0x12 0x09 0x48 0x95 0x01 0x75 0x02 0x15 0x00 0x25 0x01 0x35 0x01 0x45 0x10 0xb1 0x02 0x85 0x11 0x09 0x38 0x35 0x00 0x45 0x00 0x15 0x81 0x25 0x7f 0x75 0x08 0x81 0x06 0xc0 0xa1 0x02 0x85 0x12 0x09 0x48 0x75 0x02 0x15 0x00 0x25 0x01 0x35 0x01 0x45 0x10 0xb1 0x02 0x35 0x00 0x45 0x00 0x75 0x04 0xb1 0x01 0x85 0x11 0x05 0x0c 0x15 0x81 0x25 0x7f 0x75 0x08 0x0a 0x38 0x02 0x81 0x06 0xc0 0xc0 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 }; } -- Vladimir B. Grebenschikov SWsoft Inc. vova@swsoft.com 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 From owner-freebsd-bluetooth@FreeBSD.ORG Sat Jun 30 15:00:39 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 31F0216A46B for ; Sat, 30 Jun 2007 15:00:39 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smarthost01.eng.net (smarthost01.eng.net [213.130.146.173]) by mx1.freebsd.org (Postfix) with ESMTP id C72EB13C4C6 for ; Sat, 30 Jun 2007 15:00:38 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from netmail01.eng.net ([213.130.128.38] helo=rya-online.net) by smarthost01.eng.net with smtp (Exim 4.62) (envelope-from ) id 1I4XXT-0008GA-E4 for bluetooth@freebsd.org; Sat, 30 Jun 2007 08:38:46 +0100 Received: (nullmailer pid 458 invoked by uid 1000); Sat, 30 Jun 2007 07:37:07 -0000 Date: Sat, 30 Jun 2007 08:37:07 +0100 (BST) To: bluetooth@freebsd.org In-Reply-To: References: <1183067346.1319.10.camel@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1183189027.792619.450.nullmailer@galant.ukfsn.org> From: Iain Hibbert Cc: Subject: Apple mouse/keyboard power message 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: Sat, 30 Jun 2007 15:00:39 -0000 Hi Does anybody use an Apple Bluetooth mouse/keyboard? Although I am using NetBSD and HID works kind of differently, I see a strangeness in the reporting of battery power messages that I don't understand.. for instance, my Mighty Mouse descriptor parses out as the following: Collection page=Generic_Desktop usage=Mouse Input id=2 size=1 count=1 page=Button usage=Button_1 Variable, logical range 0..1 Input id=2 size=1 count=1 page=Button usage=Button_2 Variable, logical range 0..1 Input id=2 size=1 count=1 page=Button usage=Button_3 Variable, logical range 0..1 Input id=2 size=1 count=1 page=Button usage=Button_4 Variable, logical range 0..1 Input id=2 size=4 count=1 page=0x0000 usage=0x0000 Const Variable, logical range 0..1 Collection page=Generic_Desktop usage=Pointer Input id=2 size=8 count=1 page=Generic_Desktop usage=X Variable Relative, logical range -127..127 Input id=2 size=8 count=1 page=Generic_Desktop usage=Y Variable Relative, logical range -127..127 Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, logical range -127..127 Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable Relative, logical range -127..127 End collection Input id=2 size=8 count=1 page=Vendor_Defined usage=0x00c0 Variable, logical range -127..127 Feature id=71 size=8 count=1 page=Device_Controls usage=Battery_Strength Variable NoPref Volatile, logical range 0..100 End collection which seems ok, but I never seem to get feature reports with id#71. Instead I get a report id#48 containing a single byte (value 0x01) when the battery is about to die.. the Apple keyboard I have does the same, though it doesn't define any battery strength feature report in the descriptor, and I think the original Apple mouse I had was the same. (I'm not sure what the 'Vendor Defined' byte in the id#2 input report consists of, but it doesn't seem to be battery related.) I've looked at the FreeBSD bthidd(8) but can't see any particular handling for this kind of behaviour, if anybody uses Apple hardware on FreeBSD can they say what, if anything, happens? thanks, iain From owner-freebsd-bluetooth@FreeBSD.ORG Sat Jun 30 19:57:00 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 CA0D416A469 for ; Sat, 30 Jun 2007 19:57:00 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.freebsd.org (Postfix) with ESMTP id ACD6813C469 for ; Sat, 30 Jun 2007 19:57:00 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from [10.0.3.231] ([70.21.158.80]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JKG00KURSQFSUY3@vms046.mailsrvcs.net> for bluetooth@freebsd.org; Sat, 30 Jun 2007 14:56:40 -0500 (CDT) Date: Sat, 30 Jun 2007 15:56:01 -0400 From: "Alexandre \"Sunny\" Kovalenko" In-reply-to: <1183189027.792619.450.nullmailer@galant.ukfsn.org> To: Iain Hibbert Message-id: <1183233361.844.3.camel@RabbitsDen> MIME-version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Content-type: text/plain Content-transfer-encoding: 7bit References: <1183067346.1319.10.camel@localhost> <1183189027.792619.450.nullmailer@galant.ukfsn.org> Cc: bluetooth@freebsd.org Subject: Re: Apple mouse/keyboard power message 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: Sat, 30 Jun 2007 19:57:00 -0000 On Sat, 2007-06-30 at 08:37 +0100, Iain Hibbert wrote: > Hi > Does anybody use an Apple Bluetooth mouse/keyboard? Although I am using > NetBSD and HID works kind of differently, I see a strangeness in the > reporting of battery power messages that I don't understand.. for > instance, my Mighty Mouse descriptor parses out as the following: > > Collection page=Generic_Desktop usage=Mouse > Input id=2 size=1 count=1 page=Button usage=Button_1 Variable, logical range 0..1 > Input id=2 size=1 count=1 page=Button usage=Button_2 Variable, logical range 0..1 > Input id=2 size=1 count=1 page=Button usage=Button_3 Variable, logical range 0..1 > Input id=2 size=1 count=1 page=Button usage=Button_4 Variable, logical range 0..1 > Input id=2 size=4 count=1 page=0x0000 usage=0x0000 Const Variable, logical range 0..1 > Collection page=Generic_Desktop usage=Pointer > Input id=2 size=8 count=1 page=Generic_Desktop usage=X Variable Relative, logical range -127..127 > Input id=2 size=8 count=1 page=Generic_Desktop usage=Y Variable Relative, logical range -127..127 > Input id=2 size=8 count=1 page=Consumer usage=AC_Pan Variable Relative, logical range -127..127 > Input id=2 size=8 count=1 page=Generic_Desktop usage=Wheel Variable Relative, logical range -127..127 > End collection > Input id=2 size=8 count=1 page=Vendor_Defined usage=0x00c0 Variable, logical range -127..127 > Feature id=71 size=8 count=1 page=Device_Controls usage=Battery_Strength Variable NoPref Volatile, logical range 0..100 > End collection > > which seems ok, but I never seem to get feature reports with id#71. > Instead I get a report id#48 containing a single byte (value 0x01) when > the battery is about to die.. the Apple keyboard I have does the same, > though it doesn't define any battery strength feature report in the > descriptor, and I think the original Apple mouse I had was the same. > > (I'm not sure what the 'Vendor Defined' byte in the id#2 input report > consists of, but it doesn't seem to be battery related.) > > I've looked at the FreeBSD bthidd(8) but can't see any particular handling > for this kind of behaviour, if anybody uses Apple hardware on FreeBSD can > they say what, if anything, happens? > > thanks, > iain > _______________________________________________ > freebsd-bluetooth@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > To unsubscribe, send any mail to "freebsd-bluetooth-unsubscribe@freebsd.org" I am using Apple Bluetooth keyboard with FreeBSD (or I have been few weeks ago -- I am running around with my laptop and don't know yet what did USB cleanup do to it). Unfortunately (or fortunately ;), it just works. If you'd like me to produce some output or run some checks, I will be happy to do so. -- Alexandre "Sunny" Kovalenko