This entire section has not been needed since kbdmux was added

to GENERIC.

Noted by:	tj
Approved by:	bcr (mentor)
This commit is contained in:
Eitan Adler 2012-12-12 13:02:06 +00:00
parent 0641667ad1
commit 773a7e70e2
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40357

View file

@ -1999,62 +1999,6 @@
<title>Keyboards and Mice</title>
<qandaset>
<qandaentry>
<question id="usbkbd">
<para>Does &os; support my USB keyboard?</para>
</question>
<answer>
<para>&os; supports USB keyboards out-of-the-box. Once you
have USB keyboard support enabled on your system, the AT
keyboard becomes <devicename>/dev/kbd0</devicename> and
the USB keyboard becomes
<devicename>/dev/kbd1</devicename>, if both are connected
to the system. If there is the USB keyboard only, it will
be <devicename>/dev/ukbd0</devicename>.</para>
<para>If you want to use the USB keyboard in the console,
you have to explicitly tell the console driver to use the
existing USB keyboard. This can be done by running the
following command as a part of system
initialization.</para>
<screen>&prompt.root; <userinput>kbdcontrol -k /dev/kbd1 &lt; /dev/console &gt; /dev/null</userinput></screen>
<para>Note that if the USB keyboard is the only keyboard, it
is accessed as <devicename>/dev/ukbd0</devicename>, thus,
the command should look like:</para>
<screen>&prompt.root; <userinput>kbdcontrol -k /dev/ukbd0 &lt; /dev/console &gt; /dev/null</userinput></screen>
<note>
<para>To make this change permanent across reboots, add
<literal>keyboard="/dev/ukbd0"</literal> to
<filename>/etc/rc.conf</filename>.</para>
</note>
<para>Once this is done, the USB keyboard should work in the
X environment as well without any special settings.</para>
<para>If you want to switch back to the default keyboard,
use this command:</para>
<screen>&prompt.root; <userinput>kbdcontrol -k /dev/kbd0 &gt; /dev/null</userinput></screen>
<para>To allow using both the second USB keyboard and the
first AT keyboard at the same time on a console via
&man.kbdmux.4; driver type the following commands:</para>
<screen>&prompt.root; <userinput>kbdcontrol -K &lt; /dev/console &gt; /dev/null</userinput>
&prompt.root; <userinput>kbdcontrol -a atkbd0 &lt; /dev/kbdmux0 &gt; /dev/null</userinput>
&prompt.root; <userinput>kbdcontrol -a ukbd1 &lt; /dev/kbdmux0 &gt; /dev/null</userinput>
&prompt.root; <userinput>kbdcontrol -k /dev/kbdmux0 &lt; /dev/console &gt; /dev/null</userinput></screen>
<para>See the &man.ukbd.4;, &man.kbdcontrol.1; and
&man.kbdmux.4; manual pages for more information.</para>
</answer>
</qandaentry>
<qandaentry>
<question id="moused">
<para>Is it possible to use a mouse in any way outside the X