在终端中输入:
getevent
可以查看到所有的输入事件:
add device 1: /dev/input/event0
name: "xxxxxxxxxx1"
add device 2: /dev/input/event6
name: "xxxxxxxxxx2"
add device 3: /dev/input/event5
name: "xxxxxxxxxxx3"
could not get driver version for /dev/input/mice, Not a typewriter
add device 4: /dev/input/event4
name: "xxxxxxxxxxx4"
add device 5: /dev/input/event3
name: "xxxxxxxxxxx5"
add device 6: /dev/input/event2
name: "xxxxxxxxxxx6"
add device 7: /dev/input/event1
name: "xxxxxxxxxxx7"
===========================================
getevent
执行后,能够查看到现在正在运行的输入子系统的运行状态
像SENSER这些一般在终端上面一直能够看到LOG打印的
其次像耳机插拔和TP触摸都能够看到LOG信息:
每个输入子系统的设备都针对一个事件:
getevent -l /dev/input/event*
可以查看具体的事件