Skip to content

linux/hidraw: Add support for BUS_VIRTUAL #745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 23, 2025

Conversation

tuxedo-wse
Copy link
Contributor

This driver implements a virtual HID device on linux: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/platform/x86/tuxedo/nb04/wmi_ab.c?id=cfd84b3f419bf0aec60ecddc92c61b539c339ec9#n841

This patch enables HIDAPI to handle this correctly.

Fixes: #744

tuxedo-wse and others added 3 commits May 21, 2025 19:50
This driver implements a virtual HID device on linux:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/platform/x86/tuxedo/nb04/wmi_ab.c?id=cfd84b3f419bf0aec60ecddc92c61b539c339ec9#n841

This patch enables HIDAPI to handle this correctly.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
The new HID_API_BUS_VIRTUAL enum value introduced a compile time warning in the
Windows code. This patch fixes that by also explicitly handling it there.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
@tuxedo-wse
Copy link
Contributor Author

Pushed a fix for the failed pipeline

Copy link
Member

@Youw Youw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Youw Youw merged commit 3f643c2 into libusb:master May 23, 2025
3 of 4 checks passed
@mcuee mcuee added the enhancement New feature or request label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HIDAPI does not recognize "virtual" HID device
3 participants