Coder Social home page Coder Social logo

Comments (3)

TheRealDxRed avatar TheRealDxRed commented on June 9, 2024 1

Thank you for your response.

I do not know the exact update number, but the Nintendo Switch Pro Controller had it's firmware updated to allow play through USB as well as bluetooth. Plugging it into a PC shows a joystick on which some of the buttons are permanently pressed. There is a way to use the controller on UNIX-like OS's using the git repository HID-Joy-Con-Whispering, but it does not disable the original joystick input therefore causing problems when mapping buttons in games.

The Nintendo Switch Pro Controller's idVendor is 057e and it's idProduct is 2009

from udev-joystick-blacklist.

denilsonsa avatar denilsonsa commented on June 9, 2024

Hello! What do you mean by "recently got USB functionality" and by "messes up joystick input"? If it is a joystick that is recognized as a USB joystick, why do we want to blacklist it?

Also, we need the vendor_id and product_id of the device.

from udev-joystick-blacklist.

Leeo97one avatar Leeo97one commented on June 9, 2024

I can confirm what @TheRealDxRed said.
Here is what happens when I plug the controller:

mai 03 00:42:27 leeo-arch-msi kernel: usb 1-4: new full-speed USB device number 19 using xhci_hcd
mai 03 00:42:27 leeo-arch-msi kernel: usb 1-4: New USB device found, idVendor=057e, idProduct=2009
mai 03 00:42:27 leeo-arch-msi kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
mai 03 00:42:27 leeo-arch-msi kernel: usb 1-4: Product: Pro Controller
mai 03 00:42:27 leeo-arch-msi kernel: usb 1-4: Manufacturer: Nintendo Co., Ltd.
mai 03 00:42:27 leeo-arch-msi kernel: usb 1-4: SerialNumber: 000000000001
mai 03 00:42:27 leeo-arch-msi kernel: input: Nintendo Co., Ltd. Pro Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:057E:2009.000D/input/input48
mai 03 00:42:27 leeo-arch-msi kernel: hid-generic 0003:057E:2009.000D: input,hidraw1: USB HID v1.11 Joystick [Nintendo Co., Ltd. Pro Controller] on usb-0000:00:14.0-4/input0

Also, I tried with these rules:

SUBSYSTEM=="input", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", ENV{ID_INPUT_JOYSTICK}=="?*", ENV{ID_INPUT_JOYSTICK}=""
SUBSYSTEM=="input", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}=""

But without success. 😞

from udev-joystick-blacklist.

Related Issues (20)

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.