Update page 'FAQ'
parent
d315901c54
commit
5c73769e15
1 changed files with 17 additions and 1 deletions
18
FAQ.md
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`
|
Loading…
Reference in a new issue