USB Keyboard

Pedro Henrique 2010-08-19 13:51:49 Link
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

davef 2010-08-20 00:55:11 Link
Both FriendlyArm distros recognise a USB Logtech keyboard "out of the box".

What kernel and rootfs are you using?

davef 2010-08-20 00:56:11 Link
Logitech

Pedro Henrique 2010-08-20 13:31:02 Link
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.

Coburn64 2010-08-24 07:55:21 Link
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.

fuzivel 2010-08-24 16:47:31 Link
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.

fuzivel 2010-09-03 13:36:03 Link
anybody knows how can i solve this problem?

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 2889