Skip to content

Instantly share code, notes, and snippets.

@djbr1
Created February 10, 2022 06:23
Show Gist options
  • Save djbr1/a2adff422ae26ac113d9b527f7ec2e2b to your computer and use it in GitHub Desktop.
Save djbr1/a2adff422ae26ac113d9b527f7ec2e2b to your computer and use it in GitHub Desktop.
[root@XIEGU-x6100:/root]#
[root@XIEGU-x6100:/root]# ./evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: matrix_keypad@0 # buttons # type 4 (EV_MSC), code 4 (MSC_SCAN),
/dev/input/event1: rotary@0 # VFO # type 2 (EV_REL), code 0 (REL_X), value -1
/dev/input/event2: rotary@1 # volume # type 2 (EV_REL), code 1 (REL_Y),
/dev/input/event3: rotary@3 # MFK # type 2 (EV_REL), code 2 (REL_Z),
# volume button test
./evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event2: rotary@1
/dev/input/event3: rotary@3
/dev/input/event4: axp20x-pek
/dev/input/event5: Logitech USB Keyboard
/dev/input/event6: Logitech USB Keyboard Consumer Control
/dev/input/event7: Logitech USB Keyboard System Control
Select the device event number [0-7]: 2
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "rotary@1"
Supported events:
Event type 0 (EV_SYN)
Event type 2 (EV_REL)
Event code 1 (REL_Y)
Properties:
Testing ... (interrupt to exit)
Event: time 1643210874.835364, type 2 (EV_REL), code 1 (REL_Y), value -1
Event: time 1643210874.835364, -------------- SYN_REPORT ------------
Event: time 1643210877.451197, type 2 (EV_REL), code 1 (REL_Y), value -1
Event: time 1643210877.451197, -------------- SYN_REPORT ------------
Event: time 1643210879.076522, type 2 (EV_REL), code 1 (REL_Y), value -1
Event: time 1643210879.076522, -------------- SYN_REPORT ------------
Event: time 1643210881.254225, type 2 (EV_REL), code 1 (REL_Y), value -1
Event: time 1643210881.254225, -------------- SYN_REPORT ------------
Event: time 1643210882.522967, type 2 (EV_REL), code 1 (REL_Y), value 1
Event: time 1643210882.522967, -------------- SYN_REPORT ------------
Event: time 1643210883.950452, type 2 (EV_REL), code 1 (REL_Y), value 1
Event: time 1643210883.950452, -------------- SYN_REPORT ------------
Event: time 1643210885.530251, type 2 (EV_REL), code 1 (REL_Y), value 1
Event: time 1643210885.530251, -------------- SYN_REPORT ------------
Event: time 1643210887.119658, type 2 (EV_REL), code 1 (REL_Y), value 1
Event: time 1643210887.119658, -------------- SYN_REPORT ------------
GEN button on x6100
Event: time 1643211491.812592, type 4 (EV_MSC), code 4 (MSC_SCAN), value 00
Event: time 1643211491.812592, type 1 (EV_KEY), code 704 (BTN_TRIGGER_HAPPY1), value 1
Event: time 1643211491.812592, -------------- SYN_REPORT ------------
Event: time 1643211492.052594, type 4 (EV_MSC), code 4 (MSC_SCAN), value 00
Event: time 1643211492.052594, type 1 (EV_KEY), code 704 (BTN_TRIGGER_HAPPY1), value 0
Event: time 1643211492.052594, -------------- SYN_REPORT ------------
----------------------------------------------------------------------------
MSG2 button on x6100
Event: time 1643211619.872607, type 4 (EV_MSC), code 4 (MSC_SCAN), value 11
Event: time 1643211619.872607, type 1 (EV_KEY), code 717 (BTN_TRIGGER_HAPPY14), value 1
Event: time 1643211619.872607, -------------- SYN_REPORT ------------
Event: time 1643211620.112597, type 4 (EV_MSC), code 4 (MSC_SCAN), value 11
Event: time 1643211620.112597, type 1 (EV_KEY), code 717 (BTN_TRIGGER_HAPPY14), value 0
Event: time 1643211620.112597, -------------- SYN_REPORT ------------
F2 button from keyboard:
Event: time 1643211788.156627, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7003b
Event: time 1643211788.156627, type 1 (EV_KEY), code 60 (KEY_F2), value 1
Event: time 1643211788.156627, -------------- SYN_REPORT ------------
Event: time 1643211788.340640, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7003b
Event: time 1643211788.340640, type 1 (EV_KEY), code 60 (KEY_F2), value 0
Event: time 1643211788.340640, -------------- SYN_REPORT ------------
--------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment