lkml.org 
[lkml]   [2001]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PC keyboard rate/delay

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

Also the beeper is a problem. Have X and a console app set off a beep at
the same time. I'm glad the input api will make these problems go away :-)



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.105 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site