Does FreeBSD support USB keyboards?

Yes, out-of-the box, since 4.0.  Move the 3.x specific information
from such prominence, and clean up the instructions so that 3.x and
5.x info is not intertwined.  Make a couple of sentences more clear
while I'm here.
This commit is contained in:
Michael Lucas 2003-03-25 15:04:57 +00:00
parent 526e6c0663
commit 895cb7dc7e
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=16361

View file

@ -2452,29 +2452,23 @@ disk wd2 at wdc1 drive 1 # change from wd3 to wd2</programlisting
</question>
<answer>
<para>USB device support was added to FreeBSD 3.1. However, it
is still in preliminary state and may not always work as of
version 3.2. If you want to experiment with the USB keyboard
support, follow the procedure described below.</para>
<para>FreeBSD 4.X and later supports USB keyboards
out-of-the-box. Preliminary USB device support appeared
in FreeBSD 3.1, but might not always work as of version
3.2. If you want to experiment with the USB keyboard
support in FreeBSD 3.X, follow the procedure described
below.</para>
<procedure>
<step>
<para>Use FreeBSD 3.2 or later.</para>
<para>Use a version of FreeBSD 3.X later than
3.2.</para>
</step>
<step>
<para>Add the following lines to your kernel configuration
file, and rebuild the kernel.</para>
<programlisting>device uhci
device ohci
device usb
device ukbd
options KBD_INSTALL_CDEV</programlisting>
<para>In versions of FreeBSD before 4.0, use this
instead:</para>
<programlisting>controller uhci0
controller ohci0
controller usb0
@ -2488,13 +2482,6 @@ options KBD_INSTALL_CDEV</programlisting>
<screen>&prompt.root; <userinput>cd /dev</userinput>
&prompt.root; <userinput>./MAKEDEV kbd0 kbd1</userinput></screen>
<note>
<para>You can omit this step if you are running FreeBSD
5.0-RELEASE or newer with &man.devfs.5; enabled,
since the proper device nodes will be created automatically
under <filename>/dev</filename>.</para>
</note>
</step>
<step>
@ -2507,7 +2494,11 @@ usbd_flags=""</programlisting>
</step>
</procedure>
<para>After the system is rebooted, the AT keyboard becomes
<para>If you want to use a USB keyboard in FreeBSD 4.X or
later, you just need to enable USB support in
<filename>/etc/rc.conf</filename>.</para>
<para>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
@ -2533,8 +2524,8 @@ usbd_flags=""</programlisting>
environment as well without any special settings.</para>
<para>Hot-plugging and unplugging of the USB keyboard may not
work quite right yet. It is a good idea to connect the keyboard
before you start the system and leave it connected until the
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>See the &man.ukbd.4; manual page for more information.</para>