man-pages/man8/kbdrate.8.html
2021-03-31 01:06:50 +01:00

126 lines
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of KBDRATE</TITLE>
</HEAD><BODY>
<H1>KBDRATE</H1>
Section: Linux Programmer's Manual (8)<BR>Updated: 22 June 1994<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
kbdrate - reset the keyboard repeat rate and delay time
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>kbdrate [ -s ] [ -r</B>
rate
<B>] [ -d</B>
delay
<B>]</B>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>kbdrate</B>
is used to change the keyboard repeat rate and delay time. The delay
is the amount of time that a key must be depressed before it will start to
repeat.
<P>
Using
<B>kbdrate</B>
without any options will reset the repeat rate to 10.9 characters per second (cps)
and the delay to 250 milliseconds (ms) for Intel- and M68K-based systems.
These are the IBM defaults. On SPARC-based systems it will reset the repeat rate
to 5 cps and the delay to 200 ms.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-s</B>
<DD>
Silent. No messages are printed.
<DT id="2"><B>-r</B><I> rate</I>
<DD>
Change the keyboard repeat rate to
<I>rate</I>
cps. For Intel-based systems, the allowable range is from 2.0 to 30.0 cps.
Only certain, specific values are possible, and the program will select the
nearest possible value to the one specified. The possible values are given,
in characters per second, as follows: 2.0, 2.1, 2.3, 2.5, 2.7, 3.0, 3.3, 3.7,
4.0, 4.3, 4.6, 5.0, 5.5, 6.0, 6.7, 7.5, 8.0, 8.6, 9.2, 10.0, 10.9, 12.0, 13.3,
15.0, 16.0, 17.1, 18.5, 20.0, 21.8, 24.0, 26.7, 30.0.
For SPARC-based systems, the allowable range is from 0 (no repeat) to 50 cps.
<DT id="3"><B>-d</B><I> delay</I>
<DD>
Change the delay to
<I>delay</I>
milliseconds.
For Intel-based systems, the allowable range is from 250 to 1000 ms,
in 250 ms steps. For SPARC systems, possible values are between 10 ms and 1440 ms,
in 10 ms steps.
<DT id="4"><B>-V --version</B>
<DD>
Display a version number and exit.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>BUGS</H2>
Not all keyboards support all rates.
<P>
Not all keyboards have the rates mapped in the same way.
<P>
Setting the repeat rate on the Gateway AnyKey keyboard does not work. If
someone with a Gateway figures out how to program the keyboard, please send
mail to <A HREF="mailto:util-linux@math.uio.no">util-linux@math.uio.no</A>.
<P>
All this is very architecture dependent.
Nowadays
<B>kbdrate</B>
first tries the KDKBDREP and KIOCSRATE ioctls.
(The former usually works on an m68k machine, the latter for SPARC.)
When these ioctls fail an ioport interface as on i386 is assumed.
<A NAME="lbAG">&nbsp;</A>
<H2>FILES</H2>
<I>/etc/rc.local</I>
<BR>
<I>/dev/port</I>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="8"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="9"><A HREF="#lbAF">BUGS</A><DD>
<DT id="10"><A HREF="#lbAG">FILES</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:13 GMT, March 31, 2021
</BODY>
</HTML>