-
Notifications
You must be signed in to change notification settings - Fork 4
/
99-hdmi2usb-permissions.rules
29 lines (23 loc) · 1.08 KB
/
99-hdmi2usb-permissions.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Grant everyone permission to the HDMI2USB devices.
# USB device for using fxload
SUBSYSTEM=="usb", DRIVER=="usb", ENV{ID_HDMI2USB}=="1", \
MODE:="0660", GROUP:="video"
# Serial control console
SUBSYSTEM=="tty", ENV{ID_HDMI2USB}=="1", \
MODE:="0660", GROUP:="video"
# Video capture device
SUBSYSTEM=="video4linux", ENV{ID_HDMI2USB}=="1", \
MODE:="0660", GROUP:="video"
# Allow the user to unbind the kernel drivers attached to the device
SUBSYSTEM=="usb", DRIVER=="usb", ENV{ID_HDMI2USB}=="1", \
TEST=="$sys$env{DEVPATH}/driver/unbind" \
RUN+="/bin/chmod 0660 $sys$env{DEVPATH}/driver/unbind" \
RUN+="/bin/chgrp video $sys$env{DEVPATH}/driver/unbind"
SUBSYSTEM=="tty", ENV{ID_HDMI2USB}=="1", \
TEST=="$sys$env{DEVPATH}/../../driver/unbind" \
RUN+="/bin/chmod 0660 $sys$env{DEVPATH}/../../driver/unbind" \
RUN+="/bin/chgrp video $sys$env{DEVPATH}/../../driver/unbind"
SUBSYSTEM=="video4linux", ENV{ID_HDMI2USB}=="1", \
TEST=="$sys$env{DEVPATH}/../../driver/unbind" \
RUN+="/bin/chmod 0660 $sys$env{DEVPATH}/../../driver/unbind" \
RUN+="/bin/chgrp video $sys$env{DEVPATH}/../../driver/unbind"