Difference between revisions of "IoTGateway/BSP/Android/Gettingstarted/How to configure Capacitive Multi-touch Display"
From ESS-WIKI
Line 26: | Line 26: | ||
The ''getevent'' tool runs on the device and provides information about input devices and a live dump of kernel input events. | The ''getevent'' tool runs on the device and provides information about input devices and a live dump of kernel input events. | ||
+ | |||
+ | nput protocol "B". The <code>-l</code> option displays textual labels and the <code>-t</code> option displays timestamps. | ||
+ | <pre><code>$ adb shell su -- getevent -lt /dev/input/event1 | ||
+ | |||
+ | [ 78826.389007] EV_ABS ABS_MT_TRACKING_ID 0000001f | ||
+ | [ 78826.389038] EV_ABS ABS_MT_PRESSURE 000000ab | ||
+ | [ 78826.389038] EV_ABS ABS_MT_POSITION_X 000000ab | ||
+ | [ 78826.389068] EV_ABS ABS_MT_POSITION_Y 0000025b | ||
+ | [ 78826.389068] EV_ABS ABS_MT_SLOT 00000001 | ||
+ | [ 78826.389068] EV_ABS ABS_MT_TRACKING_ID 00000020 | ||
+ | [ 78826.389068] EV_ABS ABS_MT_PRESSURE 000000b9 | ||
+ | [ 78826.389099] EV_ABS ABS_MT_POSITION_X 0000019e | ||
+ | [ 78826.389099] EV_ABS ABS_MT_POSITION_Y 00000361 | ||
+ | [ 78826.389099] EV_SYN SYN_REPORT 00000000 | ||
+ | [ 78826.468688] EV_ABS ABS_MT_SLOT 00000000 | ||
+ | [ 78826.468688] EV_ABS ABS_MT_TRACKING_ID ffffffff | ||
+ | [ 78826.468719] EV_ABS ABS_MT_SLOT 00000001 | ||
+ | [ 78826.468719] EV_ABS ABS_MT_TRACKING_ID ffffffff | ||
+ | [ 78826.468719] EV_SYN SYN_REPORT 00000000 | ||
+ | </code></pre> | ||
+ | |||
+ | |||
+ | |||
+ | |||
<pre><code>$ getevent -lt | <pre><code>$ getevent -lt | ||
Revision as of 04:04, 3 February 2017
HID interface
- Enable HID in menuconfig
Device Drivers --->
|
- copy and rename
.config
toarch/arm/configs/imx_v7_android_defconfig<code>
</code>
Test
The getevent tool runs on the device and provides information about input devices and a live dump of kernel input events.
nput protocol "B". The -l
option displays textual labels and the -t
option displays timestamps.
<code>$ adb shell su -- getevent -lt /dev/input/event1 [ 78826.389007] EV_ABS ABS_MT_TRACKING_ID 0000001f [ 78826.389038] EV_ABS ABS_MT_PRESSURE 000000ab [ 78826.389038] EV_ABS ABS_MT_POSITION_X 000000ab [ 78826.389068] EV_ABS ABS_MT_POSITION_Y 0000025b [ 78826.389068] EV_ABS ABS_MT_SLOT 00000001 [ 78826.389068] EV_ABS ABS_MT_TRACKING_ID 00000020 [ 78826.389068] EV_ABS ABS_MT_PRESSURE 000000b9 [ 78826.389099] EV_ABS ABS_MT_POSITION_X 0000019e [ 78826.389099] EV_ABS ABS_MT_POSITION_Y 00000361 [ 78826.389099] EV_SYN SYN_REPORT 00000000 [ 78826.468688] EV_ABS ABS_MT_SLOT 00000000 [ 78826.468688] EV_ABS ABS_MT_TRACKING_ID ffffffff [ 78826.468719] EV_ABS ABS_MT_SLOT 00000001 [ 78826.468719] EV_ABS ABS_MT_TRACKING_ID ffffffff [ 78826.468719] EV_SYN SYN_REPORT 00000000 </code>
<code>$ getevent -lt [ 78826.389007] EV_ABS ABS_MT_TRACKING_ID 0000001f [ 78826.389038] EV_ABS ABS_MT_PRESSURE 000000ab [ 78826.389038] EV_ABS ABS_MT_POSITION_X 000000ab [ 78826.389068] EV_ABS ABS_MT_POSITION_Y 0000025b [ 78826.389068] EV_ABS ABS_MT_SLOT 00000001 [ 78826.389068] EV_ABS ABS_MT_TRACKING_ID 00000020 [ 78826.389068] EV_ABS ABS_MT_PRESSURE 000000b9 [ 78826.389099] EV_ABS ABS_MT_POSITION_X 0000019e [ 78826.389099] EV_ABS ABS_MT_POSITION_Y 00000361 [ 78826.389099] EV_SYN SYN_REPORT 00000000 [ 78826.468688] EV_ABS ABS_MT_SLOT 00000000 [ 78826.468688] EV_ABS ABS_MT_TRACKING_ID ffffffff [ 78826.468719] EV_ABS ABS_MT_SLOT 00000001 [ 78826.468719] EV_ABS ABS_MT_TRACKING_ID ffffffff [ 78826.468719] EV_SYN SYN_REPORT 00000000 </code>