There are 3 input devices. All physical buttons are on GPIO.
Here is some info
cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0002 Version=0100
N: Name="earpods_wire"
P: Phys=earpods-wire/input0
S: Sysfs=/devices/platform/earpods_wire/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=3
B: KEY=10000 138 0 0 0 0 0
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="gpio-keys"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/platform/gpio-keys/input/input1
U: Uniq=
H: Handlers=kbd event1
B: PROP=0
B: EV=3
B: KEY=38 0 1c0000 0 0 0
I: Bus=0018 Vendor=dead Product=beef Version=28bb
N: Name="GT9XX-TS"
P: Phys=(Ze▒0▒▒(Ze▒0▒▒
S: Sysfs=/devices/virtual/input/input2
U: Uniq=main_ts
H: Handlers=kbd event2
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0 40000800 100040 0 0 0
B: ABS=2650000 0
Here is output info I got from evtest utility.
It was odd to see that 'Next song' and 'Previous song' are swapped places.
Input device name: "gpio-keys"
Available devices:
/dev/input/event0: earpods_wire
/dev/input/event1: gpio-keys
/dev/input/event2: GT9XX-TS
Select the device event number [0-2]: 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 114 (KEY_VOLUMEDOWN)
Event code 115 (KEY_VOLUMEUP)
Event code 116 (KEY_POWER)
Event code 163 (KEY_NEXTSONG)
Event code 164 (KEY_PLAYPAUSE)
Event code 165 (KEY_PREVIOUSSONG)
Properties:
Testing ... (interrupt to exit)
Event: time 1717570680.918068, type 1 (EV_KEY), code 163 (KEY_NEXTSONG), value 1 (actually previous song)
Event: time 1717570680.918068, -------------- SYN_REPORT ------------
Event: time 1717570681.119691, type 1 (EV_KEY), code 163 (KEY_NEXTSONG), value 0
Event: time 1717570681.119691, -------------- SYN_REPORT ------------
Event: time 1717570695.967716, type 1 (EV_KEY), code 165 (KEY_PREVIOUSSONG), value 1 (actually next song)
Event: time 1717570695.967716, -------------- SYN_REPORT ------------
Event: time 1717570696.168842, type 1 (EV_KEY), code 165 (KEY_PREVIOUSSONG), value 0
Event: time 1717570696.168842, -------------- SYN_REPORT ------------
Event: time 1717570699.756916, type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 1
Event: time 1717570699.756916, -------------- SYN_REPORT ------------
Event: time 1717570699.960686, type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 0
Event: time 1717570699.960686, -------------- SYN_REPORT ------------
Event: time 1717570844.496105, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1717570844.496105, -------------- SYN_REPORT ------------
Event: time 1717570844.670567, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 1717570844.670567, -------------- SYN_REPORT ------------
Event: time 1717570860.589790, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1
Event: time 1717570860.589790, -------------- SYN_REPORT ------------
Event: time 1717570860.747305, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0
Event: time 1717570860.747305, -------------- SYN_REPORT ------------
Event: time 1717570877.352349, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1717570877.352349, -------------- SYN_REPORT ------------
Event: time 1717570877.530388, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1717570877.530388, -------------- SYN_REPORT ------------
Input device name: "GT9XX-TS"
Select the device event number [0-2]: 2
Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0xdead product 0xbeef version 0x28bb
Input device name: "GT9XX-TS"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 102 (KEY_HOME)
Event code 116 (KEY_POWER)
Event code 139 (KEY_MENU)
Event code 158 (KEY_BACK)
Event code 330 (BTN_TOUCH)
Event type 3 (EV_ABS)
Event code 48 (ABS_MT_TOUCH_MAJOR)
Value 0
Min 0
Max 255
Event code 50 (ABS_MT_WIDTH_MAJOR)
Value 0
Min 0
Max 255
Event code 53 (ABS_MT_POSITION_X)
Value 0
Min 0
Max 320
Event code 54 (ABS_MT_POSITION_Y)
Value 0
Min 0
Max 480
Event code 57 (ABS_MT_TRACKING_ID)
Value 0
Min 0
Max 255
Properties:
Property type 1 (INPUT_PROP_DIRECT)
Testing ... (interrupt to exit)
single tap on middle display area
Event: time 1717570956.659841, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1717570956.659841, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 187
Event: time 1717570956.659841, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 143
Event: time 1717570956.659841, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 37
Event: time 1717570956.659841, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 37
Event: time 1717570956.659841, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
Event: time 1717570956.659841, ++++++++++++++ SYN_MT_REPORT ++++++++++++
<same listings repeats by 3 times>
Event: time 1717570956.719840, -------------- SYN_REPORT ------------
Event: time 1717570956.749832, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1717570956.749832, -------------- SYN_REPORT ------------
single tap on top left corner
Event: time 1717571075.199841, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1717571075.199841, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 25
Event: time 1717571075.199841, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 16
Event: time 1717571075.199841, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 23
Event: time 1717571075.199841, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 23
Event: time 1717571075.199841, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
Event: time 1717571075.199841, ++++++++++++++ SYN_MT_REPORT ++++++++++++
<same listings repeats by 3 times>
Event: time 1717571075.289862, -------------- SYN_REPORT ------------
Event: time 1717571075.319833, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1717571075.319833, -------------- SYN_REPORT ------------
single tap on top right corner
Event: time 1717571177.629918, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1717571177.629918, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 300
Event: time 1717571177.629918, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 20
Event: time 1717571177.629918, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 28
Event: time 1717571177.629918, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 28
Event: time 1717571177.629918, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
Event: time 1717571177.629918, ++++++++++++++ SYN_MT_REPORT ++++++++++++
<same listings repeats by 3 times>
Event: time 1717571177.689843, -------------- SYN_REPORT ------------
Event: time 1717571177.719948, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1717571177.719948, -------------- SYN_REPORT ------------
single tap on bottom left corner
Event: time 1717571224.259862, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1717571224.259862, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 12
Event: time 1717571224.259862, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 472
Event: time 1717571224.259862, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 15
Event: time 1717571224.259862, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 15
Event: time 1717571224.259862, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
Event: time 1717571224.259862, ++++++++++++++ SYN_MT_REPORT ++++++++++++
<same listings repeats by 3 times>
Event: time 1717571224.289848, -------------- SYN_REPORT ------------
Event: time 1717571224.319834, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1717571224.319834, -------------- SYN_REPORT ------------
single tap on bottom right corner
Event: time 1717571269.959849, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
Event: time 1717571269.959849, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 302
Event: time 1717571269.959849, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 472
Event: time 1717571269.959849, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 12
Event: time 1717571269.959849, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 12
Event: time 1717571269.959849, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0
Event: time 1717571269.959849, ++++++++++++++ SYN_MT_REPORT ++++++++++++
<same listings repeats by 3 times>
Event: time 1717571270.079836, -------------- SYN_REPORT ------------
Event: time 1717571270.109840, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
Event: time 1717571270.109840, -------------- SYN_REPORT ------------