From mboxrd@z Thu Jan 1 00:00:00 1970 From: Iain Hibbert Subject: Re: Apple Bluetooth devices: Battery level? Date: Wed, 10 Jun 2009 19:19:17 +0100 (BST) Message-ID: <1244657957.425041.1259.nullmailer@galant.ukfsn.org> References: <1244384236.30768.5690.camel@cookie.hadess.net> <1244642769.2690.51.camel@cookie.hadess.net> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <1244642769.2690.51.camel-MYKcRh6MmTE/Ra3EetS/fF6hYfS7NtTn@public.gmane.org> Sender: linux-bluetooth-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Bastien Nocera Cc: linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-input List-Id: linux-input@vger.kernel.org On Wed, 10 Jun 2009, Bastien Nocera wrote: > Doesn't look very useful, and I have no idea what the 00ff.00c0 part > does. I found this: http://www.opensource.apple.com/source/IOHIDFamily/IOHIDFamily-258.1/IOHIDFamily/AppleHIDUsageTables.h which labels it as "Reserved MouseData" and it seems to be related to the capacitance detectors. Run "hcidump -X" and place your fingers on the mouse top without actually clicking then move the mouse slightly. You will see 0x00 (no touching), 0x01 (left finger), 0x02 (right finger) and 0x03 (both fingers). I didn't see any other values. I think the battery strength is found by polling with the feature report id#71 but I don't know how you do that, libusb might be able to do it? as I mentioned before, you will also get an input report id#42 sent before the mouse dies (but that is not listed in the HID descriptor) iain