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.
14 .\" $FreeBSD: src/usr.sbin/kbdcontrol/kbdcontrol.1,v 1.18.2.9 2001/08/16 15:56:00 ru Exp $
15 .\" $DragonFly: src/usr.sbin/kbdcontrol/kbdcontrol.1,v 1.4 2006/02/17 20:40:16 swildner Exp $
22 .Nd a utility for manipulating the syscons console driver
28 .Ar duration . Ns Ar pitch | Ar belltype
32 .Ar delay . Ns Ar repeat | Ar speed
34 .Op Fl l Ar keymap_file
35 .Op Fl f Ar # Ar string
37 .Op Fl k Ar keyboard_device
38 .Op Fl L Ar keymap_file
42 command is used to set various keyboard related options for the
44 console driver and the keyboard drivers,
45 such as key map, keyboard repeat and delay rates, bell
48 Keyboard options may be automatically configured at system boot time by
52 .Sx Boot Time Configuration
55 The following command line options are supported:
56 .Bl -tag -width indent
58 .Ar duration . Ns Ar pitch | Ar belltype
60 Set the bell duration in milliseconds and pitch in hertz.
63 argument is specified, it may be one of
65 which sets sound parameters back to normal values,
67 which disables the bell entirely, or
69 which sets the bell to visual mode, i.e. flashes the screen instead.
72 is preceded by the word
74 the bell will not be rung when the ringing process is in the background vty.
76 .Ar delay . Ns Ar repeat | Ar speed
83 (34, 38, 42, 46, 50, 55, 59, 63, 68, 76, 84, 92, 100, 110, 118, 126,
84 136, 152, 168, 184, 200, 220, 236, 252, 272, 304, 336, 368, 400, 440,
88 argument is specified, it may be one of
96 .It Fl l Ar keymap_file
97 Install keyboard map file from
99 You may load the keyboard map file from a menu-driven command,
102 Dump the current keyboard map onto stdout.
103 The output may be redirected to a file and can be loaded
104 back to the kernel later by the
107 .It Fl f Ar # Ar string
108 Set function key number
112 Refer to the man page for the keyboard driver
115 for available function keys and their numbers.
117 Set function keys back to the standard definitions.
119 Use hexadecimal numbers in keyboard map dump.
121 Set history buffer size to
125 Print brief information about the keyboard.
127 Disconnect the keyboard from the console.
130 option below to associate a keyboard with the console again.
131 .It Fl k Ar keyboard_device
132 Use the specified device as the console keyboard.
133 When using this option, the standard input of the
135 process should be redirected from
137 if you are not working on the system console
141 .It Fl L Ar keymap_file
142 Load keyboard map file from
146 compiled from it to stdout.
147 This option is primarily intended for programmers and is probably
148 of little use under normal circumstances.
150 .Sh KEYBOARD CONFIGURATION
151 .Ss Boot Time Configuration
152 You may set variables in
155 .Pa /etc/rc.conf.local
156 in order to configure the keyboard at boot time.
157 The following is the list of relevant variables.
159 .Bl -tag -width foo_bar_var -compact
161 Specifies a keyboard map file for the
165 Sets the keyboard repeat rate for the
169 Lists function key strings for the
177 .Ss Driver Configuration
178 The keyboard device driver may let you change default configuration
179 options, such as the default keyboard map, so that you do not need to set up
180 the options at boot time.
181 See keyboard driver manuals
187 .Bl -tag -width /usr/share/syscons/keymaps/foo_bar -compact
188 .It Pa /usr/share/syscons/keymaps/*
192 The following command will load the keyboard map file
193 .Pa /usr/share/syscons/keymaps/ru.koi8-r.kbd .
195 .Dl kbdcontrol -l /usr/share/syscons/keymaps/ru.koi8-r.kbd
197 So long as the keyboard map file resides in
198 .Pa /usr/share/syscons/keymaps ,
199 you may abbreviate the file name as
202 .Dl kbdcontrol -l ru.koi8-r
204 The following command will make the function key 10 emit "telnet myhost".
206 .Dl kbdcontrol -f 10 \&"telnet myhost\&"
208 In order to get the visual effect for bell, but prevent the screen
209 from flushing if the bell is to ring in the background screen,
210 run the following command.
212 .Dl kbdcontrol -b quiet.visual
214 To change the default console keyboard to another keyboard,
215 for example the first USB keyboard (see
217 use the following commands.
219 .Dl kbdcontrol -k /dev/kbd1 < /dev/console
221 To switch back to the default keyboard, use this command.
223 .Dl kbdcontrol -k /dev/kbd0
235 .An S\(/oren Schmidt Aq sos@FreeBSD.org