Merge branch 'improve_udev_rules' into 'main'

Udev rules cover most (all?) of the mounted devices now and README reflects this.

See merge request TheJackiMonster/nrealAirLinuxDriver!6
This commit is contained in:
Tobias Frisch 2024-01-21 05:39:22 +00:00
commit 2b38861b70
2 changed files with 22 additions and 4 deletions

View file

@ -59,10 +59,14 @@ make
## Run ## Run
It's easiest to run the software with root privileges. But theoretically it should be possible to It's easiest to run the software with root privileges.
adjust rules of your device to not need them for read/write access vis USB. It's definitely not
planned to require that in the future (but for now):
``` ```
sudo nrealAirLinuxDriver sudo nrealAirLinuxDriver
``` ```
Alternatively, you can copy the nreal_air.rules to /etc/udev/rules.d:
```
sudo cp udev/nreal_air.rules /etc/udev/rules.d/xreal_air.rules
```

View file

@ -1 +1,15 @@
SUBSYSTEMS=="usb", ATTRS{idVendor}=="3318", ATTRS{idProduct}=="0424", GROUP="input", MODE="0666" # Rule for USB devices
SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="3318", ATTR{idProduct}=="0424|0428|0432", GROUP="plugdev"
# Rule for Input devices (such as eventX)
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{idVendor}=="3318", ATTRS{idProduct}=="0424|0428|0432", GROUP="plugdev"
# Rule for Sound devices (pcmCxDx and controlCx)
SUBSYSTEM=="sound", KERNEL=="pcmC[0-9]D[0-9]p", ATTRS{idVendor}=="3318", ATTRS{idProduct}=="0424|0428|0432", GROUP="plugdev"
SUBSYSTEM=="sound", KERNEL=="controlC[0-9]", ATTRS{idVendor}=="3318", ATTRS{idProduct}=="0424|0428|0432", GROUP="plugdev"
# Rule for HID Devices (hidraw)
SUBSYSTEM=="hidraw", KERNEL=="hidraw[0-9]*", ATTRS{idVendor}=="3318", ATTRS{idProduct}=="0424|0428|0432", GROUP="plugdev"
# Rule for HID Devices (hiddev)
KERNEL=="hiddev[0-9]*", SUBSYSTEM=="usb", ATTRS{idVendor}=="3318", ATTRS{idProduct}=="0424|0428|0432", GROUP="plugdev"