input输入子系统整体流程-kernel

 

2|sp8541e_srvm:/proc/bus/input # cat handlers
N: Number=0 Name=sysdump_crashkey
N: Number=1 Name=mousedev Minor=32
N: Number=2 Name=evdev Minor=64
sp8541e_srvm:/ # cat /proc/bus/input/devices
cat /proc/bus/input/devices
I: Bus=0018 Vendor=dead Product=beef Version=28bb
N: Name="goodix-ts"
P: Phys=input/ts
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=sysdump event0
B: PROP=2
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=2650000 0

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="da380"
P: Phys=
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=event1
B: PROP=0
B: EV=9
B: ABS=7

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="sf-keys"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=sysdump event2
B: PROP=0
B: EV=10000003
B: KEY=40008800 16c0 800000 0 0

I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="sprd-gpio-keys"
P: Phys=gpio-keys/input0
S: Sysfs=/devices/platform/gpio_keys/input/input3
U: Uniq=
H: Handlers=sysdump event3
B: PROP=0
B: EV=3
B: KEY=1c0000 0 0 0

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="sprdphone Headset Jack"
P: Phys=ALSA
S: Sysfs=/devices/platform/sound@0/sound/card0/input4
U: Uniq=
H: Handlers=event4
B: PROP=0
B: EV=21
B: SW=14

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="sprdphone Headset Keyboard"
P: Phys=ALSA
S: Sysfs=/devices/platform/sound@0/sound/card0/input5
U: Uniq=
H: Handlers=sysdump event5
B: PROP=0
B: EV=3
B: KEY=18 4 0 0 0 c0000 0 0 0

sp8541e_srvm:/ #
sp8541e_srvm:/ # getevent -l
getevent -l
add device 1: /dev/input/event3
  name:     "sprd-gpio-keys"
add device 2: /dev/input/event5
  name:     "sprdphone Headset Keyboard"
add device 3: /dev/input/event4
  name:     "sprdphone Headset Jack"
add device 4: /dev/input/event2
  name:     "sf-keys"
add device 5: /dev/input/event1
  name:     "da380"
add device 6: /dev/input/event0
  name:     "goodix-ts"
could not get driver version for /dev/input/mice, Not a typewriter


/dev/input/event0: EV_KEY       BTN_TOUCH            DOWN
/dev/input/event0: EV_ABS       ABS_MT_POSITION_X    00000319
/dev/input/event0: EV_ABS       ABS_MT_POSITION_Y    0000010e
C:\Users\Administrator>adb shell
sp8541e_srvm:/ # getevent /dev/input/event3
getevent /dev/input/event3
0001 0074 00000001
0000 0000 00000000
0001 0074 00000000
0000 0000 00000000
1|sp8541e_srvm:/ # getevent -l /dev/input/event3
getevent -l /dev/input/event3
EV_KEY       KEY_POWER            DOWN
EV_SYN       SYN_REPORT           00000000
EV_KEY       KEY_POWER            UP
EV_SYN       SYN_REPORT           00000000
sp8541e_srvm:/ # ls  /dev/input/event*
ls  /dev/input/event*
/dev/input/event0 /dev/input/event2 /dev/input/event4
/dev/input/event1 /dev/input/event3 /dev/input/event5

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值