Giter Site home page Giter Site logo

Comments (10)

lubosz avatar lubosz commented on September 27, 2024 4

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.

shinyquagsire23 avatar shinyquagsire23 commented on September 27, 2024 1

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.

freundTech avatar freundTech commented on September 27, 2024

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.

shinyquagsire23 avatar shinyquagsire23 commented on September 27, 2024

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.

freundTech avatar freundTech commented on September 27, 2024

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.

Rapti avatar Rapti commented on September 27, 2024

Having the exact same scenario. Any updates?

from hid-joy-con-whispering.

Serisium avatar Serisium commented on September 27, 2024

I can confirm that @lubosz's fix worked on my system as well.

from hid-joy-con-whispering.

Bionov avatar Bionov commented on September 27, 2024

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.

lubosz avatar lubosz commented on September 27, 2024

@Bionov grep uinput_path * -IR in the src directory

How would you do that on Windows?

from hid-joy-con-whispering.

Bionov avatar Bionov commented on September 27, 2024

Thanks, I managed to do it, running into another error but not linked with this one.

from hid-joy-con-whispering.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.