From 5c73769e156a8ae1f7af00805a3a131f5b459f29 Mon Sep 17 00:00:00 2001 From: the193rd Date: Fri, 18 Nov 2016 13:24:37 +0100 Subject: [PATCH] Update page 'FAQ' --- FAQ.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 2fd9f95..0bd8bec 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1 +1,17 @@ -TBD \ No newline at end of file +F: Laptoptastatur beim Anstecken der Alya deaktivieren? +A: http://www.wulftone.com/2014/03/26/make-usb-keyboard-stay-awake-and-disable-laptop-internal-keyboard/ folgend: + +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=="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" +``` +`ENV{DISPLAY}` und `ENV{XAUTHORITY}` wird von xinput gebraucht. + +keyboard-disable.sh inhalt: +``` +#!/bin/bash +xinput disable 'AT Translated Set 2 keyboard' +``` +keyboard-enable.sh entsprechend dann mit `xinput enable` \ No newline at end of file