Suponho que você esteja usando um teclado conectado via USB. Isso significa que você tem que usar evtest via evtest /dev/input/eventX
. Para descobrir qual número é "X", use ls -l /dev/input/by-id
. No meu caso, parece que:
sudo evtest /dev/input/event6
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x5ac product 0x205 version 0x110
Input device name: "Mitsumi Electric Apple Extended USB Keyboard"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 113 (KEY_MUTE)
Event code 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 142 (KEY_SLEEP)
Event code 143 (KEY_WAKEUP)
Event code 150 (KEY_WWW)
Event code 155 (KEY_MAIL)
Event code 161 (KEY_EJECTCD)
Event code 163 (KEY_NEXTSONG)
Event code 164 (KEY_PLAYPAUSE)
Event code 165 (KEY_PREVIOUSSONG)
Event code 166 (KEY_STOPCD)
Event code 168 (KEY_REWIND)
Event code 208 (KEY_FASTFORWARD)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)
Event: time 1484112801.351497, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00ea
Event: time 1484112801.351497, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1484112801.351497, -------------- SYN_REPORT ------------
Event: time 1484112801.479485, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00ea
Event: time 1484112801.479485, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1484112801.479485, -------------- SYN_REPORT ------------