Tutorial :What is the format of /dev/input/by-path/pci-xxx-kbd output?


after doing

$ cat /dev/input/by-path/pci-0000:00:02.0-usb-0:2:1.0-event-kbd > ~/test_kbd  

as root, I got a bunch of binary codes (which was expected). Now, I wanted to know how can I interpret this binary code to figure out what key has been pressed? What format is the output in? and is there a reference I could look at that would tell me what key each binary code stands for?



I would guess that they are scan codes. This page lists the make and break codes of keys used by modern keyboards. For more information on PS/2 keyboard programming, see Adam Chapweske's resources.


This file provides keyboard events (in binary format). Use

evtest /dev/input/by-path/pci-0000:00:02.0-usb-0:2:1.0-event-kbd  

to get some information.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »