3

Raw mouse movement is generating some data and sent via USB. It is then getting processed somewhere and written into /dev/input/mice & supplied to GUI, etc.

How is this happening? If I want to keep a USB Mouse as unknown USB Data Stream and read from it - how is it done?

3

Your mouse presents itself as a HID (Human interface device) usb class device. You can remove the device from the kernel HID driver's control by finding the hex vendor and device id of it and giving it to libhid-detach-device. Eg:

lsusb
...
Bus 003 Device 013: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
...
sudo libhid-detach-device 046d:c05a

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.