O comando Ignore funciona, mas não o ButtonMapping.
Eu criei um arquivo /usr/share/X11/xorg.conf.d/39-myinput.com
:
Section "InputClass"
Identifier "Apple MagicKeyboard"
MatchIsKeyboard "on"
MatchProduct "Magic Keyboard"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "Ignore" "off"
Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 0"
EndSection
Estou apenas testando o ButtonMapping neste momento, mas parece não ter efeito. Você pode me apontar na direção certa?
Eu usei evtest
para determinar que as chaves 16 e 17 são Q e
W :
Event: time 1512268567.675999, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70014
Event: time 1512268567.675999, type 1 (EV_KEY), code 16 (KEY_Q), value 0
Event: time 1512268567.675999, -------------- SYN_REPORT ------------
Event: time 1512268568.531055, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001a
Event: time 1512268568.531055, type 1 (EV_KEY), code 17 (KEY_W), value 1
Event: time 1512268568.531055, -------------- SYN_REPORT ------------
... e eu os defini como 0
na minha string KeyMapping
para desabilitá-los, mas não os encontro desabilitados depois de reiniciar o X. Se eu alterar a diretiva Ignore
para on
em vez de off
, no entanto, acho que todo o meu MagicKeyboard está desativado (enquanto o outro teclado conectado ainda está funcionando).
Meu diretório xorg.conf.d
contém o seguinte:
10-amdgpu.conf
10-evdev.conf
10-quirks.conf
10-radeon.conf
11-evdev-quirks.conf
11-evdev-trackpoint.conf
39-myinput.conf
40-libinput.conf
51-synaptics-quirks.conf
70-synaptics.conf
70-wacom.conf
Meu /var/log/X.log.0
contém o seguinte:
[196248.970] (II) config/udev: Adding input device Magic Keyboard (/dev/input/event20)
[196248.970] (**) Magic Keyboard: Applying InputClass "Apple MagicKeyboard"
[196248.970] (**) Magic Keyboard: Applying InputClass "evdev keyboard catchall"
[196248.970] (**) Magic Keyboard: Applying InputClass "libinput keyboard catchall"
[196248.970] (**) Magic Keyboard: Applying InputClass "Apple MagicKeyboard"
[196248.970] (**) Magic Keyboard: Applying InputClass "Apple MagicKeyboard"
[196248.971] (II) Using input driver 'evdev' for 'Magic Keyboard'
[196248.971] (**) Magic Keyboard: always reports core events
[196248.971] (**) evdev: Magic Keyboard: Device: "/dev/input/event20"
[196248.971] (**) evdev: Magic Keyboard: ButtonMapping '1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 0'
[196248.971] (--) evdev: Magic Keyboard: Vendor 0x4c Product 0x267
[196248.971] (--) evdev: Magic Keyboard: Found 3 mouse buttons
[196248.971] (--) evdev: Magic Keyboard: Found absolute axes
[196248.971] (II) evdev: Magic Keyboard: Forcing absolute x/y axes to exist.
[196248.971] (--) evdev: Magic Keyboard: Found keys
[196248.971] (II) evdev: Magic Keyboard: Forcing relative x/y axes to exist.
[196248.971] (II) evdev: Magic Keyboard: Configuring as mouse
[196248.971] (II) evdev: Magic Keyboard: Configuring as keyboard
[196248.971] (**) evdev: Magic Keyboard: YAxisMapping: buttons 4 and 5
[196248.971] (**) evdev: Magic Keyboard: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[196248.971] (II) XINPUT: Adding extended input device "Magic Keyboard" (type: KEYBOARD, id 12)
[196248.972] (II) evdev: Magic Keyboard: initialized for absolute axes.
[196248.972] (**) Magic Keyboard: (accel) keeping acceleration scheme 1
[196248.972] (**) Magic Keyboard: (accel) acceleration profile 0
[196248.972] (**) Magic Keyboard: (accel) acceleration factor: 2.000
[196248.972] (**) Magic Keyboard: (accel) acceleration threshold: 4
Estou executando o Ubuntu 17.04.