1 .\" Copyright (c) 1997, 1998
2 .\" Nick Hibma <n_hibma@FreeBSD.org>. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd USB keyboard driver
34 To compile this driver into the kernel,
35 place the following line in your
36 kernel configuration file:
37 .Bd -ragged -offset indent
43 Alternatively, to load the driver as a
44 module at boot time, place the following line in
46 .Bd -literal -offset indent
52 driver provides support for keyboards that attach to the USB port.
58 must be configured in the kernel as well.
60 By default, the keyboard subsystem does not create the appropriate devices yet.
61 Make sure you reconfigure your kernel with the following option in the kernel
64 .Dl "options KBD_INSTALL_CDEV"
66 If both an AT keyboard USB keyboards are used at the same time, the
67 AT keyboard will appear as
71 The USB keyboards will be
74 You can see some information about the keyboard with the following command:
76 .Dl "kbdcontrol -i < /dev/kbd1"
80 .Dl "kbdcontrol -l keymaps/pt.iso < /dev/kbd1"
84 for more possible options.
86 You can swap console keyboards by using the command
88 .Dl "kbdcontrol -k /dev/kbd1"
90 From this point on, the first USB keyboard will be the keyboard
91 to be used by the console.
93 If you want to use a USB keyboard as your default and not use an AT keyboard at
94 all, you will have to remove the
96 line from the kernel configuration file.
97 Because of the device initialization order,
98 the USB keyboard will be detected
101 initializes itself and you have to explicitly tell the console
102 driver to use the existence of the USB keyboard.
104 one of the following two ways.
106 Run the following command as a part of system initialization:
108 .Dl "kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null"
110 (Note that as the USB keyboard is the only keyboard, it is accessed as
112 or otherwise tell the console driver to periodically look for a
113 keyboard by setting a flag in the kernel configuration file:
115 .Dl "device sc0 at isa? flags 0x100"
117 With the above flag, the console driver will try to detect any
118 keyboard in the system if it did not detect one while it was
119 initialized at boot time.
120 .Sh DRIVER CONFIGURATION
121 .D1 Cd "options KBD_INSTALL_CDEV"
123 Make the keyboards available through a character device in
126 .D1 Cd options UKBD_DFLT_KEYMAP
127 .D1 Cd makeoptions UKBD_DFLT_KEYMAP=fr.iso
129 The above lines will put the French ISO keymap in the ukbd driver.
130 You can specify any keymap in
131 .Pa /usr/share/syscons/keymaps
133 .Pa /usr/share/vt/keymaps
134 (depending on the console driver being used) with this option.
136 .D1 Cd "options KBD_DISABLE_KEYMAP_LOADING"
138 Do not allow the user to change the keymap.
139 Note that these options also affect the AT keyboard driver,
142 The following variables are available as both
147 .Bl -tag -width indent
148 .It Va hw.usb.ukbd.debug
149 Debug output level, where 0 is debugging disabled and larger values increase
150 debug message verbosity.
154 .Bl -tag -width ".Pa /dev/kbd*" -compact
156 blocking device nodes
163 driver to the kernel.
176 driver was written by
177 .An Lennart Augustsson Aq Mt augustss@cs.chalmers.se
180 and was substantially rewritten for
183 .An Kazutaka YOKOTA Aq Mt yokota@zodiac.mech.utsunomiya-u.ac.jp .
185 This manual page was written by
186 .An Nick Hibma Aq Mt n_hibma@FreeBSD.org
187 with a large amount of input from
188 .An Kazutaka YOKOTA Aq Mt yokota@zodiac.mech.utsunomiya-u.ac.jp .