linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergey Tursanov <__gsr@mail.ru>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: PC keyboard rate/delay
Date: Tue, 12 Jun 2001 18:19:49 +0400	[thread overview]
Message-ID: <19562259.20010612181949@mail.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 596 bytes --]

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.

[-- Attachment #2: patch-kbdrate-2.4.5.gz --]
[-- Type: application/x-gzip, Size: 2355 bytes --]

             reply	other threads:[~2001-06-12 13:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-12 14:19 Sergey Tursanov [this message]
2001-06-12 16:02 ` PC keyboard rate/delay Alan Cox
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=19562259.20010612181949@mail.ru \
    --to=__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).