Comments (1)
You need to do this on linux:
This is because Linux doesn't have a driver for Switch Pro controllers and Linux makes the device read-only by default. Chrome can use it without a driver but it needs to send commands to the device to initialize it first.
The fix is to configure udev rules that tell Linux to make the device writeable. As root, create a file /etc/udev/rules.d/50-nintendo-switch.rules
and paste these rules into it:
# Switch Joy-con (L) (Bluetooth only)
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2006.*", MODE="0666"
# Switch Joy-con (R) (Bluetooth only)
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2007.*", MODE="0666"
# Switch Pro controller (USB and Bluetooth)
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2009.*", MODE="0666"
# Switch Joy-con charging grip (USB only)
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="200e", MODE="0666"
After creating the .rules file, disconnect and reconnect the controller.
Steam creates similar rules for Switch Pro, you could also try installing Steam if you don't want to mess with udev rules. Running through steam + bluetooth also works.
from hid-joy-con-whispering.
Related Issues (12)
- uinputdriver crashing with Segfault HOT 10
- 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.