Hi. I'm needing to use an usb keyboard on mini2440. The linux already recognizes the usb keyboard in /dev/input. I tried to give a cat cmd on event2 file and when I type something on usb keyboard it gives me some trash data. How do I translate that data to real characters? Or what file do I need to read to get the right data? Thanks for all. Pedro Henrique
USB Keyboard
Both FriendlyArm distros recognise a USB Logtech keyboard "out of the box". What kernel and rootfs are you using?
Hi. Thanks for your reply. I'm using a generic keyboard. Linux is recognizing the keyboard. But I don't get to read which key was pressed. I tried to read the file /dev/input/event but I only got some trash data. I'd like to know where the right is data been saved. Thanks.
The trash data is possibly Hex Values of what keys are being pressed. You'll need to dump the file (eg. cp /dev/input/event ~/test.txt) and open that up in a hex editor.
Hi, I have the same problem. I already did what Coburn64 said, but the hex values are very different, ex: I press A in the keyboard, on test.txt out 0 0 8b 6 0 4 0 4 0 4 0 7 0 then I press again and out 0 0 b9 6 0 1 0 1e 0 1 0 0 0. if anyone knows how i solve this problem, please answer the topic. Thanks.