-
Notifications
You must be signed in to change notification settings - Fork 23
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
uinputdriver crashing with Segfault #1
Comments
uinput has a kernel module which needs to be loaded on boot, try |
Thanks. After loading uinput I'm no longer getting that error message, however now I'm getting a Segfault. |
Make sure you're running as root? That function only takes one argument and it's checked to be NULL so I'm not sure what else it could be. |
Yes. I'm running it as root. Also hidtest works, so it seems to be a problem with udev/uinput. |
Having the exact same scenario. Any updates? |
I have the same issue on Arch Linux, running Linux 4.13.5. Segfault in udev_device_get_devnode, hidtest works fine. It works when I hardcode the uinput path:
|
I can confirm that @lubosz's fix worked on my system as well. |
Same error but since I'm new to linux I don't know where to put the workaround in the .c file. |
@Bionov How would you do that on Windows? |
Thanks, I managed to do it, running into another error but not linked with this one. |
When running uinputdriver it just prints "uinput creation failed" (line 381 in the code). Errno is set to 19 (No such device), however I have both joycons in the changing grip and connected to the pc using the usb-C to usb-A cable.
lsusb finds the device as "Bus 001 Device 009: ID 057e:200e Nintendo Co., Ltd".
I'm running Arch Linux with kernel version 4.10.13-1-ARCH.
I also tried running as root.
The text was updated successfully, but these errors were encountered: