My problem is I have an embedded system normally headless.
It has a serial console I use for debugging, but will not be present in production.
It has no vga/graphics/monitor/whatever.
It doesn't have a proper keyboard or mouse.
So far, so good.
Now I need to connect a barcode scanner that works in "keyboard emulation" (i.e.: presents itself as an USB keyboard and acts accordingly).
I enabled several device drivers as modules:
- usbhid
- evdev
- hid_generic
- hid
- input_core
Scanner somehow works, meaning it gets initialized and generates Key events I can get reading /dev/input/event0
(and they look OK).
What I'm missing is the complete decoding so that I can open a device and read characters (not scancodes). I expected the hid-generic
module to pick up input_event
s and generate characters to console.
What am I missing?
keyboard
module handles translation from scancodes for VTs (though I am not sure how it decides which input-layer event sources to process), and there's a special X driver that does the same for input-layer event sources. I am not sure if you can usekeyboard
without a VT, possibly you can create a dummy framebuffer.