Re: Apple Bluetooth devices: Battery level?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bastien,

> > > 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
> - most distributions build hid into the kernel
> 
> Wouldn't there be a way to enable the debug at run-time without
> impacting too much on performance or binary size?

there is no real downside in having this all times available since you
have to store that binary record somewhere anyway during runtime. We
should fix that and put it into debugfs, but nobody bothered so far
sending a patch for it. If we worry about code size then the decoding
should of the record should be moved into userspace, but in the end it
really doesn't matter that much.

Regards

Marcel


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux