Update page 'FAQ'

Martin Errenst 2016-11-18 13:24:37 +01:00 committed by Gogs
parent d315901c54
commit 5c73769e15

18
FAQ.md

@ -1 +1,17 @@
TBD
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/<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=="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"
```
`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`