On Tue, Apr 30, 2013 at 02:48:29PM +0800, Magicloud Magiclouds wrote: > Hi, > We have a barcode scanner used here, which for some reason has to be a > serial device. So all its scanning output is sent to /dev/ttyACM0. If I > `cat /dev/ttyACM0`, I could get the strings. > Problem now is, how to let these input be sent to X, acting like a > normal keyboard. > Any ideas?
With a quick search to jog my memory, the program you want to look into is "inputattach". This will create a /dev/input/* node for the serial device which Xorg should then automatically detect.
signature.asc
Description: Digital signature