|
From: Aivils S. <ai...@un...> - 2005-09-01 06:55:44
|
On Otrdiena, 30. Augusts 2005 19:39, Hugo Vanwoerkom wrote:
> > major is INPUT_MAJOR =3D=3D 13
> > minor is FTTY_MINOR_BASE =3D=3D 128
> > crw-rw---- =A01 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=3Disa0060.serio1.input0
HANDLER=3Dftty
DEVICE=3D`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
|