Update Question 4.4.1:
- Replace /dev/ttyv0 with /dev/console in the examples - Remove /etc/rc.i386 and add a note about rc.conf(5) settings - Add some examples from the kbdcontrol(1) man page - Add links for kbdcontrol(1), kbdmux(4) - Reword a few things (suggested by trhodes) Reviewed by: trhodes, danger, remko Approved by: gabor (mentor)
This commit is contained in:
parent
153934091c
commit
eb4a8f222f
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32227
1 changed files with 32 additions and 15 deletions
|
|
@ -2367,10 +2367,7 @@
|
|||
|
||||
<answer>
|
||||
<para>FreeBSD supports USB keyboards
|
||||
out-of-the-box. Enable USB support in
|
||||
<filename>/etc/rc.conf</filename>.</para>
|
||||
|
||||
<para>Once you have USB keyboard support enabled on your
|
||||
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
|
||||
|
|
@ -2384,28 +2381,48 @@
|
|||
following command as a part of system
|
||||
initialization.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>kbdcontrol -k /dev/kbd1 < /dev/console > /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 < /dev/ttyv0 > /dev/null</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>kbdcontrol -k /dev/ukbd0 < /dev/console > /dev/null</userinput></screen>
|
||||
|
||||
<para><filename>/etc/rc.i386</filename> is a good place to
|
||||
add the above command.</para>
|
||||
<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>Hot-plugging and unplugging of the USB keyboard may
|
||||
not work quite right yet. We recommend connecting the
|
||||
keyboard before starting the system and leaving it
|
||||
connected until the system is shutdown to avoid
|
||||
troubles.</para>
|
||||
<para>If you want to switch back to the default keyboard,
|
||||
use this command:</para>
|
||||
|
||||
<para>See the &man.ukbd.4; manual page for more information.</para>
|
||||
</answer>
|
||||
<screen>&prompt.root; <userinput>kbdcontrol -k /dev/kbd0 > /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 < /dev/console > /dev/null</userinput>
|
||||
<userinput>kbdcontrol -a atkbd0 < /dev/kbdmux0 > /dev/null</userinput>
|
||||
<userinput>kbdcontrol -a ukbd1 < /dev/kbdmux0 > /dev/null</userinput>
|
||||
<userinput>kbdcontrol -k /dev/kbdmux0 < /dev/console > /dev/null</userinput></screen>
|
||||
|
||||
<para>See the &man.ukbd.4;, &man.kbdcontrol.1; and
|
||||
&man.kbdmux.4; manual pages for more information.</para>
|
||||
|
||||
<note>
|
||||
<para>Hot-plugging and unplugging of the USB keyboard may
|
||||
not work quite right yet. We recommend connecting the
|
||||
keyboard before starting the system and leaving it
|
||||
connected until the system is shutdown to avoid
|
||||
issues.</para>
|
||||
</note>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
<qandaentry>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue