cvs commit: src/usr.sbin/kbdcontrol kbdcontrol.1
Maksim Yevmenkin
maksim.yevmenkin at gmail.com
Thu Dec 29 13:24:52 PST 2005
Maxim,
> sobomax 2005-12-29 20:11:46 UTC
>
> FreeBSD src repository
>
> Modified files:
> usr.sbin/kbdcontrol kbdcontrol.1
> Log:
> Reveal sacred spells necessary for putting kbdmux(4) to real use.
>
> Hopefully gods of RTFS and RTFCL will not go after me.
>
> Revision Changes Path
> 1.39 +15 -0 src/usr.sbin/kbdcontrol/kbdcontrol.1
thanks for doing this! unfortunately, the sequence of command you have
put into the man page not entirely correct.
it will work, if you do all the commands from the scripts and do it
fast enough. note that syscons(4) will try to grab the first available
keyboard when it does not have one, and, the first thing you do is to
release current keyboard.
there is a better way to do it. syscons(4) supports KBADDKBD and
KBRELKBD ioctl(2)s, so you could do
(assuming atkbd0 is the default keyboard)
# kbdcontrol -a ukbd0 < /dev/kbdmux0 -- attach ukbd0 to kbdmux0
# kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0 -- switch console to kbdmux0/ukb0
# kbdcontrol -a atkbd0 < /dev/ttyv0 -- add atkbd0 to kbdmux0
i still cant figure out why my system locks up in X when i use
kbdmux(4)/atkbd(4) and psm(4). my only guess that kbdmux(4) somehow
changes order of evens and atkbd(4) and/or psm(4) access ps2 hardware
in the wrong way.
thanks,
max
More information about the cvs-src
mailing list