Hi ,

I did a lot of research on the input subsystem and I have the same 
conclusion : There is no simple way to report the  console key events 
through the /dev/input/eventX devices.
So the only solution for me was to hack gdkdisplay-directfb.c and 
comment the keyboard part.

It's working fine without keyboard. I was just wondering if there was 
some other solution but I think the answer is no.

Thanks everybody

Arnaud Derasse


Phil Endecott a écrit :
> 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
>   

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to