[Qt-interest] multiple keyboard support with LinuxInput driver?

Jeroen De Wachter jeroen.dewachter at barco.com
Wed Mar 10 12:11:29 CET 2010


Hi,

I'm working on an embedded PowerPC device.
There is a control box attached to the device through USB. That box acts 
like a standard keyboard, and the LinuxInput driver gets its input 
without issue.

However, we will have situations where more than one control box is 
attached. In that case, there will be one device file per control box. 
This is a problem as the LinuxInput Keyboard handler only processes one 
device file and QWSServer only has one QWSKeyboardHandler to work with.

Is there any standard way of dealing with an arbitrary number of input 
devices? Or do we need to write our own KeyboardHandler to do this? This 
seems like something someone must have already encountered (and 
hopefully solved ;) ).

We are considering an implementation based on either mdev (a simpler 
version of udev) or inotify, which would notify the KeyBoardHandler when 
an input device is connected or disconnected.

Using X is not an option for us, considering our limited hardware 
(especially storage and memory).

Thx,

Jeroen De Wachter




More information about the Qt-interest-old mailing list