How to port Keypad function into i.MX6Q Ubuntu?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to port Keypad function into i.MX6Q Ubuntu?

跳至解决方案
1,743 次查看
Oceanblue
Contributor III

Dear all,

     Now I'm working with MX6Q for Ubuntu 11.10, because there is keypad function on Ubuntu original design, does anyone know how to port keypad function on MX6Q Ubuntu? thx

标签 (1)
标记 (2)
1 解答
1,490 次查看
AlanZhang
Contributor V

Hi, Jack,

Whether your keypad is a special one or generic one? If yours is specificial, you need to prepare the driver, in your driver, you can see there exist a top-half part to translate the input key raw code (i.e. scan code) into Linux standard KEY_xxxx that are defined in linux/input.h. After adjust the mapping between your raw code to KEY_xxx, you check whether the /dev/input/event0 is created for this driver, if everything is done, you can get your keypad input in Ubuntu. If your keypad is generic like USB keypad, you should get it.

Regards,

Alan Zhang

在原帖中查看解决方案

3 回复数
1,490 次查看
Oceanblue
Contributor III

All, does Freescale has any document to explain how to add keypad function on Ubuntu or Linux OS? thx

0 项奖励
回复
1,490 次查看
YixingKong
Senior Contributor IV


Jack, if the answer from Alan is correct, please click Correct Answer. Your DI will be closed. Thanks.

0 项奖励
回复
1,491 次查看
AlanZhang
Contributor V

Hi, Jack,

Whether your keypad is a special one or generic one? If yours is specificial, you need to prepare the driver, in your driver, you can see there exist a top-half part to translate the input key raw code (i.e. scan code) into Linux standard KEY_xxxx that are defined in linux/input.h. After adjust the mapping between your raw code to KEY_xxx, you check whether the /dev/input/event0 is created for this driver, if everything is done, you can get your keypad input in Ubuntu. If your keypad is generic like USB keypad, you should get it.

Regards,

Alan Zhang