Skip to content

hid-nintendo as DKMS module? #6

Closed

Description

@dragon99919

I've tried to use the joycond made by you in my Manjaro setup, but after failing, I've noticed that the hid-nintendo module is still not yet in the kernel officially. Since I'm sort of noob with any of the building stuff, are there any chances this gets ported temporarly as DKMS module? Or maybe could you provide instructions on how to handle something like that? Great works btw, best regards!

Activity

  1. DanielOgorchock commented on Mar 17, 2020

    @DanielOgorchock
    Owner

    I have considered adding an out-of-tree module build option in the past. I just submitted a new patchset to the mailing list. I suspect it's pretty close to being merged in. I've removed the IMU patch for now, since that's where most of the needed work is.
    If the feedback on my latest patchset looks like it'll be awhile still, I may mess around with an out-of-tree option to put on the aur in the meantime.

  2. nicman23 commented on Mar 17, 2020

    @nicman23

    https://github.com/nicman23/dkms-hid-nintendo

    i did a junk dkms module that works - 0 idea how to make it default to the hid-nintendo

    currently needs something like

    echo 0003:057E:2009.000A > /sys/class/input/js0/device/device/driver/unbind
    echo 0003:057E:2009.000A > /sys/bus/hid/drivers/nintendo/bind

    e: lol nvm forgot depmod

  3. DanielOgorchock commented on Mar 17, 2020

    @DanielOgorchock
    Owner

    Cool. Thanks.

  4. mattrei commented on Mar 25, 2020

    @mattrei

    do you have any readme how to install the dkms module?
    Yes an AUR package would be fantastic as well!

  5. nicman23 commented on Mar 25, 2020

    @nicman23

    clone the repo; cd into it

    sudo dkms add .; sudo dkms build nintendo -v 1.0
    

    it is generic so i did not bother with it

    i ll probably make a pkgbuild when i have time

  6. mattrei commented on Mar 26, 2020

    @mattrei

    cheers!

    the gyroscope of the joycons are not working yet with the driver, right?

  7. nicman23 commented on Mar 26, 2020

    @nicman23

    the gyroscope of the joycons are not working yet with the driver, right?

    it does but it is a different device

    also just pushed hid-nintendo-dkms to the aur

  8. mattrei commented on Mar 26, 2020

    @mattrei

    @nicman23 thanks for you work!

    i have connected succesfully the joycons via bluetooth and evtest lists them as devices. however the gyro does not raise any events. also I have no extra device listed.

    may you give a short tutorial how to get the gyro running? thx

  9. nicman23 commented on Mar 26, 2020

    @nicman23

    no idea - i am not the original creator and have only messed with the pro controller

    if you get it running please tell me how

  10. DanielOgorchock commented on Mar 26, 2020

    @DanielOgorchock
    Owner

    @mattrei Are you running evtest as root? I think the IMU evdevs don't get picked up by uinput for changing permissions.

    Note that I haven't done much testing yet with the gyro support, and I removed it from the latest submission to the mailing list. I do have that in-progress patch still up in this repo, which in theory works, but there's some issues I need to fix with it still.

  11. DanielOgorchock commented on Mar 26, 2020

    @DanielOgorchock
    Owner

    @nicman23 Thanks for the aur package!

  12. nicman23 commented on Mar 26, 2020

    @nicman23

    Thanks for the aur package!

    no prob :)

    Note that I haven't done much testing yet with the gyro support, and I removed it from the latest submission to the mailing list. I do have that in-progress patch still up in this repo, which in theory works, but there's some issues I need to fix with it still.

    fyi the dkms modules has it

  13. mattrei commented on Mar 26, 2020

    @mattrei

    @DanielOgorchock oh yes the Joy-Con IMU is popping up on evtest with root privileges. is there a way to have it also for non-root users?

    my main wish for getting joycons gyro to work is playing Super Mario Galaxy on the dolphin emulator on linux 💯

  14. dogtopus commented on Mar 27, 2020

    @dogtopus

    @mattrei You can set a udev rule (recommended) or put yourself in the input group (not recommended for daily use since it also exposes keyboard, etc to all user apps)

  15. DanielOgorchock commented on Mar 27, 2020

    @DanielOgorchock
    Owner

    I should probably add that to the joycond udev rules
    edit: I did

  16. mpawlowski7 commented on May 22, 2020

    @mpawlowski7

    Hi, If anyone is still interested I did a dkms module for this driver a while ago adding udev rules and sdl2 mapping:
    https://github.com/mpawlowski7/NXControllers
    I also improved player led counting so it's now working as on the switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions