Add udev rule for reading controller without root privileges

This commit is contained in:
Michael Wagner
2023-02-02 20:09:44 +01:00
parent d34302b494
commit bda77189f7
2 changed files with 20 additions and 1 deletions

View File

@@ -17,7 +17,15 @@ pip install --upgrade pydualsense
## Linux
On Linux based system you first need to install the hidapi through your package manager of your system.
On Linux based system you first need to add a udev rule to let the user access the PS5 controller without requiring root privileges.
```bash
sudo cp 70-ps5-controller.rules /etc/udev/rules.d
sudo udevadm control --reload-rules
sudo udevadm trigger
```
Then install the hidapi through your package manager of your system.
On an Ubuntu system the package ```libhidapi-dev``` is required.