您的位置:首页 > 运维架构 > Linux

I.MX6 Linux 自动获取AR1020 event input节点

2016-04-05 18:49 471 查看
/***********************************************************************
*             I.MX6 Linux 自动获取AR1020 event input节点
* 说明:
*     本文主要记录如何自动获取AR1020 SPI电阻Touch产生的设备节点。
*
*                                     2016-4-5 深圳 南山平山村 曾剑锋
**********************************************************************/

cat /etc/profile
......
while [ -z $touchEvent ]
do
inputCheckLine=`cat /proc/bus/input/devices | grep -n "AR1020" | grep "Touchscreen"| awk -F: '{print $1}'`
touchEvent=`sed -n "$((${inputCheckLine}+4))p" /proc/bus/input/devices | grep -o "event."`
usleep 10
done
......
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: