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