From: Hugo V. <hvw...@ya...> - 2005-09-01 10:15:52
|
--- Aivils Stoss <ai...@un...> wrote: > On Otrdiena, 30. Augusts 2005 19:39, Hugo Vanwoerkom > wrote: > > > major is INPUT_MAJOR == 13 > > > minor is FTTY_MINOR_BASE == 128 > > > crw-rw---- 1 root root 13, 128 aug 30 13:54 > > > /dev/ftty0 > > > owner, group, mode depends from hobbyhorse of > system > > > operator > > > > Does the trick. > > > > But the keyboards are backwards. I.e. the one in > front > > of monitor1 works on monitor2 and vv. The mice > work > > correctly. > > May be this wraper script helps? > > #!/bin/sh -e > # > # Scans /proc/bus/input/devices for the given device > physicaly location > # like isa0060.serio0.input0 . Please replace slash > "/" with period "." > # Aivils Stoss > # GPL v2 or later applies. > > PHYS=isa0060.serio1.input0 > > HANDLER=ftty > > DEVICE=`sed -nre ' > /^I:/ { > : gather > N > /\nH:/! b gather > /'"$PHYS"'/ { > s/.*('"$HANDLER"'[0-9]*).*/\\1/p > } > } > ' < /proc/bus/input/devices` > echo $DEVICE > rm -f /dev/tty50 > ln -s /dev/$DEVICE /dev/tty50 > exec X $* vt50 > That's it. Now it works as advertized. I'll report back again on that garbage on VT50, but it does not always happen. To get the bell on secondary monitors we hijack it? This now ought to be a Debian package, because no kernel patches needed anymore: I am running with Debian 2.6.11 now. They rejected my wishlist item to make Ruby a Debian package a while ago. Hugo __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |