Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2006 14:43:11 -0800
From:      "Maksim Yevmenkin" <maksim.yevmenkin@gmail.com>
To:        "Scott Long" <scottl@samsco.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/dev/kbdmux kbdmux.c
Message-ID:  <bb4a86c70602251443i13879a2cw979596c60b86cd70@mail.gmail.com>
In-Reply-To: <4400D478.7060707@samsco.org>
References:  <200602252159.k1PLxT8G036312@repoman.freebsd.org> <4400D478.7060707@samsco.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott,

[...]

> So what do we need to do to get this enabled and running by default and
> get rid of the USB keyboard hack in the loader, as well as make the
> keyboard flags sane and predictable?

few things, imo

1) i'm pretty sure i want to get the following ukbd(4) patch in

=3D=3D

--- ukbd.c.orig Wed Mar 30 00:32:41 2005
+++ ukbd.c      Thu Feb 23 17:18:37 2006
@@ -1145,9 +1145,7 @@
        state =3D (ukbd_state_t *)kbd->kb_data;
        if (!(state->ks_flags & COMPOSE) && (state->ks_composed_char > 0))
                return TRUE;
-       if (state->ks_inputs > 0)
-               return TRUE;
-       return FALSE;
+       return ukbd_check(kbd);
 }

=3D=3D

however, i'd like to give people a chance to comment on this

2) integrate remained parts of the following patch

http://people.freebsd.org/~emax/kbdmux.diff.txt

(freefall:~emax/kbdmux.diff.txt)

the idea was that new keyboard will be attached to the kbdmux(4)
automatically (if present). syscons(4) would first look for kbdmux(4)
keyboard and then (if kbdmux(4) keyboard was not found) for any
keyboard. if syscons(4) finds kbdmux(4) keyboard it will automatically
attach all non-busy keyboards to the kbdmux(4).

one can use kbdmux(4) by simply

a) loading kbdmux(4) from the loader prompt (or compiling it into the kerne=
l);

b) kldload'ing kbdmux(4) and then releasing active keyboard;

if, for whatever reason, one does not want to use kbdmux(4) then just
do not load it and everything should be as it is right now.

3) remove ukbd(4) entries from /etc/devd.conf

i think this should do it. any comments?

thanks,
max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb4a86c70602251443i13879a2cw979596c60b86cd70>