2011-05-12 18:36:46 +00:00
|
|
|
.TH KBD 3
|
|
|
|
.SH NAME
|
|
|
|
kbd \- pc keyboard driver
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
|
|
|
.B bind -a #b /dev
|
|
|
|
|
|
|
|
.B /dev/scancode
|
|
|
|
.B /dev/leds
|
2020-03-28 14:37:48 +00:00
|
|
|
.B /dev/repeat
|
2011-05-12 18:36:46 +00:00
|
|
|
.fi
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.I kbd
|
|
|
|
device serves a one-level directory containing the files
|
2020-03-28 14:37:48 +00:00
|
|
|
.BR scancode ,
|
|
|
|
.BR leds
|
2011-05-12 18:36:46 +00:00
|
|
|
and
|
2020-03-28 14:37:48 +00:00
|
|
|
.BR repeat .
|
2011-05-12 18:36:46 +00:00
|
|
|
.PP
|
|
|
|
Reading the
|
|
|
|
.BR scancode
|
2c(1), torrent(1), uhtml(1), kbd(3), cwfs(4), hgfs(4), cifsd(8), cryptsetup(8), hjfs(8), kbdfs(8), realemu(8), wpa(8): fix spelling, typos
2013-08-23 19:48:52 +00:00
|
|
|
file returns the raw scancode stream as it is emitted by the keyboard
|
|
|
|
device without any translation. It is usually
|
2011-05-12 18:36:46 +00:00
|
|
|
.IR kbdfs (8)
|
|
|
|
task to interpret the scancodes and provide device independent
|
|
|
|
keyboard input to programs. The
|
|
|
|
.BR scancode
|
2012-06-02 02:24:26 +00:00
|
|
|
file can be only opened once by the hostowner.
|
2011-05-12 18:36:46 +00:00
|
|
|
.PP
|
2011-05-11 22:46:52 +00:00
|
|
|
Writing a number to the write-only
|
2011-05-12 18:36:46 +00:00
|
|
|
.BR leds
|
2020-03-28 14:37:48 +00:00
|
|
|
file changes the status leds on the keyboard. The value of the
|
2011-05-12 18:36:46 +00:00
|
|
|
number is the addition of 1, 2 and 4 representing activated
|
|
|
|
Scroll, Num and Caps leds.
|
2020-03-28 14:37:48 +00:00
|
|
|
.PP
|
|
|
|
The
|
|
|
|
.BR repeat
|
|
|
|
file sets typematic rate and delay. The value of the number is a
|
|
|
|
bitmask where first 5 bits set the repeat rate (ranging from 0b00000
|
|
|
|
for 30Hz to 0b11111 for 2Hz). Bits 6 and 7 set the delay before the
|
|
|
|
first repeat is activated (ranging from 0b00 for 250Hz to 0b11 for
|
|
|
|
1000Hz).
|
2011-05-12 18:36:46 +00:00
|
|
|
.SH EXAMPLE
|
|
|
|
Set the Scroll and Caps leds:
|
|
|
|
.EX
|
|
|
|
echo 5 >/dev/leds
|
|
|
|
.EE
|
2020-03-28 14:37:48 +00:00
|
|
|
.PP
|
|
|
|
Enable fast repeat rate and the least delay:
|
|
|
|
.EX
|
|
|
|
echo 0 >/dev/repeat
|
|
|
|
.EE
|
2011-05-12 18:36:46 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.IR kbdfs (8)
|
|
|
|
.SH SOURCE
|
|
|
|
.B /sys/src/9/pc/devkbd.c
|