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
Solved! Go to Solution.
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
All, does Freescale has any document to explain how to add keypad function on Ubuntu or Linux OS? thx
Jack, if the answer from Alan is correct, please click Correct Answer. Your DI will be closed. Thanks.
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