Date: Tue, 28 Feb 2006 21:19:17 -0500 From: Jonathan Noack <noackjr@alumni.rice.edu> To: Maksim Yevmenkin <maksim.yevmenkin@savvis.net> Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] upcoming kbdmux(4) integration Message-ID: <440504A5.2080805@alumni.rice.edu> In-Reply-To: <4404EAFF.1010007@savvis.net> References: <44034160.8060905@savvis.net> <44042885.6040604@alumni.rice.edu> <4404EAFF.1010007@savvis.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 02/28/06 19:29, Maksim Yevmenkin wrote:
> Jonathan Noack wrote:
>> On 02/27/06 13:13, Maksim Yevmenkin wrote:
>>
>>> the bug, causing hard lockup with kbdmux(4), atkbd(4) and psm(4), was
>>> fixed in both releng_6 and head.
>>>
>>> i'd like to go ahead and integrate kbdmux(4) with the kbd code and
>>> syscons(4). also i'd like to make kbdmux(4) default in -current.
>>
>> I'm sure I'm missing something simple, but I can't figure out how to
>> configure this. I have a ps/2 keyboard (atkbd0/kbd0), kbdmux
>> (kbdmux0/kbd1), and a usb keyboard (ukbd0/kbd2). I tried to follow the
>> examples in kbdcontrol but kept running into "unable to (un)mux the
>> keyboard: Invalid argument" and "device busy" errors.
>
> with the patch, committed to -current today, everything will happen
> automatically.
>
> without the patch
>
> # kbdcontrol -a ukbd0 < /dev/kbdmux0 -- add ukbd0 to mux
>
> # kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0 -- switch keyboard to kbdmux/ukbd
>
> # kbdcontrol -a atkbd0 < /dev/ttyv0 -- add atkbd0 to kbdmux
ukbd0 is my default keyboard after boot, so I needed to add atkbd0
first. Here's the script I came up with (it's rather "dumb" but it
satisfies my needs):
#!/bin/sh
# Activate all keyboards
kbdcontrol -a atkbd0 < /dev/kbdmux0
kbdcontrol -k /dev/kbdmux0 < /dev/ttyv0
cd /dev
for kb in atkbd[1-9]* ukbd[0-9]*; do
if [ -c ${kb} ]; then
kbdcontrol -a ${kb} < /dev/ttyv0
fi
done
Thanks for helping and for your great work!
-Jonathan
--
Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (FreeBSD)
iD8DBQFEBQSsUFz01pkdgZURAvsLAKCP0+9t64+d4E5dZYHFJ5OO1uFUUwCgq/tI
BM3s3j2FmbVVo4jw6ZVMqOk=
=/Jem
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?440504A5.2080805>
