cvs commit: src/sys/dev/kbdmux kbdmux.c
Brian Fundakowski Feldman
green at freebsd.org
Wed Mar 1 14:32:42 PST 2006
On Sat, Feb 25, 2006 at 02:43:11PM -0800, Maksim Yevmenkin wrote:
> > 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
> --- ukbd.c.orig Wed Mar 30 00:32:41 2005
> +++ ukbd.c Thu Feb 23 17:18:37 2006
> @@ -1145,9 +1145,7 @@
> state = (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);
> however, i'd like to give people a chance to comment on this
> 2) integrate remained parts of the following patch
> 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 kernel);
> 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?
That sounds really good!
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green at FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
More information about the cvs-src