Thread (1 message) 1 message, 1 author, 2009-06-10

Re: Apple Bluetooth devices: Battery level?

From: Jiri Kosina <hidden>
Date: 2009-06-10 08:25:17
Also in: linux-input

Possibly related (same subject, not in this thread)

On Wed, 10 Jun 2009, Bastien Nocera wrote:
quoted
quoted
I just got an Apple Bluetooth Mighty Mouse, and was wondering whether 
anyone had information on how to get the battery level from the device 
(the keyboard apparently also allows that): 
http://support.apple.com/kb/TA27118?viewlocale=en_US
Anyone with an idea? An unparsed HID event? Does it need "poking"?
If the mouse is standard-compliant, it should be sending the battery level 
strength in usage 0x20 of device controls page (0x06).
Could you please obtain HID debug dump (CONFIG_HID_DEBUG + modprobe hid 
module with 'debug=2')
I found that for pretty much all the input problems, I'd need to do
something like that. Problem is:
- enabling CONFIG_HID_DEBUG requires rebuilding the kernel
CONFIG_HID_DEBUG has 'default y' for quite some time, but the defconfigs 
haven't unfortunately been updated yet.
- most distributions build hid into the kernel
hid.debug=2 on the kernel commandline option does the trick.
Wouldn't there be a way to enable the debug at run-time without 
impacting too much on performance or binary size?
Absolutely. I have a migration of all this stuff to debugfs on my TODO 
list.

Thanks,

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help