From: "José Expósito" <jose.exposito89@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: USB/HID: Device with multiple interfaces
Date: Sun, 29 Aug 2021 17:27:01 +0200 [thread overview]
Message-ID: <20210829152701.GB19129@elementary> (raw)
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
reply other threads:[~2021-08-29 15:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210829152701.GB19129@elementary \
--to=jose.exposito89@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).