我在我的装备中使用evtest来查看按下我的硬键遥控器上的按钮的KEY值。获取输出内容如下所示。
***
^[[15~Event: time 1447340367.872317, type 4 (EV_MSC), code 4 (MSC_SCAN)
Event: time 1447340367.872329, type 1 (EV_KEY), code 63 (KEY_F5), value 1
Event: time 1447340367.872330, -------------- SYN_REPORT ------------
Event: time 1447340367.913953, type 4 (EV_MSC), code 4 (MSC_SCAN)
Event: time 1447340367.913966, type 1 (EV_KEY), code 63 (KEY_F5), value 0
Event: time 1447340367.913967, -------------- SYN_REPORT ------------
^[[AEvent: time 1447340404.421715, type 4 (EV_MSC), code 4 (MSC_SCAN)
Event: time 1447340404.421734, type 1 (EV_KEY), code 103 (KEY_UP), value 1
Event: time 1447340404.421735, -------------- SYN_REPORT ------------
Event: time 1447340404.444706, type 4 (EV_MSC), code 4 (MSC_SCAN)
Event: time 1447340404.444710, type 1 (EV_KEY), code 103 (KEY_UP), value 0
供应商处的相同输出正在显示
&&&&&&&&&&&
^[[15~Event: time 1447340367.872317, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7003e
Event: time 1447340367.872329, type 1 (EV_KEY), code 63 (KEY_F5), value 1
Event: time 1447340367.872330, -------------- SYN_REPORT ------------
Event: time 1447340367.913953, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7003e
Event: time 1447340367.913966, type 1 (EV_KEY), code 63 (KEY_F5), value 0
Event: time 1447340367.913967, -------------- SYN_REPORT ------------
^[[AEvent: time 1447340404.421715, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70052
Event: time 1447340404.421734, type 1 (EV_KEY), code 103 (KEY_UP), value 1
Event: time 1447340404.421735, -------------- SYN_REPORT ------------
Event: time 1447340404.444706, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70052
Event: time 1447340404.444710, type 1 (EV_KEY), code 103 (KEY_UP), value 0
&安培;&安培;&安培;&安培;&安培;&安培;&安培;&安培;&安培;&安培;&安培;
^[[15~Event: time 1447340367.872317, type 4 (EV_MSC), code 4 (MSC_SCAN), **value 7003e**
扫描值不会出现在我的linux装备上,任何想法如何得到它?
答案 0 :(得分:0)
您可能需要更新系统上的evtest版本。快速浏览一下evtest的代码就可以看出版本1.27及以上版本总是打印出值;早期版本可能不会这样做。