From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: __gsr@mail.ru
Cc: linux-kernel@vger.kernel.org (linux-kernel)
Subject: Re: PC keyboard rate/delay
Date: Tue, 12 Jun 2001 17:02:39 +0100 (BST) [thread overview]
Message-ID: <E159qcp-0001XE-00@the-village.bc.nu> (raw)
In-Reply-To: <19562259.20010612181949@mail.ru> from "Sergey Tursanov" at Jun 12, 2001 06:19:49 PM
> In file include/linux/kd.h was declared KDKBDREP ioctl number
> to tune up keyboard rate/delay with struct kbd_repeat.
> But in 2.4.x kernel there is only m68k version for that.
> I wrote some code for implement this feature on x86 machines.
> Gzipped and uuencoded patch for kernel 2.4.5 is attached.
> To setup keyboard rate/delay on x86 you should use code like that:
>
> struct kbd_repeat kbd_rep={
> 1000, /* delay in ms */
> 30 /* repeat rate in cps */
> };
> ioctl(0,KDKBDREP,&kbd_rep);
>
> After that ioctl kbd_rep is filled with previous values.
> I hope it will be useful for someone.
You must have been reading my mind. Yesterday I traced at least one X11
hang down to the kernel and X server both frobbing with the port at the same
time and crashing the microcontroller on my PC110.
Alan
next prev parent reply other threads:[~2001-06-12 16:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-12 14:19 PC keyboard rate/delay Sergey Tursanov
2001-06-12 16:02 ` Alan Cox [this message]
2001-06-12 16:21 ` James Simmons
2001-06-12 17:23 ` Re[2]: " Sergey Tursanov
2001-06-12 17:23 ` Geert Uytterhoeven
2001-06-12 17:56 ` James Simmons
2001-06-13 5:31 ` Geert Uytterhoeven
2001-06-14 17:57 ` Alan Cox
2001-06-12 20:19 ` Guest section DW
2001-06-12 20:10 ` Guest section DW
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E159qcp-0001XE-00@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=__gsr@mail.ru \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).