Email or username:

Password:

Forgot your password?
Melvian

I'd like to reverse-engineer a USB input device and create a Linux driver for it. What are the best resources for learning about how to do this?

#AskFedi

3 comments
AstraLuma

@melvian is it already HID or is it totally new?

lsusb can help you out here.

If it's HID, you might not need a full driver, just a userspace daemon talking to uinput. You won't need to get into the weeds of USB, just input.h and associated character devices.

If it's new, first you're gonna need to learn the fundamentals of USB. Unfortunately, I can't remember the name of the site I learned about endpoints and profiles and stuff from.

Go Up