Udev rules cover most (all?) of the mounted devices now and README reflects this.
This commit is contained in:
parent
b77e27de08
commit
d00bac851d
2 changed files with 22 additions and 4 deletions
10
README.md
10
README.md
|
@ -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
|
||||||
|
```
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Reference in a new issue