From c4038592339f15accf67d6242aabecc367a9bb91 Mon Sep 17 00:00:00 2001 From: the193rd Date: Fri, 18 Nov 2016 14:12:58 +0100 Subject: [PATCH] Update page 'FAQ' --- FAQ.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.