Skip to content

linux/hidraw: Add support for BUS_VIRTUAL#745

Merged
Youw merged 6 commits intolibusb:masterfrom
tuxedo-wse:enable_virt_devices
May 23, 2025
Merged

linux/hidraw: Add support for BUS_VIRTUAL#745
Youw merged 6 commits intolibusb:masterfrom
tuxedo-wse:enable_virt_devices

Conversation

@tuxedo-wse
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Pushed a fix for the failed pipeline

Comment thread hidapi/hidapi.h Outdated
Copy link
Copy Markdown
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!

Comment thread hidapi/hidapi.h Outdated
Comment thread hidapi/hidapi.h Outdated
@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
@tuxedo-wse tuxedo-wse deleted the enable_virt_devices branch May 28, 2025 22:20
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