Comments (10)
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:
//char *uinput_path = udev_device_get_devnode(uinput);
char *uinput_path = "/dev/uinput";
from hid-joy-con-whispering.
uinput has a kernel module which needs to be loaded on boot, try sudo modprobe uinput
and if that works, add a file for uinput in /etc/modules-load.d/
from hid-joy-con-whispering.
Thanks. After loading uinput I'm no longer getting that error message, however now I'm getting a Segfault.
Running it with gdb tells me that the segfault occured in udev_device_get_devnode () from /usr/lib/libudev.so.1
from hid-joy-con-whispering.
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.
from hid-joy-con-whispering.
Yes. I'm running it as root.
Here is a log of gdb running the program as root and the ldd output. Maybe that helps
libraries.txt
log.txt
Also hidtest works, so it seems to be a problem with udev/uinput.
from hid-joy-con-whispering.
Having the exact same scenario. Any updates?
from hid-joy-con-whispering.
I can confirm that @lubosz's fix worked on my system as well.
from hid-joy-con-whispering.
Same error but since I'm new to linux I don't know where to put the workaround in the .c file.
I'm on Ubuntu 17.10 4.13.0-32-generic x86_64
from hid-joy-con-whispering.
@Bionov grep uinput_path * -IR
in the src directory
How would you do that on Windows?
from hid-joy-con-whispering.
Thanks, I managed to do it, running into another error but not linked with this one.
from hid-joy-con-whispering.
Related Issues (12)
- uinputdriver can't handle pro controller HOT 1
- Segmentation fault when running HOT 4
- No hidapi/hidapi.h file HOT 5
- libhidapi-hidraw is not found HOT 5
- Failed to get handle for right Joy-Con or Pro Controller, exiting HOT 2
- Support HID usb generic controllers on switch HOT 1
- License?
- exe file HOT 3
- Can't compile hidtest.cpp due to undefined references HOT 1
- Problem with SPI read/write through USB-HID HOT 2
- Disable mouse control HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hid-joy-con-whispering.