kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* USB/HID: Device with multiple interfaces
@ 2021-08-29 15:27 José Expósito
  0 siblings, 0 replies; only message in thread
From: José Expósito @ 2021-08-29 15:27 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

I'm trying to solve an issue with a mouse that only reports battery over
Bluetooth. I hope you can help me.

When connected over Bluetooth, the mouse registers one HID descriptor
containing both mouse and power device collections.

However, when it's connected over USB, I can see using lsusb that 3 interfaces
are available and, unlike with Bluethoot, the HID descriptors containing mouse
and power device are in different interfaces.
The battery percentage is not reported in this case.

So far I've been able to get the battery percentage in the driver by manually
calling devm_power_supply_register and submitting an URB.

My question is: since the HID descriptors with the power device collection is
present but in a different interface, is there a way to associate both
interfaces to the same physical device and get the battery percentage
automatically?

Thank you very much in advance,
Jose


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-29 15:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-29 15:27 USB/HID: Device with multiple interfaces José Expósito

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).