linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PC keyboard rate/delay
@ 2001-06-12 14:19 Sergey Tursanov
  2001-06-12 16:02 ` Alan Cox
  2001-06-12 20:10 ` Guest section DW
  0 siblings, 2 replies; 10+ messages in thread
From: Sergey Tursanov @ 2001-06-12 14:19 UTC (permalink / raw)
  To: linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-06-14 17:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-12 14:19 PC keyboard rate/delay Sergey Tursanov
2001-06-12 16:02 ` 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

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).