svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
kbd(1)
kbd(1) User Commands kbd(1)
NAME
kbd - manipulate the state of the keyboard, or display the type of the
keyboard, or change the default keyboard abort sequence effect
SYNOPSIS
kbd [-T] [-r] [-t ] [-l] [-a enable | disable | alternate]
[-c on | off] [-d keyboard-device]
[-D autorepeat-delay] [-R autorepeat-rate]
kbd [-i] [-d keyboard-device]
kbd -s [language]
kbd -b [keyboard | console] frequency
DESCRIPTION
The kbd utility manipulates the state of the keyboard, or displays the
keyboard type, or allows the default keyboard abort sequence effect to
be changed. The abort sequence also applies to serial console devices.
The kbd utility sets the /dev/kbd default keyboard device.
For users with the solaris.smf.value.keymap authorizations, such as
those with the Device Security Rights Profile, all changes are perma‐
nent unless the -T option is given or when a keyboard device is speci‐
fied on the command line.
EXTENDED DESCRIPTION
The -i option reads and processes default values for the keyclick and
keyboard abort settings from the keyboard configuration service,
svc:/system/keymap:default. Only keyboards that support a clicker
respond to the -c option.
The keyboard abort sequence effect can be changed by a user with the
{PRIV_SYS_CONFIG} privilege using the -a option. This sequence is typi‐
cally Stop-A or L1-A and Shift-Pause on the keyboard on SPARC systems,
F1-A and Shift-Pause on x86 systems, and BREAK on the serial console
input device on most systems.
A BREAK condition that originates from an erroneous electrical signal
cannot be distinguished from one deliberately sent by remote DCE. As a
remedy, use the -a option with Alternate Break to switch break inter‐
pretation. Due to the risk of incorrect sequence interpretation, binary
protocols such as SLIP and others should not be run over the serial
console port when Alternate Break sequence is in effect.
The Alternate Break sequence has no effect on the keyboard abort. For
more information on the Alternate Break sequence, see the se(4D) and
asy(4D) man pages.
On many systems, the default effect of the keyboard abort sequence is
to suspend the operating system and enter the debugger or the monitor.
Some systems feature key switches with a secure position. On these sys‐
tems, setting the key switch to the secure position overrides any soft‐
ware default set with this command.
When the Alternate Break sequence is in effect, only serial console
devices are affected.
OPTIONS
The following options are supported:
-T
All changes are temporary and reverted when the system is rebooted,
kbd -i is run or when the svc:/system/keymap:default is refreshed.
For users without the proper authorization all changes are tempo‐
rary whether the -T option is supplied or not.
-a enable | disable | alternate
Enables, disables, or alternates the keyboard abort sequence
effect. By default, a keyboard abort sequence suspends the operat‐
ing system on most systems. This sequence is typically Stop-A or
L1-A and Shift-Pause on the keyboard on SPARC systems, F1-A and
Shift-Pause on x86 systems, and BREAK on the serial console device.
The default keyboard behavior can be changed using this option. The
-a option requires the {PRIV_SYS_CONFIG} privilege.
enable Enables the default effect of the keyboard abort
sequence (suspend the operating system and enter the
debugger or the monitor).
disable Disables the default/alternate effect and ignores key‐
board abort sequences.
alternate Enables the alternate effect of the keyboard abort
sequences (suspend the operating system and enter the
debugger or the monitor) upon receiving the Alternate
Break character sequence on the console. The Alternate
Break sequence is defined by the drivers se(4D) and
asy(4D). Due to a risk of incorrect sequence interpre‐
tation, binary protocols cannot be run over the serial
console port when this value is used.
-b keyboard | console
Sets the beeper frequency for keyboard or console.
keyboard Set the keyboard beeper frequency to the operand in HZ.
See OPERANDS.
console Sets the console beeper frequency to the operand in HZ.
See OPERANDS.
-c on | off
Turns the clicking of the keyboard on or off.
on Enables clicking
off Disables clicking
-d keyboard-device
Specifies the keyboard device being set. The default setting is
/dev/kbd.
-D autorepeat-delay
Sets the autorepeat delay in milliseconds.
-i
Sets keyboard properties from the keymap service. With the excep‐
tion of -d keyboard-device, this option cannot be used with any
other option. The -i option instructs the keyboard command to read
and process keyclick and keyboard abort default values from the
keyboard properties in the keymap service. The -i option can only
be used by a user or role with the Device Security Rights Profile.
-l
Returns the layout code of the keyboard being used, and the autore‐
peat delay and autorepeat rate being used.
If used with -R or -D option, this option returns the value before
the changes.
-r
Resets the keyboard as if power-up.
-R autorepeat-rate
Sets the autorepeat rate in milliseconds.
-s [language]
Sets the keyboard layout into kernel.
If language is specified, the layout is set to language. If lan‐
guage is not specified, a list of available layouts are presented,
prompting for the user to specify the language. See OPERANDS.
-t
Returns the type of the keyboard being used.
OPERANDS
The following operands are supported:
frequency The frequency value specified to be set in kernel. The
receiver of this value is specified by the -b option. This
value should be between 0 and 32767 otherwise it is
rejected with EINVAL.
language The language specified to be set in kernel. If the lan‐
guage is not found, the languages supported are listed for
selection. It only applies to -s option.
EXAMPLES
Example 1 Displaying the Keyboard Type
The following example displays the keyboard type:
example% kbd -t
USB keyboard
example%
Example 2 Setting Keyboard Defaults
The following example sets the keyboard defaults as specified in the
keymap service:
example# kbd -i
example#
Example 3 Displaying Information
The following example displays keyboard type and layout code. It also
displays auto repeat delay and rate settings.
example% kbd -l
type=6
layout=33 (0x21)
delay(ms)=500
rate(ms)=33
example%
Example 4 Setting Keyboard Autorepeat Delay
The following example sets the keyboard autorepeat delay:
example% kbd -D 300
example%
Example 5 Setting Keyboard Autorepeat Rate
The following example sets the keyboard autorepeat rate:
example% kbd -R 50
example%
Example 6 Selecting and Setting the Keyboard Language
The following example selects and sets the keyboard language from a
list of languages specified:
example% kbd -s
1. Albanian 16. Malta_UK
2. Belarusian 17. Malta_US
3. Belgian 18. Norwegian
4. Bulgarian 19. Portuguese
5. Croatian 20. Russian
6. Danish 21. Serbia-And-Montenegro
7. Dutch 22. Slove
......
To select the keyboard layout, enter a number [default n]:
example%
The following example sets the keyboard language specified:
example% kbd -s Dutch
example%
Example 7 Setting the Keyboard Beeper Frequency
The following example sets the keyboard beeper frequency:
example% kbd -b keyboard 1000
example%
FILES
/dev/kbd Keyboard device file
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Availabilitysystem/keyboard/keyboard-utilities
SEE ALSO
kmdb(1), loadkeys(1), svcs(1), asy(4D), se(4D), virtualkm(4D), kb(4M),
keytables(5), attributes(7), privileges(7), smf(7), svcadm(8), svc‐
cfg(8)
NOTES
Some server systems have key switches with a secure key position that
can be read by system software. This key position overrides the normal
default of the keyboard abort sequence effect and changes the default
so the effect is disabled. When the key switch is in the secure posi‐
tion on these systems, the keyboard abort sequence effect cannot be
overridden by the software default, which is settable with the kbd
utility.
Currently, there is no way to determine the state of the keyboard click
setting.
The kbd service is managed by the service management facility, smf(7),
under the service identifier:
svc:/system/keymap:default
Administrative actions on this service, such as enabling, disabling, or
requesting restart, can be performed using svcadm(8). Use kbd(1) to
make configuration changes and use svccfg(8) to view configuration
information for this service. The status of the service can be queried
using the svcs(1) command.
Oracle Solaris 11.4 3 Nov 2021 kbd(1)