table of contents
UKBD(4) | Device Drivers Manual | UKBD(4) |
NAME¶
ukbd — USB keyboard driverSYNOPSIS¶
To compile this driver into the kernel, place the following line in your kernel configuration file:device ukbd
Alternatively, to load the driver as a module at boot time, place the following
line in loader.conf(5):
ukbd_load="YES"
DESCRIPTION¶
The ukbd driver provides support for keyboards that attach to the USB port. usb(4) and one of uhci(4) or ohci(4) must be configured in the kernel as well.CONFIGURATION¶
By default, the keyboard subsystem does not create the appropriate devices yet. Make sure you reconfigure your kernel with the following option in the kernel config file:options KBD_INSTALL_CDEV
kbdcontrol -i < /dev/kbd1
kbdcontrol -l keymaps/pt.iso <
/dev/kbd1
kbdcontrol -k /dev/kbd1
kbdcontrol -k /dev/kbd0 < /dev/ttyv0 >
/dev/null
device sc0 at isa? flags 0x100
DRIVER CONFIGURATION¶
options KBD_INSTALL_CDEV
Make the keyboards available through a character device in
/dev.
options UKBD_DFLT_KEYMAP
makeoptions UKBD_DFLT_KEYMAP=fr.iso
The above lines will put the French ISO keymap in the ukbd driver. You can
specify any keymap in /usr/share/syscons/keymaps with this
option.
options KBD_DISABLE_KEYMAP_LOADING
Do not allow the user to change the keymap. Note that these options also affect
the AT keyboard driver, atkbd(4).
FILES¶
- /dev/kbd*
- blocking device nodes
EXAMPLES¶
device ukbd
Add the ukbd driver to the kernel.
SEE ALSO¶
kbdcontrol(1), ohci(4), syscons(4), uhci(4), usb(4), config(8)AUTHORS¶
The ukbd driver was written by Lennart Augustsson ⟨augustss@cs.chalmers.se⟩ for NetBSD and was substantially rewritten for FreeBSD by Kazutaka YOKOTA ⟨yokota@zodiac.mech.utsunomiya-u.ac.jp⟩. This manual page was written by Nick Hibma ⟨n_hibma@FreeBSD.org⟩ with a large amount of input from Kazutaka YOKOTA ⟨yokota@zodiac.mech.utsunomiya-u.ac.jp⟩.November 22, 2006 | Debian |