NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.08k forks source link

USB controller not detected #75774

Open boogewooge opened 4 years ago

boogewooge commented 4 years ago

Describe the bug When running the dolphin emulator (package dolphinEmu), a usb controller formerly working without issue isn't detected anymore.

To Reproduce Steps to reproduce the behavior:

  1. install dolphinEmu package
  2. add udev rules (see below)
  3. connect usb gamecube controller adapter (for wiiU)
  4. run dolphin-emu
  5. under options -> controller settings, check if controller is detected

Expected behavior It should be detected. It does this on 19.03 without any issues.

Additional context udev rules to add:

udev = {
      extraRules = ''
        SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0337", MODE="0666";
      '';
};

output of udevadm monitor while disconnecting and reconnecting the controller on both versions: 19.03: https://hastebin.com/dogoroloqa.log 19.09: https://hastebin.com/xujekivazo.log (the relevant parts seem identical. what if not udev could play a role here?)

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: dolphinEmu, udev?
matthewbauer commented 4 years ago

There might be some issue with the rules priority. The extraRules are 99-local.rules, so maybe try a higher one like:


services.udev.packages = [ (pkgs.writeTextFile {
    name = "99-nintendo-controller.rules";
    text = ''
        SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0337", MODE="0666";
    '';
    destination = "/etc/udev/rules.d/40-nintendo-controller.rules";
  })
];
boogewooge commented 4 years ago

Just tried this, nothing's changed. :/

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
sagehane commented 3 years ago

Didn't #105749 fix this issue?

You should just have to set:

services.udev.packages = [ pkgs.dolphinEmu ];

It certainly worked for my dolphinEmuMaster with

services.udev.packages = with pkgs; [ dolphinEmuMaster ];
stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info