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