2 .\" kbdcontrol - a utility for manipulating the syscons keyboard driver section
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.
21 .Nd keyboard control and configuration utility
27 .Ar duration . Ns Ar pitch | Ar belltype
31 .Ar delay . Ns Ar repeat | Ar speed
33 .Op Fl l Ar keymap_file
34 .Op Fl f Ar # Ar string
35 .Op Fl k Ar keyboard_device
36 .Op Fl L Ar keymap_file
40 command is used to set various keyboard related options for the
42 console driver and the keyboard drivers,
43 such as key map, keyboard repeat and delay rates, bell
46 Keyboard options may be automatically configured at system boot time by
50 .Sx Boot Time Configuration
53 The following command line options are supported:
54 .Bl -tag -width indent
56 .Ar duration . Ns Ar pitch | Ar belltype
58 Set the bell duration in milliseconds and pitch in hertz.
61 argument is specified, it may be one of
63 which sets sound parameters back to normal values,
65 which disables the bell entirely, or
67 which sets the bell to visual mode, i.e. flashes the screen instead.
70 is preceded by the word
72 the bell will not be rung when the ringing process is in the background vty.
74 .Ar delay . Ns Ar repeat | Ar speed
81 (34, 38, 42, 46, 50, 55, 59, 63, 68, 76, 84, 92, 100, 110, 118, 126,
82 136, 152, 168, 184, 200, 220, 236, 252, 272, 304, 336, 368, 400, 440,
86 argument is specified, it may be one of
94 .It Fl l Ar keymap_file
95 Install keyboard map file from
97 You may load the keyboard map file from a menu-driven command,
100 Dump the current keyboard map onto stdout.
101 The output may be redirected to a file and can be loaded
102 back to the kernel later by the
105 .It Fl f Ar # Ar string
106 Set function key number
110 Refer to the man page for the keyboard driver
113 for available function keys and their numbers.
115 Set function keys back to the standard definitions.
117 Use hexadecimal numbers in keyboard map dump.
119 Print brief information about the keyboard.
121 Disconnect the keyboard from the console.
124 option below to associate a keyboard with the console again.
125 .It Fl k Ar keyboard_device
126 Use the specified device as the console keyboard.
127 When using this option, the standard input of the
129 process should be redirected from
131 if you are not working on the system console
135 .It Fl L Ar keymap_file
136 Load keyboard map file from
140 compiled from it to stdout.
141 This option is primarily intended for programmers and is probably
142 of little use under normal circumstances.
145 The environment variable
147 can hold an alternative path to the keyboard map files.
148 .Sh KEYBOARD CONFIGURATION
149 .Ss Boot Time Configuration
150 You may set variables in
153 .Pa /etc/rc.conf.local
154 in order to configure the keyboard at boot time.
155 The following is the list of relevant variables.
157 .Bl -tag -width foo_bar_var -compact
159 Specifies a keyboard map file for the
163 Sets the keyboard repeat rate for the
167 Lists function key strings for the
175 .Ss Driver Configuration
176 The keyboard device driver may let you change default configuration
177 options, such as the default keyboard map, so that you do not need to set up
178 the options at boot time.
179 See keyboard driver manuals
185 .Bl -tag -width /usr/share/syscons/keymaps/foo_bar -compact
186 .It Pa /usr/share/syscons/keymaps/*
190 The following command will load the keyboard map file
191 .Pa /usr/share/syscons/keymaps/ru.koi8-r.kbd .
193 .Dl kbdcontrol -l /usr/share/syscons/keymaps/ru.koi8-r.kbd
195 So long as the keyboard map file resides in
196 .Pa /usr/share/syscons/keymaps ,
197 you may abbreviate the file name as
200 .Dl kbdcontrol -l ru.koi8-r
202 The following command will make the function key 10 emit "telnet myhost".
204 .Dl kbdcontrol -f 10 \&"telnet myhost\&"
206 In order to get the visual effect for bell, but prevent the screen
207 from flushing if the bell is to ring in the background screen,
208 run the following command.
210 .Dl kbdcontrol -b quiet.visual
212 To change the default console keyboard to the another keyboard,
213 for example the first USB keyboard (see
215 use the following commands.
217 .Dl kbdcontrol -k /dev/kbd1 < /dev/console
219 To switch back to the default keyboard, use this command.
221 .Dl kbdcontrol -k /dev/kbd0
235 .An S\(/oren Schmidt Aq sos@FreeBSD.org