User Buttons¶
To test any event device, run the following and the available devices will be listed and numbered:
Then, select the device event number you want to test, and use the device - in this case, push the button.
For example, on the VAR-SOM-MX7:
# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: 30370000.snvs:snvs-powerkey
/dev/input/event1: generic ft5x06 (7b)
/dev/input/event2: gpio-keys
/dev/input/event3: audio-hdmi HDMI Jack
Select the device event number [0-3]: 2
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio-keys"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 102 (KEY_HOME)
Event code 103 (KEY_UP)
Event code 108 (KEY_DOWN)
Event code 158 (KEY_BACK)
Properties:
Testing ... (interrupt to exit)
Event: time 1514772436.992828, type 1 (EV_KEY), code 158 (KEY_BACK), value 1
Event: time 1514772436.992828, -------------- SYN_REPORT ------------
Event: time 1514772437.160810, type 1 (EV_KEY), code 158 (KEY_BACK), value 0
Event: time 1514772437.160810, -------------- SYN_REPORT ------------
Event: time 1514772437.876832, type 1 (EV_KEY), code 103 (KEY_UP), value 1
Event: time 1514772437.876832, -------------- SYN_REPORT ------------
Event: time 1514772438.024813, type 1 (EV_KEY), code 103 (KEY_UP), value 0
Event: time 1514772438.024813, -------------- SYN_REPORT ------------
Event: time 1514772438.704818, type 1 (EV_KEY), code 102 (KEY_HOME), value 1
Event: time 1514772438.704818, -------------- SYN_REPORT ------------
Event: time 1514772438.872816, type 1 (EV_KEY), code 102 (KEY_HOME), value 0
Event: time 1514772438.872816, -------------- SYN_REPORT ------------
Event: time 1514772439.984820, type 1 (EV_KEY), code 108 (KEY_DOWN), value 1
Event: time 1514772439.984820, -------------- SYN_REPORT ------------
Event: time 1514772440.224815, type 1 (EV_KEY), code 108 (KEY_DOWN), value 0
Event: time 1514772440.224815, -------------- SYN_REPORT ------------