From: Aivils S. <Aiv...@un...> - 2004-01-05 10:09:15
|
>I just switched my computer running backstreet ruby on a 2.4.22 kernel to two >(nearly) identical Logitech USB keyboards. These provide access to their >extended keys through a second logical USB keyboard device. So far I did not >find a way to join two logical keyboard devices on a single VT to be able to >grab the scancodes of all keys. Did I miss something or is it still not >possible with (b)ruby? >If it's not yet implemented, how difficult would it be to add this >functionality? Would I have a chance to do it in "finite" time if I have no >previous experience with Linux's (b)ruby input layer? Unfortunately nobody done with these keys. Typicaly USB multimedia keyboards use secondary USB interface especially for multimedia keys. You can parse /proc/bus/input/devices and make sure by Yourself. One keyboard ware have two physicaly interfaces, each have /dev/input/eventXX device. /dev/input/eventXX is done. You may download CVSed evtest.c and test Your multimedia keys. I don't know any userland util , which read /dev/input/eventX and do user configurable orders. I don't know any userland util , which read /dev/vc/XX multimedia keypress and do some important. Under ruby 2nd USB keyboard interface have another VT and You do not recieve keypress from multimedia keys. Typicaly mutimedia keypresses are ignored by keyboard driver. TTY may recieve multimedia keypresses as 4 - 6 keycode series. That series already decoded by /dev/input/eventXX layer. If anybody has a developer power, then is possible merge evtest.c and http://xkeymouse.sourceforge.net/ utils and so catch multimedia keys. AFAIK eventXX layer works indenticaly with bunch of keyboards fitted with multimedia keys (Microsoft, Logitech and so on). Aivils Stoss |