Skip to content
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

Custom mouse successfully recognized, but data is not transmitted. #16

Open
ArsenicBismuth opened this issue Dec 12, 2021 · 2 comments
Open

Comments

@ArsenicBismuth
Copy link

Finally able to test this program more and honestly the simplicity of it makes it much more worthy than Bluetooth solutions.

My Pi400 is grabbed and transmitted with no problem, but my mouse is not. I have provided the correct info based on lsusb during the build time, and my mouse is actually grabbed (instead of saying undetected).

The problem is, there's another error appearing (emphasis is mine):

Found keyboard at: /dev/hidraw0
Found mouse at: /dev/hidraw2
- usbg_create_gadget()  duplicate gadget name
 
- Error creating gadget
- Error: USBG_ERROR_EXIST : Already exist
Grabbing Keyboard and/or Mouse
Grabbing: /dev/input/by-id/usb-_Raspberry_Pi_Internal_Keyboard-event-kbd
Grabbing: /dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse
Running...

CMake parameters:

cmake .. -DMOUSE_DEV="/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse" -DMOUSE_VID=0x046D -DMOUSE_PID=0xC53F

Any help would be appreciated.

@Gadgetoid
Copy link
Owner

I think the duplicate gadget name is a red herring.

Most mice wont work without changing the code either to present a compatible USB HID descriptor, or to correctly read the mouse input and pass it on. Figuring this out is on the roadmap, but I can only test with mice that I have.

@Hades-Corps
Copy link

Most mice wont work without changing the code either to present a compatible USB HID descriptor, or to correctly read the mouse input and pass it on. Figuring this out is on the roadmap, but I can only test with mice that I have.

Is there any update on this? A random basic mouse I got works fine. My Logitech G502, however, does not pass any mouse or macro event. Also would be nice if this can work with bluetooth mouses as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants