Date: Tue, 28 Feb 2006 19:36:25 -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/kbd kbd.c src/sys/dev/syscons syscons.c Message-ID: <bb4a86c70602281936h313238d4k608e2ad4abaa283e@mail.gmail.com> In-Reply-To: <44050B67.3040302@samsco.org> References: <200602282346.k1SNkNHq073716@repoman.freebsd.org> <4404FCC8.5070907@samsco.org> <bb4a86c70602281837l7f9c8c8arc6aa2abc99841caf@mail.gmail.com> <44050B67.3040302@samsco.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/28/06, Scott Long <scottl@samsco.org> wrote: > Maksim Yevmenkin wrote: [...] > >>Ultimately I would like to see this enabled by default so that > >>everything 'just works', but with a way to easily disable it in case > >>something goes wrong. Would that be possible? > > > > right now i can think of two ways to make it enabled by default: > > > > 1) add 'device kbdmux' to the kernel config (or even make it required) > > Could you add a check to the probe/attach routines of kbdmux so that it > could be disabled via a loader hint? I assume that there will only be > one instance of the kbdmux device, so this should be easy to do. > Something similar is possible with acpi, fwiw. sure. i can add check in kbdmux_probe(). > > 2) set kbdmux_load to "YES" somewhere in loader.* files (somewhat > > similar to acpi). > > Actually, acpi is much more evil. The loader probes the BIOS to see if > ACPI tables are present, and then sets the acpi_load variable based on > that. So no variables in loader.* are present in the default install. > If we wanted to add the kbdmux_load variable in the default system then > we will need to add /usr/src/sys/boot/forth/loader.conf, or add magic > to the installkernel target to handle it similar to device.hints. ok. i will add check for hints then. so, i guess, the plan is to add device kbdmux into default kernel config and use hints do enable/disable kbdmux, right? thanks, max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb4a86c70602281936h313238d4k608e2ad4abaa283e>