diff --git a/FAQ.md b/FAQ.md index fada7ba..e4f8fc2 100644 --- a/FAQ.md +++ b/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//.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//.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//.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//.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.