How to port Keypad function into i.MX6Q Ubuntu?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to port Keypad function into i.MX6Q Ubuntu?

ソリューションへジャンプ
1,746件の閲覧回数
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,493件の閲覧回数
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,493件の閲覧回数
Oceanblue
Contributor III

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

0 件の賞賛
返信
1,493件の閲覧回数
YixingKong
Senior Contributor IV


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

0 件の賞賛
返信
1,494件の閲覧回数
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