Arnaud Derasse wrote: > ttyS0 is the system console > ttyS1 is the serial mouse > I have a shell running on /dev/ttyS0 and when I start a dfb application, > I would like to have the keyboard input form the console to the dfb app.
As far as I am aware, a standard Linux kernel has no way to make input from a serial device appear in a /dev/input device. There is a thing called "inputattach" which claims to be a "utility to attach serial devices to the input subsystem"; however, I believe it is mostly for things like serial mice and games controllers. See http://www.doc.ic.ac.uk/~jpc1/linux/ipaq/serial.html for one example where it has been modified for use with a keyboard. Also, as far as I am aware, standard DirectFB has no way to accept input from a serial device or from the application's standard input. The fundamental issue is that DirectFB input sources, and /dev/input, report key-down/key-up information, while a serial device reports only the key-down information. So you could write a converter (either in the kernel or as a DirectFB input driver) but it would have to guess when to send the key-up information. (I could be wrong about all this, it is not a subject that I know a lot about.) Phil. _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
