Update page 'FAQ'
parent
c44633bd51
commit
c403859233
1 changed files with 2 additions and 2 deletions
4
FAQ.md
4
FAQ.md
|
@ -4,9 +4,9 @@ A: http://www.wulftone.com/2014/03/26/make-usb-keyboard-stay-awake-and-disable-l
|
|||
|
||||
udevrule in /ect/udev/rules.d mit
|
||||
```
|
||||
ACTION=="add", ENV{XAUTHORITY}=="/home/<USER>/.Xauthority", ENV{DISPLAY}=":0.0", SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="03EB", ENV{ID_MODEL_ID}=="2042", RUN+="/path/to/script/keyboard-disable.sh", TEST=="power/control", ATTR{power/control}="on"
|
||||
ACTION=="add", ENV{XAUTHORITY}="/home/<USER>/.Xauthority", ENV{NAME}=="*?", ENV{DISPLAY}=":0.0", ENV{ID_INPUT_KEYBOARD}=="1", RUN+="/path/to/script/keyboard-disable.sh", TEST=="power/control", ATTR{power/control}="on"
|
||||
|
||||
ACTION=="remove", ENV{XAUTHORITY}=="/home/<USER>/.Xauthority", ENV{DISPLAY}=":0.0", SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="03EB", ENV{ID_MODEL_ID}=="2042", RUN+="/path/to/script/keyboard-enable.sh"
|
||||
ACTION=="remove", ENV{XAUTHORITY}="/home/<USER>/.Xauthority", ENV{NAME}=="*?", ENV{DISPLAY}=":0.0", ENV{ID_INPUT_KEYBOARD}=="1", RUN+="/path/to/script/keyboard-enable.sh"
|
||||
```
|
||||
`ENV{DISPLAY}` und `ENV{XAUTHORITY}` wird von xinput gebraucht.
|
||||
|
||||
|
|
Loading…
Reference in a new issue