kbdutility 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
kbdutility sets the /dev/kbd default keyboard device.
-ioption 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
The keyboard abort sequence effect can only be changed by a
super-user using the
-a option. 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 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
interpretation. 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.
Although PPP is a binary protocol, it has the ability to avoid using characters that interfere with serial operation. The default alternate break sequence is CTRL-m ~ CTRL-b, or 0D 7E 02 in hexadecimal. In PPP, this can be avoided by setting either 0x00000004 or 0x00002000 in the ACCM. This forces an escape for the CTRL-b or CTRL-m characters, respectively.
To do this in Solaris PPP 4.0, add:
to the /etc/ppp/options file or any of the other configuration files used for the connection. See pppd(1M).
SLIP has no comparable capability, and must not be used if the Alternate Break sequence is in use.
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 systems, setting the key switch to the secure position overrides any software default set with this command.
-aenable | disable | alternate
Enables, disables, or alternates the keyboard abort sequence effect. By default, a keyboard abort sequence suspends the operating 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
-a option can only be used by a
Sets autorepeat count. Value -1 denotes unlimited autorepeat (default).
-bkeyboard | console
Sets the beeper frequency for keyboard or console.
-con | off
Turns the clicking of the keyboard on or off.
Specifies the keyboard device being set. The default setting is /dev/kbd.
Sets the autorepeat delay in milliseconds.
Sets keyboard properties from the keyboard default file. With
the exception of
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
configuration service, svc:/system/keymap:default. The
-i option can only be used by a user or role
with the Device Security Rights Profile.
Returns the layout code of the keyboard being used, and the autorepeat delay and autorepeat rate being used.
If used with
-D option, this option returns the value before
Sets the autorepeat rate in milliseconds.
Sets the keyboard layout into the kernel.
If language is specified, the layout is set to language, and loadkeys(1) runs implicitly. If language is not specified, a list of available layouts are presented, prompting for the user to specify the language. See OPERANDS.
Returns the type of the keyboard being used.
-boption. This value should be between 0 and 32767 otherwise will be ejected with EINVAL.
The following example displays the keyboard type:
example% kbd -t
Type 4 Sun keyboard
The following example sets the keyboard defaults as specified in the keyboard default file:
example# kbd -i
The following example displays keyboard type and layout code. It also displays auto repeat delay, rate and count settings.
example% kbd -l
The following example sets the keyboard autorepeat delay:
example% kbd -D 300
The following example sets the keyboard autorepeat rate:
example% kbd -R 50
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
The following example sets the keyboard beeper frequency:
example% kbd -b keyboard 1000
Currently, there is no way to determine the state of the keyboard click setting.
kbd service is managed by the service
management facility, smf(5), under the
Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). Use svccfg(1M) to make configuration changes and to view configuration information for this service. The service's status can be queried using the svcs(1) command.
|April 29, 2019||OmniOS|