Skip to content

User Buttons

To test any event device, run the following and the available devices will be listed and numbered:

# evtest

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-MX91:

root@imx91-var-som:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      44440000.bbnsm:pwrkey
/dev/input/event1:      gpio-keys
Select the device event number [0-1]: 1
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 139 (KEY_MENU)
    Event code 158 (KEY_BACK)
Properties:
Testing ... (interrupt to exit)
Event: time 1757594417.154650, type 1 (EV_KEY), code 102 (KEY_HOME), value 1
Event: time 1757594417.154650, -------------- SYN_REPORT ------------
Event: time 1757594417.298813, type 1 (EV_KEY), code 102 (KEY_HOME), value 0
Event: time 1757594417.298813, -------------- SYN_REPORT ------------